Jump to content
xhpotterx

[Resolvido] Combobox select index

Recommended Posts

xhpotterx

Boas Pessoal.

Este aqui e o meu form principal.

<form id="contactForm" action="insert.php" method="post" align="left" accept-charset="ISO-8859-1" >
<select name="lang">
<option value="0">Português</option>
<option value="1">Inglês</option>
<option value="2">Espanhol</option>
<option value="3">Francês</option>

</select>
<input type="submit" value="Adicionar Projeto"><input type="hidden" name="ch" ></h4>
</form>

Como fasso para no pagina insert php ele buscar o texto o valor que selcionamos na combobox .

Tipo no vb era com o Select index mas em php não encontro.

Cumpz

Edited by brunoais
geshi e tags code

Share this post


Link to post
Share on other sites
HappyHippyHippo

deixa ver se consegui descortinar o teu "português"

queres que o script que recebe a informação do formulário consiga saber qual o texto da combo que foi seleccionado ?

interessa-te saber também o seu valor (o valor numérico que tens nos options) ?


IRC : sim, é algo que ainda existe >> #p@p

Share this post


Link to post
Share on other sites

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

By using this site you accept our Terms of Use and Privacy Policy. 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.