PDA

View Full Version : Dynamic Ajax Content - PHP - POST Method



jasongodoy
06-23-2009, 05:06 AM
1) Script Title: Dynamic Ajax Content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

3) Describe problem:
Hello everyone...what I am trying to do with the Dynamic Ajax Content script is use the POST method via PHP (instead of GET) to query a mysql database and return results on the same page that I performed my initial query on.

My PHP code works fine as I am able to query my database and return 0 results. The reason for the 0 results is because the way the script is written, it is set to only use GET method, so every time I submit my form, when I echo the POST variable, it is obviously blank. What I need help with is how to get this script to utilize the POST method instead of GET while retaining all of this script's sweet functionality.

I'm not doing anything fancy with this script. All I need is a modification to get POST to work properly.

Thanks in advance for the help.

J