zero-perfoliate
zero-perfoliate

Author Topic: Php problem.. Pls help  (Read 282 times)

Offline karti_jai

  • New PHP Members
  • Posts: 1
  • Karma: +0/-0
Php problem.. Pls help
« on: September 09, 2009, 04:31:49 AM »


In Ajax concept, if v change d value in dropdown list box tat respective Result will come in same page.. Samething i dont want list box inside i want just click d option n get d result in same page.....


I tried using Anchor tag  but value not sending 2 php page...... its showing "undefined"..


pls help me... pls........

Offline gamesmstr

  • New PHP Members
  • Posts: 2
  • Karma: +0/-0
Re: Php problem.. Pls help
« Reply #1 on: September 09, 2009, 02:21:43 PM »
to pass any form field through an ajax call, you have to pull it's value inside the javascript function using something similar to this:

VAR fieldval=document.getElementById(field).value;

Then add it to the list of parameters passed to the php page you are loading.

For future reference you may want to include your code so people can get an Idea of what is going on.  Your question is kinda vague and often a person can supply you with explicit code to solve your problem.

 

zero-perfoliate