Menu

Insert links into the Thank You page?

Help
2006-03-13
2013-06-03
  • erlend_oyen

    erlend_oyen - 2006-03-13

    Hi, is it posible to insert links in to the autogeneratet thank you page?, in that case how?.

    Is it posible to set a default redirect page in process2.php?
    If i have a personal Thank you page here http://mydomain/phpformgen/common/thanks.html

     
    • TNTEverett

      TNTEverett - 2006-03-13

      The thank you page you are probably using is the default very simple one added to the end of your process.php file. 
      If you chose to use a custom thank you page the generator would have setup a redirect to your own custom thank you page in which case you design the page and add anything you want. 
      If you want to keep the simple page you can just edit the end of your process.php file. 
      Not sure about the process2.php file change.  I have never modified the original files, I only modify the files created after running the generator.  I can investigate this for you if you want me to. 
      Let me know if you still need help.

       
    • erlend_oyen

      erlend_oyen - 2006-03-13

      I have modified the original files before, but is it possible to set the "redirect" parameter to a defualt value so the user that uses the generator dosn't have to think about this?

       
      • TNTEverett

        TNTEverett - 2006-03-13

        The generator prompts you for a redirect URL entry.  Are you saying you would like to have the generator assume the URL without having to make the entry? 

         
    • erlend_oyen

      erlend_oyen - 2006-03-13

      yes, i would like to use one customized Thank you page for all the forms :)

       
      • TNTEverett

        TNTEverett - 2006-03-13

        Line 214 of the process2.php file looks like this:
        echo "<tr><td class='small'>Redirect user to thank you page: </td><td class='small'> http://<input type=text name='redirect'></td></tr>";

        Change it to something like this:
        echo "<tr><td class='small'>Redirect user to thank you page: </td><td class='small'> http://<input type=text name='redirect' value='www.domain.com/thanks.html'></td></tr>";

        This makes the default entry you are looking for when running the generator but still allows you to change it when necessary. 

         
    • erlend_oyen

      erlend_oyen - 2006-03-13

      when i modefied that i get this adress in the adressbar:
      http://www.tynset.org/kurs/common/takk.html%3E%3C/td%3E%3C/tr%3E%3Ctr%3E%3Ctd%20class=

      my code is:

      echo "<tr><td class='small'>Send brukere til: </td><td class='small'> http://<input type=text name='redirect' value='www.tynset.org/kurs/common/takk.html></td></tr>";

       
      • TNTEverett

        TNTEverett - 2006-03-13

        You missed an ending single quote for the value entry.
        value='www.tynset.org/kurs/common/takk.html'

         
    • erlend_oyen

      erlend_oyen - 2006-03-13

      Thanks!, everything works great now :)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.