PDA

View Full Version : to get values from last quote generated I must insert eg for pickUpLocation field ...



leonidassavvides
09-03-2008, 11:57 AM
I am building a site
http://www.poliscarhire.com
well the quote generator form [on the left], to get values from last quote generated I must insert eg for pickUpLocation in each <option> tag the below ?
for each time option 0-23 I must insert the same, or is any other easier way ?


<select name="pickUpLocation" tabindex="4" style="font-family: Arial; font-size: 10pt">
<option>Pick-Up Location</option>
<option <?= ($Locationp == "Paphos Airport") ? " selected='selected'" : "" ?>>Paphos Airport</option>
<option <?= ($Locationp == "Larnaca Airport") ? " selected='selected'" : "" ?>>Larnaca Airport</option>
<option <?= ($Locationp == "Hotel in Cyprus") ? " selected='selected'" : "" ?>>Hotel in Cyprus</option>
<option <?= ($Locationp == "Polis Office") ? " selected='selected'" : "" ?>>Polis Office</option>
<option <?= ($Locationp == "Latchi Office") ? " selected='selected'" : "" ?>>Latchi Office</option>
</select>