Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello all
I'm really new to PHP I set up a test forum to learn more about PHP. I thought I had everything set up right, but for some reason my variables are not being past to the next page. Here is the link to my test
https://www1.umn.edu/cco/test/JimTest/Below is the code from the index.php
<h1 align="center">This is my form!</h1><table border="1" width="35%">
<form method="GET" action="proc.php">
<tr>
<td>First Name:</td>
<td>Last Name:</td>
</tr>
<tr>
<td><input type="text" name="fname" value="Jim"></td>
<td><input type="text" name="lname"></td>
</tr>
<tr>
<td>Address</td>
<td>City</td>
<tr>
<td><input type="text" name="address"></td>
<td><input type="text" name="city"></td>
</tr>
<tr>
<td>State</td>
<td>Zip</td>
</tr>
<tr>
<td><input type="text" name="state"></td>
<td><input type="text" name="zip"></td>
</tr>
<tr>
<td align="left" colspan="2"><input type="submit" value="Go"></td>
</tr>
</form>
</table>and here is the info from proc.php
<?
print "Hello $fname $lname
";
print "Your Address is : $address $city $state , $zip
";$cust ="$fname $lname $address $city $state $zip\n\n";
print "Everything = $cust";
?>Thanks for reading my post

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |