ok Posted December 11, 2008 Share Posted December 11, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/136456-solved-whats-wrong-with-this-select/ Share on other sites More sharing options...
ok Posted December 11, 2008 Author Share Posted December 11, 2008 i tried to remove the $ sign and still did not work after i press the submit button. Quote Link to comment https://forums.phpfreaks.com/topic/136456-solved-whats-wrong-with-this-select/#findComment-712224 Share on other sites More sharing options...
.josh Posted December 11, 2008 Share Posted December 11, 2008 shouldn't be a problem, unless you're trying to echo it with the double quotes; then it would be trying to interpret it as a variable. But I don't see any echoes up there. Perhaps if you were to be more specific than "it doesn't work"? Quote Link to comment https://forums.phpfreaks.com/topic/136456-solved-whats-wrong-with-this-select/#findComment-712225 Share on other sites More sharing options...
corbin Posted December 11, 2008 Share Posted December 11, 2008 What exactly do you mean by something is wrong with it? Quote Link to comment https://forums.phpfreaks.com/topic/136456-solved-whats-wrong-with-this-select/#findComment-712226 Share on other sites More sharing options...
chronister Posted December 11, 2008 Share Posted December 11, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/136456-solved-whats-wrong-with-this-select/#findComment-712227 Share on other sites More sharing options...
ok Posted December 11, 2008 Author Share Posted December 11, 2008 It is just a simple form. and the 2nd file .php to capture the data. ... " . $_POST['Sep29a'] . " " . $_POST[''] . " " . $_POST[''] . " ... Quote Link to comment https://forums.phpfreaks.com/topic/136456-solved-whats-wrong-with-this-select/#findComment-712228 Share on other sites More sharing options...
haku Posted December 11, 2008 Share Posted December 11, 2008 And you still haven't told us what the problem is. That's like saying "My car doesn't work. Can you tell me what's wrong with it?". Be descriptive, and you may actually get some help. Quote Link to comment https://forums.phpfreaks.com/topic/136456-solved-whats-wrong-with-this-select/#findComment-712229 Share on other sites More sharing options...
ok Posted December 11, 2008 Author Share Posted December 11, 2008 no need i already solved this. thanks to you all Quote Link to comment https://forums.phpfreaks.com/topic/136456-solved-whats-wrong-with-this-select/#findComment-712248 Share on other sites More sharing options...
haku Posted December 11, 2008 Share Posted December 11, 2008 What an annoying thread. Quote Link to comment https://forums.phpfreaks.com/topic/136456-solved-whats-wrong-with-this-select/#findComment-712307 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.