View Full Version : Passing PHP Variable w/Dynamic Ajax Content

07-06-2009, 03:30 PM
1) Script Title: Dynamic Ajax Content

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

3) Describe problem: I am trying to determine if there is a way to utilize the Dynamic Ajax Content script and pass a PHP variable to the file that is loaded. I have used the script to load other php pages in a div and as long as no new variables are needed or if they are pulled directly by the php page everything works fine. However, for the case in hand I need to set two PHP variables depending on which item is clicked. It does not appear that traditional inclusion in url string works (which did not surprise me but I was hopeful). Is there anyway to achieve this with the script? If not, is there any easy way this can be acheived (don't have any real experience with AJAX) by potentially using an onclick function or something similar?