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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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?
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?
yes, i would like to use one customized Thank you page for all the forms :)
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.
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>";
You missed an ending single quote for the value entry.
value='www.tynset.org/kurs/common/takk.html'
Thanks!, everything works great now :)