What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Submitting data through PHP POST HelpAsked by paulsapio on March 30, 2015 at 05:57 PM
Hello jotform team, first I want to say thank you! You guys are always very helpful and respond pretty fast!
Here are my questions!
We generate leads for colleges using Live Chat, and I have forms built to submit just a lead from that my team fills out when they generate a lead.
A few clients have asked me to send data though PHP post which I know little to nothing about, but learning as I go. So I have decided to beta test it with one client to see if I can make it work.
So they have sent me the instructions on how to post data to a Lead Conduit. When I try to do it I get an error saying I have the wrong info. I am thinking that I am passing the info wrong.
They have Required parameters to be sent thought. for example:
Field Parameter = xxAccountId Value must be: 0530xxeg1
Field Parameter = xxCampaignId Value must be: 053ktt12h
Fild Parameter = xxSiteId Vale must be" "IBT www.BayAreaTradeSchool.com - PPC -Chat"
My question is, I tried to make a text box, and name it xxAccountId and have it already populated with 0530xxeg1, but I feel that I am doing that wrong. All this should be hidden from the form user.
Next question would be sending actually data - (data my team would fill out on the form it self)
Field Parameter = first_name Value must be: Value must be shorter than 255 characters long
For first_name would I just make a text box and name it first_name? Would that pass the first name along to the right place?
I know this might be a lot, thank you again for your help.
Here is an example of the html code I am trying to get to work
Some High School
High School Diploma/GED
Thank you for contacting us.
I suggest reviewing also the user guide -How-to-Post-Submission-Data-to-Thank-You-Page to be sure all steps on the form are set accordingly.
You can test submit your jotform to be able to get PHP codes and Variable names by setting this URL https://www.jotform.com/show-post-data/ as the Thank You URL in the post submissoin.
Check if you were using the correct variable names. Base on your description, I think that could be the reason for it not working.
Hope this help. Let us know if you need further assistance.
how should I pass
Field Parameter = xxAccountId Value must be: 0530xxeg1 ?
Never mind I think I got it to work :) Thank you
On behalf of my colleague, you are welcome.
I am glad to know that your issue is resolved.
Do get back to us if you have any questions.