How do I write a user input (numbers) for HTML?

  • Thread starter Thread starter jhe
  • Start date Start date
J

jhe

Guest
How do I write the code HTML so that when the user inputs a number, the computer reads it as an actual number and not as a string? This way, when I have numbers add, example
x=5
y=9
z=x+y
that z returns as 14, and not 59.
 
You'd have to use something other than HTML, probably Javascript or PHP would be your best bets.
 
You'd have to use something other than HTML, probably Javascript or PHP would be your best bets.
 
Back
Top