Jump to content

[SOLVED] Setting default value to variable in form option box


joshgarrod

Recommended Posts

I have the need to set an options list to have a default value of a variable, normal input and text area fields work but the options list doesn't. what do I have to do?

 

<select name="seller" onchange="MM_jumpMenu('parent',this,0)">
       <option>Private</option>
       <option>Trade</option>
       <option value="<?php echo $seller; ?>" selected="<?php echo $seller; ?>"></option>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.