Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically alter list items

Status
Not open for further replies.

johnsimpson

Programmer
Mar 28, 2006
60
GB
Hi guys,

I am making a contact form that will have a list of items.

What i want to do is depending which page the user comes from to get to the form i want to pass a querystring through that will automatically select an option from a list.

the code for the list is:

<select name="course[]" multiple size="7" style="width: 200px;" class="form" tabindex="3">
<option value="presentation">Presentation skill training</option>
<option value="bodylanguage">Business body language training</option>
<option value="networking">Business networking training</option>
<option value="media">Media training</option>
<option value="worklifebalance">Work life balance course</option>
<option value="sales">Sales skill training</option>
<option value="confidence">Confidence training</option>
</select>

how can i do this?

thanks
J
 
Get the last page from history() and add a value= attribute to the select statement.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top