Subject: How to collect values?
Posted By: kirks Post Date: 7/28/2006 1:15:23 PM
How can I collect values from a form and display them in the same window? For example, to multiply your age by 3:

How old are you?
   <---- Here must be there a text field where the user inputs a number, say, 19.


Click to calculate.
   <---- Here must be there a button. The user clicks on it and the results must appear immediately:


Result: 57   <---- The result of multiplying 19 * 3 must appear here.


I'll appreciate your teaching.

Kirks.


Reply By: pritz Reply Date: 8/28/2006 1:12:58 AM
Hi kirks...
try somethign like below PHP_SELF is a variable whcihc stores the current url so when u post u are set back to the same url after posting data.
<form metho="post" action=$_SERVER[PHP_SELF]>...

i hope it solves ur problem


Go to topic 48927

Return to index page 192
Return to index page 191
Return to index page 190
Return to index page 189
Return to index page 188
Return to index page 187
Return to index page 186
Return to index page 185
Return to index page 184
Return to index page 183