Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I give combo ID & name

Status
Not open for further replies.

php413

Programmer
Apr 12, 2012
3
SA
hi

I create select(commbo) by javascript.
and I create options inside the select ..

and here the examble:

myselect = document.createElement("select");
theOption=document.createElement("OPTION");

and it work fine
but the problem is when I try to print the names or ID of the
the select ...

I can't use php to get the values what chosen by the user ..

I want to give the select name and ID to use (GET or SET) by php to take the values selected by user...


 
You mean something like this?:

Code:
myselect = document.createElement("select");
myselect.name="thename";
myselect.id="theID";

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
feherke

I define select in js:

myselect = document.createElement("select");

and in another page. I use php to get the value selected:

echo $_GET['myselect'];

but it print nothing :(



----------------------------------------

vacunita

thanks !!
I will try it ..

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top