Yes this is correct chicagowebmar you can place that code anywhere you want. by that I mean whatever code you want/need to write you obvious would put it in the right place, then you wrap my code around it example. Let say you wanted php to write "I see monkeys" on your confirm page on line... lets say 85 but you only want to show it for your Zoo registration form, which is form id 16 then it would look like this.
//obviously a stupid example but here goes: :)
//get the id from url if it equals 16
if($_GET['id'] = '16') {
echo "I see monkeys"; //then do this.
}
the "id" is always present for every form you have making each forms url unique this is whats great about machform.
example:
...machform/views.php?id=16
In order for you to retrieve data from paypal (Paypal.com) yes you need to learn a little about the first post and IPN's its not to difficult. My code looks complicated and could have been cleaner I was in a rush when I did it , but read over it just to get the basic idea and any ? you have I will help.
Yes you need to create a table the way I did it was like this.
1. create a field in your form and hide it using CSS (to get element name simply view the source code in a browser)
2. pre-fill that field when the form loads (viewable to user)
3. on submit send all data to machform db as usual then redirect to paypal passing the session in the pay buy link or button (as mentioned in first post)
4. once member has paid paypal will automatically send data to the script (as mentioned in first post) within seconds
5. create a script to compare the id's from your machform entry and paypals entry if they match you know the paid but IF they don't match then echo "your payment has not been processed yet"; or whatever you want to say.
Do you understand the concept?
Just because a form is submitted and the user is redirected does not mean that they have paid you.
(I'm not yelling but I just want to be clear so the same ?'s aren't asked multiple times.)
PAYPAL IPN IS THE ONLY WAY TO KNOW AND ....RETRIEVE ANY AND ALL PAYMENT DATA
FROM PAYPAL AFTER YOUR FORM HAS REDIRECTED THEM YOU CAN ONLY PASS DATA
TO PAYPAL VIA THEIR CUSTOM URL PARAMETERS AND CAN ONLY RETRIEVE
THAT INFO ONCE IT HAS ARRIVED IN YOUR DB.
ALTHOUGH YOU CAN PLACE A REDIRECT URL IN YOUR PAYPAL ACCOUNT IT
WILL HAVE NO SESSION DATA AVAILABLE TO YOU OR A CUSTOM URL
WHICH YOU CAN $_GET INFO FROM
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_admin_IPNIntro
please let me know if you need more help....drumaboy out!
HEY APPNITRO THIS BETTER BE A FREAKN FEATURE IN MACHFORM V3 (Now i'm yelliing lol!) there are a lot of post about this feature!