Question: urgent (both HTML page & PHP page)! A customer wants to sum up all the numbers inside a string. Write the source code of an

urgent

(both HTML page & PHP page)!

A customer wants to sum up all the numbers inside a string. Write the source code of an application (both HTML page & PHP page) that accepts the text(string) by an html form and displays the grand total (prints via php page) on the page.

Sample:

if input text is: There were 45 chickens, 5 cows and 12 horses in the farm.

Output should be: 62

Hint:Think about explode function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!