This is probably total beginner question. Please bear with me.
I have a form on the page in this format:
<form><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="2%"> </td>
<td width="31%"><img src="images/spacer.gif" width="1" height="20" alt="" /></td>
<td width="67%"> </td>
</tr>
<tr>
<td> </td>
<td><span class="top_nav_link">Arrival Date:</span>
<input type="text" value="<?php echo date("m/d/Y") ?>" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)" name="arr" class="calendarEntry" size="10" /></td>
<td><span class="top_nav_link">Rooms:</span>
<select class="nightsEntry" name="rms">
<option value="1" selected="selected">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select> </td>
</tr>
<tr>
<td> </td>
<td><img src="images/spacer.gif" width="1" height="17" alt="" /><span class="top_nav_link">Departure Date:</span><input type="text" value="<?php echo date("m/d/Y",strtotime("+24 hours")) ?>" onfocus="this.select();lcs(this)" onclick="event.cancelBubble=true;this.select();lcs(this)" name="dep" class="calendarEntry" size="10" /></td>
<td><img src="images/spacer.gif" width="1" height="15" alt="" /><br /><input type="image" src="images/rates.gif" alt="Check rates" width="97" height="20" value="Submit" name="submitform" /></td>
</tr>
</table></form>
When form is submited I need three values (arr,dep and rms) to be send in the link like this (example):
http://domainname.com/search.availability?id=12345&arr=08/30/2007&dep=09/15/2007&rms=3
Form on the destination page accepts variables in this format. Typing link in the browser like that works.
How would I do this? I tried many different paths and I had to scrap all of them. I tried setting the link as action for the form, tried posting form to itself and then pulling variables, I hit a wall each time.
Please if anyone can point me in the right direction I would appreciate it.
Thanks,
Oz