Jump to content

<select> (ComboBox)


renj0806

Recommended Posts

Depends on the form's method.

 

If you have this line before the dropdown:

<form action ..... method="POST">

The method is post. You use the $_POST array.

If you have this line:

<form action ..... method="GET">

The method is get. You use the $_GET array.

 

Now, as you can see, the dropdown's name is myCombobox.

So if you are using the $_GET array, you'll use $_GET['myCombobox'].

And if you are using the $_POST array, you'll use $_POST['myCombobox'].

 

 

My suggestion- read some tutorials about PHP and forms. (Links).

 

 

Orio.

Link to comment
https://forums.phpfreaks.com/topic/40233-combobox/#findComment-194649
Share on other sites

aryt, I'll revise my question since I am using AJAX.

 

Im doing this without a form and ive been successful retrieving values from textfields. This is how i do it using absolute targetting.

 

Textfield

<input type="text" id="textfield" value="one" />

 

I retrieve this by: id('textfield')/@value

 

but in <select id="myCombobox"> doing id('myCombobox')/@value just wont work for me.  :(

Link to comment
https://forums.phpfreaks.com/topic/40233-combobox/#findComment-194653
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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