Home › Forums › Quform WordPress › Retrieve data on page when using ajax
- This topic has 6 replies, 2 voices, and was last updated 11 years, 5 months ago by
Ally.
- AuthorPosts
- February 2, 2014 at 5:24 pm #8540
patdundee
ParticipantHi Guys
I am using XYZScripts PHP Snippet to insert php code.
When I use ajax to post the form to itself, i cannot get values from the form. I have also tried adding a custom field but to no availFor example
echo $_REQUEST['iphorm_3_3'];
This produces no results
How can i collect these valuse please
Many thanks
PatrickFebruary 4, 2014 at 11:31 am #8585Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 4, 2014 at 12:04 pm #8594patdundee
ParticipantHi Ally
Yes it works without ajax ticked.
I was hoping there was a way of capturing with Ajax selected, as when you create a non WP site and post any form to itself with Ajax you can collect the data from it.
Perhaps one to work on for your team 🙂
Many thanks
PatrickFebruary 4, 2014 at 12:35 pm #8595Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 4, 2014 at 12:55 pm #8598patdundee
ParticipantHi Ally
On the form page I have some PHP code requesting the data the user enters. It then uses this data in its custom sql statement to search the external database and display the results under the submitted form.
This form is currently working here with Ajax selected so it would produce no results. Obviously without Ajax it does collect the data and produce results.
The county selection is at the moment hard coded into the selection field, this will change to dunamic produced now you have advised me of the script I can use in the previous question 🙂
The main reason I would prefer it to work with Ajax it because I think it is much better and more effective without a page refresh.
Kind regards
Patrick
- This reply was modified 11 years, 5 months ago by
patdundee.
February 4, 2014 at 12:59 pm #8601patdundee
ParticipantLooking at the reference to sessions, as there is only one field where i require the data, then this is a possible option as I could kill the session once i have collected it to keep the server clean i suppose 🙂
February 4, 2014 at 1:34 pm #8606Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- This reply was modified 11 years, 5 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.