I have a form (code snipit below) and on submit I go to another page to actually send the email. I need if one of these fields are null to send the user back to the data ertry screen but I need to load the varibles so they dont have to retype all the info. What I want is a for loop to check all var ( i dont want to have to manually tell it what they are) and if that var is null then add it to my url call www.mypage?var1=data1 and so on. can someone help me with this?
<form form id="myform" method="POST" action="SendMail.php">
<div align="center"><table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td width="34%" align="right"><font size="2" face="Arial">Company/University Name</font></td>
<td width="66%"><font size="2" face="Arial"><input type="text" name="company" size="40" value='<? echo $company; ?>'></font></td>
</tr>
<tr>
<td width="34%" align="right"><font size="2" face="Arial">Contact</font></td>
<td width="66%"><font size="2" face="Arial"><input type="text" name="contact" size="40" value='<? echo $contact; ?>'></font></td>
</tr>
<tr>
<td width="34%" align="right"><font size="2" face="Arial">Address
One</font></td>
<td width="66%"><font size="2" face="Arial"><input type="text" name="address1" size="40" value='<? echo $address1; ?>'></font></td>
</tr>
<tr>
...............................................................................................