Thank you page redirect to with in my server reports/report.html

  • ljurado37
    Asked on November 9, 2015 at 5:10 PM

    I am creating a form "/index.html" where the text box input will be emailed to me and submit button will send you to a page within my server example /report.html. This form will be published in my web server in root directory.

    The problem I am having is that the thank you page url redirect requires http://FULLURL~~~~/~~~/report.html

    How can i tell the submit button to go to /report.html inside my server? 

    I am creating this form and publishing the code to a page index.html

  • Elton Support Team Lead
    Replied on November 9, 2015 at 7:21 PM

    The Thank you - Custom URL requires full web page URL which includes http:// followed by your domain.

    Example:

    http://mywebsite.com/report.html

    You can't just input report.html, otherwise it will return to a 404 error page.

    --

    If you want to use just /report.html, then you have to create separate thank you page and have it redirect on that URL /report.html.

    Example:

    Your form -> thank you page -> redirect to /report.html

    This will help http://www.jotform.com/help/89-Create-a-Custom-Thank-you-page-with-Auto-redirect.

    If you need further assistance, do let us know.

  • ljurado37
    Replied on November 12, 2015 at 6:05 PM

    My forms code will be published to dreamweaver then I am going to save this form as index.html and place it inside my web server folder http://mywebsite.com/reports/clientname/index.html

    Once someone visits http://www.mywebserver.com/reports/clientname/report.html

    So since the form=index.html page is inside my web server at /clientname/index.html and the report.html is at /clientname/report.html

    So since index.html and reports.html is going to be inside the same folder "/clientname" it should work but it doesn't. How can I do this?

    What I do is send out a link to client that the report is ready at http:/mywebserver.com/reports/clientname (client name changes in each email)

    Then I upload the report.html to http://www.mywebserver.com/reports/clientname

    and I upload the form index.html page to http://www.mywebserver.com/reports/clientname

    When client clicks link in email to view report they see my index.html form at http://www.mywebserver.com/reports/clientname they fill out the form, hit submit and it takes them to the report.html page.

    If the submit button cannot just simply take the user to /report.html then i would need to create a new form for every single client and specify the submit page to be http://mywebserver.com/reports/clientname1

    http://mywebserver.com/reports/clientname2

    http://mywebserver.com/reports/clientname3, 4,5,6,7,8,9 etc...

    I dont want to do that. I just want the form submit button to take the user to /reports.html; it should work since the form=index.html page is inside the same folder but it doesnt.

    How can I do this. I hope you understand?

  • ljurado37
    Replied on November 12, 2015 at 6:08 PM

    My forms code will be published to dreamweaver then I am going to save this form as index.html and place it inside my web server folder http://mywebsite.com/reports/clientname/index.html

    Once someone visits http://www.mywebserver.com/reports/clientname/report.html

    So since the form=index.html page is inside my web server at /clientname/index.html and the report.html is at /clientname/report.html

    So since index.html and reports.html is going to be inside the same folder "/clientname" it should work but it doesn't. How can I do this?

    What I do is send out a link to client that the report is ready at http:/mywebserver.com/reports/clientname (client name changes in each email)

    Then I upload the report.html to http://www.mywebserver.com/reports/clientname

    and I upload the form index.html page to http://www.mywebserver.com/reports/clientname

    When client clicks link in email to view report they see my index.html form at http://www.mywebserver.com/reports/clientname they fill out the form, hit submit and it takes them to the report.html page.

    If the submit button cannot just simply take the user to /report.html then i would need to create a new form for every single client and specify the submit page to be http://mywebserver.com/reports/clientname1

    http://mywebserver.com/reports/clientname2

    http://mywebserver.com/reports/clientname3, 4,5,6,7,8,9 etc...

    I dont want to do that. I just want the form submit button to take the user to /reports.html; it should work since the form=index.html page is inside the same folder but it doesnt.

    How can I do this. I hope you understand?

  • Elton Support Team Lead
    Replied on November 12, 2015 at 8:49 PM

    Yes, that's also possible. But like on the guide I have sent you earlier, you have to create a separate thank you page where users will be initially forwarded to and that thank you page will redirect the user to the final thank you page (report.html). You can achieve this by using the following custom PHP script.

    <?php    

    header('Location: report.html');    

    ?>

    Save this PHP file e.g. redirect.php and upload it to your server. Then set it as your form thank you page.

    Example:

    Thank you page redirect to with in my server reports/report Screenshot 20

    So when the form is submitted, it will redirect to report.html on the same folder.

    If you need more clarifications, let us know.

  • ljurado37
    Replied on November 13, 2015 at 12:58 AM

    Please clarify further.

    Your suggestion does not work.

  • Sammy
    Replied on November 13, 2015 at 5:35 AM

    What my colleague meant is that you will need to create a PHP file in you site and add the above code which will redirect to the report.html page.

    You will then pass it the link to this PHP file in you thank you page URL field.

    One more question is the folder http://www.mywebserver.com/reports/clientname changing dynamically or is it a fixed name folder?

    if that is not the case you can just add he link http://www.mywebserver.com/reports/clientname/report.html to the thank you page