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.
PHP Codes in Notification EmailsAsked by MuhammadOrient on June 20, 2011 at 11:42 AM
Hello mr ... i have one question i want you to asking me
when i add hide Field on my Travel Site
and Edit Code PHP this
in Hide field .... it's not work when i Receives it on my Mail .....
i Receive same code but it not work
Please Please please help me it had work and now not work thanks
I don't understand how your codes could work, as our email notifications cannot process PHP codes. If you are planning to deploy a single form to different websites and still want to be able to know which website a submission came from, you may read this discussion on that particular topic.
The solution offered in the link I gave you makes use of hidden fields and url query strings. Let me know if you need further assistance with regards to that solution.
Hello mr you say the problem from Gmail Email Not the code but it work since 2 month ago ... can you help me to submit visit page on my email thanks
i know also hidefield but when add on defult field the code PHP it's not send it on mail please help me sir
Like what I said in my last post, PHP codes do not get processed in the email notification content at all. That is the reason why the codes show up as is in the subject line of the email messages.
If you really believe that it used to work 2 months ago then let me break the news for you. It does not work anymore, for security reasons.
The link I gave to you provides a solution that could work the same way. Please try implementing that instead of the php referrer codes that you're using.
Hello mr Neil
begines i want to make book trip to my site sine 4 month and some one tell me to make hidefield and on defult value add the php code and when you reseved the email you will see the page guest book of it okai and it work.... and yesterday the code not work .... this all i want to see any question or any repaird to see when guest book from my page site to know what it trip book
thanks again mr neil
I apologize but I don't quite get what you're trying to say. Can you tell me if I understand correctly the purpose of this PHP code that you are entering:
Basically, you are deploying or embedding this single form to different websites. Now, the purpose of that php code is to get the URL of the page where a booking was submitted. Am I correct?
If I am correct, please understand what I'm trying to say. PHP Codes do not work anymore either inside the form or in the notification emails, so please scrap this idea.
What I am offering you are workarounds that serves the same purpose.
The first solution above uses iFrame codes for embedding while the second one uses Source
thanks mr neil
but thant not my need .. i want how to know from my visitor come
samply i wanna know when visitor come to my site and write my form i want to knwo from it come
i have 100 pages on my site and want to know from it come on 100 this page
Unfortunately, we have exhausted other possibilities that can provide an easier solution for you. So far the only solution is:
1. Create a hidden field inside your form
2. Export the html source code
3. Place the HTML source code inside your web page
4. Insert the PHP script $_SERVER['PHP_SELF']; inside the value of the hidden field.
I will also submit a ticket to the development team to request if it's possible to add this feature. I'm sure this will be useful to others as well.
If you have other questions or concerns, just let us know.
thanks Liyam .... i will follow your steps to solve the proplem thank you again and please submit a ticket to the development team to request if it's possible to add this feature ....
thanks again mr liyam
mr liyam .... your step didn't work
not process in my mail
To drastically reduce the workload involved in having to replace every instance of $_SERVER['PHP_SELF'] with the script containing location.href, use one of the several text replacement programs available. The one I use is called Free Text Blocks Replacer:
It's a very small download consisting of two files totalling just 35.7 KB that runs when the executable (textrep.exe) is double-clicked. No installation is required. Despite its small size, it's very useful. It's a great time saver when having to replace the same block of text across 100's of web pages.
Please keep us updated on your situation.
thanks mr abajan for your answer
but i don't understant what do you want to tell me ... can you help me useful to know from where guest write on from 100 pages of my site thanks
can any one help me please i don't have any idea yet can you help me to know where the guest write on my 100 page thanks
Muhammad, I believe there may have been some misunderstanding about what you want to achieve. Did you not want a way to know the page from which a submission came?
If possible, please post additional entries in this thread in your native language and we will use a tool to translate it. Perhaps then it will be clearer what you want.
I believe you got what I want . Yes, I want a way to know the page from which a submission came?
but I followed the steps you sent me and I got no soluation . Kindly revise the steps you sent me .
I will appreciate your soonest reply.
Hello Every one friend in Jot Form
Finaly I Make it ... Sorry Mr AYTEKIN ( jotForm Co-Founder ) about you say but i make it with JAVA SCRIPT CODE
if you want to Try it copy the code and EDIT it into your source form
<input type="hidden" id="simple_spc" name="simple_spc" value="3630339014" />
<input type="hidden" class="form-hidden" value="<?php echo $_SERVER['HTTP_REFERER'];?>" id="input_30" name="q30_url" />
first to make it into your form tools add Hidefields and make sure to don't any words in THE VALUE
and Save the form and back to Your Source Code and copy all of body and edit it into your page
and replace the code with my code and you will see it ......
thanks again my friend to help me in my problems JUST I WILL SAY THE FRIEND BEST OF MY WORLD ...... thanks any question just call me
can anyone tell me another reason ......