Jump to content


Photo

List Box Help


  • Please log in to reply
1 reply to this topic

#1 natalieG

natalieG
  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 19 July 2006 - 02:28 PM

we have a listbox in a form and want to  sent the selected value  to  a PHP  page, but
want to send it via an AJAX function as follows:

<FORM>
<SELECT  NAME="MYSELECT"  onChange="myfunction(??????????)">
<options>.......</options>
</SELECT>
</FORM>
We cannot find what to put in  to replace the ?????????????????.  If there is a different forum that I should addrferss to, let me know and I will resubmit there.

Natalie

#2 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 19 July 2006 - 02:55 PM

try "this.value" in place of the ??? ??? ???
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users