Forum Moderators: coopster
The second one should show me that information, but it does not do that.
The first page source code:
<form action="http://localhost/test/guest.php" method="POST">
<table border="0">
<tr>
<td>Your Name:</td>
<td><input type="text" maxlenght="12" size="20" name="user"></td>
</tr>
<tr>
<td>E mail address:</td>
<td><input type="text" maxlength="12" size="20" name="mail"></td>
</tr>
<tr>
<td><input type="submit" value="Submit details"></td>
<td><input type="reset" value="Reset the form"></td>
</tr>
</table>
</form>
The second page source code ( I name this page guest.php):
<table border="0">
<tr>
<th>Your name:
<td><?php echo $_user;?></td>
</tr>
<tr>
<th>Your e-mail address:</th>
<td><?php echo $_mail;?></td>
</tr>
</table>
The code is simple, but it doesn't work. Can anyone tell me how to get the name and email displayed in the other page?
Thanks
1.
I have a varible name $id
I need to add this $id to the link:
<a href ="http://localhost/web.php">Jhon</a>
now I need in stead of having web.pgp I need to have the $id. It will look something like this:
<a href ="http://localhost/0001.php">Jhon</a>.
I am really thankful.
i've asked almost the same question, you might wanna take a look at some answers i got, regarding POST & GET
Good Luck,