This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 4
Passing form fields to another platform (involes basic php)
Started 9 years ago by RobH | 3 posts |
-
Hello! I'm going to do a major webinar in three weeks and am trying to integrate my MachForm registration page with the webinar application (Webinar Jam). To integrate it I'm told in the application instructions that I need to use the PHP "echo" command. This should be really simple according to the webinar provider, and of course it's not working.
Here's my MachForm registration form: http://www.hellmannconsulting.com/machform/view.php?id=28368
At the end of this form it's supposed to redirect to the Webinar Jam "thank you page" which it does. In the process though, the redirect code is supposed to pass the "name" and "email" from the form to the webinar provider using this php echo command. Here's the redirect code they gave me that I'm supposed to modify with the name and email fields from my form using php echo:
They said I'm supposed to replace "yourname" with <?php echo "name"?> and "your@email.com" with <?php echo "email"?> where "name" and "email" are the data from my MachForm form. They said I can take out the countrycode and phonenumber as I'm not using it.
But I can't get it right. The redirection is working but the form data is not being passed to the webinar provider.
Here's the latest thing that I tried:
' http://webinarjam.net/webinar/webinar-register-auto.php?webicode=cf881427d0&memberid=14792&firstname=<?php echo "element_11"; ?>&email=<?php echo "element_2"; ?>&schedule=1 '
I looked at the source code on my MachForm form to find element_11 and element_2 .
Any thoughts or help? Maybe it's some syntax error, or I'm not identifying the fields properly on my form? Thank you!
Posted 9 years ago # -
hmmm, I think I would use "{element_11}" or {element_11} or just element_11 (and of course all the element_2's). The best way to see what error you are getting is to look in your web server error logs - see what it's telling you. You're on the right track (I believe) with inserting the element variable in there.
Also if using double quotes is not working - try the single quote.
Regards,
Saghalie
http://www.kcmhosting.comPosted 9 years ago # -
You don't need to use the PHP code in the link to populate these field variables, just wrap the variable name with the curly braces.
Simply do the following:
' http://webinarjam.net/webinar/webinar-register-auto.php?webicode=cf881427d0&memberid=14792&firstname={element_11}&email={element_2}&schedule=1 '
This syntax should get you all sorted.
Best,
Glenn
Posted 9 years ago #
Reply
You must log in to post.