Form POST Data to Other HTML Page

  • linqdigital
    Asked on May 18, 2015 at 3:40 AM

    Hi

     

    I'm unable to get Form Data on Lead Confirmation Page. I've referred to Jotform User Guide and Forum for POST Method and Redirect PHP technique but could not resolve. Can you tell me where I am going wrong

    Form: TRIAL

    FORM URL: http://www.linqdigital.com/download/BML/Testlead.html

    Custom Redirect URL: http://www.linqdigital.com/download/BML/redirect.php

     

    Redirect Script Below

    <?php 

    $answers = $_POST;

     $url1 = "http://www.linqdigital.com/download/bml/leadsuccesspg.html"; // This is the URL address of the custom web page

     $var1 = "?Name=".urlencode($answers[fullName3]);

     $var2 = "&{emailAddress}=".urlencode($answers[emailAddress]);

     $url2 = $url1.$var1.$var2.$var3.$var4;

     header("location:$url2");

    ?>

  • Sammy
    Replied on May 18, 2015 at 7:37 AM

    The issue lies with the way you are calling the indexes of the $_POST data

    $answers[fullName3],$answers[emailAddress] you need to enclose the index key names in quotes

    $answers['fullName3'],$answers['emailAddress']

    Kindly correct the above then revert back with the outcome

    Thanks

  • linqdigital
    Replied on June 15, 2015 at 8:49 AM

    Hi

    I am unable to POST data after submitting values to Jotform Custom URL for ThankYou Page.

    Form Name: BML Munjal UG

    Form URL: http://linqdigital.com/download/bml/formUG.html

    Redirect URL: http://linqdigital.com/download/bml/redirectug.php

     

    I had come across this problem earlier but it got resolved by Jotform team.

  • Sammy
    Replied on June 15, 2015 at 10:23 AM

    Hi,

    Have you confirmed that the post data in the custom PHP page are enclosed in quotes. Kindly verify that the field names within the post are enclosed in single or double quotes.


    You can also provide a sample of the post data similar to the previous one you had submitted earlier for further examination.

  • linqdigital
    Replied on June 16, 2015 at 1:07 AM

    Hi Sammy

    Thank you for the response.

    I have used Single Quotes and Double Quotes as well as no Quotes to give a try (source code attached). But it did not result in data posted. I reckon this was the same problem I faced earlier but it was resolved automatically after posting this Question on Jotform support.

    I checked with www.jotform.com/show-post-data but it displayed 'No Data Posted...'

     

    I have test form running which is working absolutely fine. http://www.linqdigital.com/download/BML/Testlead.html 

     

    Redirect Code below

     

  • Welvin Support Team Lead
    Replied on June 16, 2015 at 6:52 AM

    Your redirect code have failed to appear in this thread. Please use http://pastiebin.com/ and share us the pastie link so we can check it.

    Thanks

  • linqdigital
    Replied on June 16, 2015 at 7:55 AM

    Hi

     

    Thank You Welvin and Sammy for responding back to my query. Just couple of minutes back the problem got resolved without me making any changes. Someone again from Jotform must have troubleshoot and rectified the problem without dropping a message. Thank him as well.

     

    Regards,

    Jigar

  • Boris
    Replied on June 16, 2015 at 10:17 AM

    On behalf of my colleagues, you are kindly welcome.

    As I don't think that anyone has worked on the issue without reporting back to you on this thread, the temporary issue might have been caused by a simple caching issue. 1. Perhaps your browser still had the old page in its cache, and it resolved itself when your browser made a new load, or if you have cleared your cache in the mean time. 2. Perhaps it was caused by our form cache, which acts similarly to browser cache, and is refreshed periodically.

    This might be a simple advice for the future, but I would advise you to try clearing your form cache, as well as clearing your browser cache, when you make some page changes which don't seem to work correctly for no apparent reason.

    Please let us know whenever you need any help with your forms, as always, we are happy to assist you. :)