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.


  • Profile Image

    PHP Codes in Notification Emails

    Asked 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

     

     

     

     


    Page URL:
    http://opitravel.net/egypt-vacation-outgoing-tours-inbound/istanbul/it<br/>em/413/istanbull-antalya2011

    Screenshot
  • Profile Image
    JotForm Support

    Answered by NeilVicente on June 21, 2011 at 09:33 PM

    Hello,

    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.


    Neil

  • Profile Image

    Answered by MuhammadOrient on June 22, 2011 at 05:34 AM

    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

  • Profile Image

    Answered by MuhammadOrient on June 22, 2011 at 05:40 AM

    i know also hidefield but when add on defult field the code PHP it's not send it on mail please help me sir

  • Profile Image
    JotForm Support

    Answered by NeilVicente on June 22, 2011 at 06:59 AM

    Hi Muhammad,

    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.


    Neil

  • Profile Image

    Answered by MuhammadOrient on June 22, 2011 at 07:19 AM

    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

     

     

    okai

    thanks again mr neil

  • Profile Image
    JotForm Support

    Answered by NeilVicente on June 22, 2011 at 11:26 PM

    Hi,

    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.

    How to Use a Single Form in Multiple Sites and Know Which Site a Submission Came From

    How to find out the address of the page from which a submission came

    The first solution above uses iFrame codes for embedding while the second one uses Source


    Neil

  • Profile Image

    Answered by MuhammadEid on June 23, 2011 at 06:33 AM

    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

     

    thanks

  • Profile Image
    JotForm Support

    Answered by liyam on June 24, 2011 at 02:13 PM

    Hello MuhammadEid,

    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

  • Profile Image

    Answered by MuhammadEid on June 25, 2011 at 05:19 AM

    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

     

    Muhammad

    Muhammad Eid

  • Profile Image

    Answered by MuhammadEid on June 25, 2011 at 05:25 AM

    mr liyam .... your step didn't work

    the code

    $_SERVER['PHP_SELF'];

     

    not process in my mail

  • Profile Image
    JotForm Support

    Answered by abajan on June 25, 2011 at 10:23 AM

    Hello Muhammad

    Perhaps the best thing to do would be to not use $_SERVER['PHP_SELF'] and just use location.href as specified in the instructions in our user guide.

    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.


    ~ Wayne

  • Profile Image

    Answered by MuhammadOrient on June 25, 2011 at 12:00 PM

    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

  • Profile Image

    Answered by MuhammadOrient on June 26, 2011 at 06:19 AM

    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

     

  • Profile Image
    JotForm Support

    Answered by abajan on June 26, 2011 at 09:43 AM

    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.

    Thanks.


    ~ Wayne

  • Profile Image

    Answered by MuhammadEid on June 26, 2011 at 10:13 AM

    Dear

    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.

  • Profile Image
    JotForm Founder

    Answered by aytekin on June 27, 2011 at 03:43 AM

    Sorry, there is no way to know the URL where the form was located with existing JotForm features. You can possibly get the URL using PHP or JavaScript and embed it into a field, but we cannot provide the code for you. Our support does not include such code writing. Thanks.

  • Profile Image

    Answered by MuhammadEid on June 28, 2011 at 08:05 AM

    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" />
        <script type="text/javascript">
            document.getElementById("input_30").value=location.href;
        </script>
        <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

     

    Muhammad

    2domore CEO

  • Profile Image

    Answered by MuhammadEid on June 30, 2011 at 11:19 AM

    can anyone tell me another reason ......

  • Profile Image

    Answered by simranjeetkaur  on January 13, 2015 at 05:15 AM

    i want to know how to generate  an email when user want to edit a particular form in php