variables passed from form are not printed in next page
Posted: Mon Mar 22, 2004 2:35 am
i ran the same code on two system configured with php and on 1 system it was ruunig smoothly but on the other it is not printing variable value but it print rest of the string.
code for first page i.e form is<html>
<form action="eg9.3.php" method="GET">
<input type="text" name="user">
<br>
<textarea name="address" rows="5" cols="40">
</textarea>
<br>
<input type="submit" value="hit it!">
</form>
and the code for recieving page is
6: <?php
7: print "Welcome <b>$user</b><P>\n\n";
8: print "Your address is:<P>\n\n<b>$address</b>";
9: ?>
this code works well on one system but not on other it is not printing the values of the variables. so the problem is with php..kan anyboy tell me wat actually the problm is
?>
code for first page i.e form is<html>
<form action="eg9.3.php" method="GET">
<input type="text" name="user">
<br>
<textarea name="address" rows="5" cols="40">
</textarea>
<br>
<input type="submit" value="hit it!">
</form>
and the code for recieving page is
6: <?php
7: print "Welcome <b>$user</b><P>\n\n";
8: print "Your address is:<P>\n\n<b>$address</b>";
9: ?>
this code works well on one system but not on other it is not printing the values of the variables. so the problem is with php..kan anyboy tell me wat actually the problm is
?>