Raised This Month: $ Target: $400
 0% 

[HELP] Form select tag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 09-21-2012 , 05:56   [HELP] Form select tag
Reply With Quote #1

PHP Code:
<form action="check.php" method="post">                  
<select name="País">
<option name="lang" value="<?=$lang?>"> Portugal </option>
<option name="lang" value="<?=$lang?>"> Brasil </option>
<option name="lang" value="<?=$lang?>"> Spain </option>
<option name="lang" value="<?=$lang?>"> England </option>
<option name="lang" value="<?=$lang?>"> Other </option>
</select>
</form>
How can i make this work?

How can i post this values?
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-21-2012 , 06:01   Re: [HELP] Form select tag
Reply With Quote #2

Remove name="lang" from the option tags, it is not valid. Give each option tag a unique value. Then, in the PHP script, check the value of $_POST['
País']
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 09-21-2012 , 06:16   Re: [HELP] Form select tag
Reply With Quote #3

Thanks, again
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode