View Single Post
Old 12-20-2007, 04:33 PM   #7 (permalink)
meshi
The Contributor
Upcoming Programmer 
 
meshi's Avatar
 
Join Date: Oct 2007
Posts: 44
Thanks: 0
meshi is on a distinguished road
Default

sori i think a little confuse here

PHP Code:
for($i=1;$i<4;$i++){ 
echo 
'<input type="text" name=="a'.$i.'" value='.$i.'><input type="submit" name="submit'.$i.'" value="Submit">'

if (isset(
$_POST["submit$i"])){<--------this is not correct
echo 
$_POST["a$i"];

the code iterpretation above is this
1 Submit
2 Submit
3 Submit
what i want is to display the value of the textbox.how can i
display its value?when its submit button hit?
meshi is offline  
Reply With Quote