Jump to content

[SOLVED] what's wrong with this select?


ok

Recommended Posts

can you see the problem with this codes below?

 

 

<select name="Sep29a" size="1" class="style41" id="Sep29a" style="border-style:solid; border-width:1; font-size:11">
<option selected value="0">_</option>
<option value="3/$150">3 Day</option>
<option value="4/$175">4 Day</option>
<option value="5/$200">5 Day</option>
</select>

 

the codes above don't work, could not it be the $ sign causing the problem?

 

for example --> <option value="3/$150">3 Day</option>

 

thank you.

Link to comment
Share on other sites

Yeah, more info would help....

 

<?php
echo '<pre>'; print_r($_POST); echo '</pre>';

?>
<form method="post" >
<select name="Sep29a" size="1" class="style41" id="Sep29a" style="border-style:solid; border-width:1; font-size:11">
   <option selected value="0">_</option>
   <option value="3/$150">3 Day</option>
   <option value="4/$175">4 Day</option>
   <option value="5/$200">5 Day</option>
</select>

<input type="submit" value="Submit"  />
</form>

 

When submitted gives me ....

 

Array

(

    [sep29a] => 5/$200

)

 

 

So that part is not a problem...

 

Even this does not present an error...

$var =  $_POST['Sep29a'];
echo "$var";

 

Nate

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.