Posted by Peter revera on 01/11/07 15:29
On Thu, 11 Jan 2007 15:29:26 +0000, Geoff Berrow
<blthecat@ckdog.co.uk> wrote:
>Message-ID: <rhlcq29gimodffn7131cal3bc66splqi7t@4ax.com> from Peter
>revera contained the following:
>
>>> $selected=(isset($_GET['listid']) &&$_GET['listid']==$itemid)?"
>>>selected":"";
>>> echo "<option value='$itemid'$selected>$item</option>\n";
>>> }
>>> echo "</select>\n";
>>
>>
>>Ive added the code and when I view the form with the variable pased in
>>the url the select list hasnt changed. It just defaults to the normal
>>order.
>
>How are you passing the variable?
>Should be like this:
>www.example.com?listid=someid
Yep.
edit_item.php?listid=68
[Back to original message]
|