elentz Posted January 13, 2008 Share Posted January 13, 2008 I have a script that was done by someone else that I want to add to. By itself it only produces a PDF that is offered as a download. What I want is to add some code at the end of the script that will do something like offer two buttons that will "route" the script to either one section of the script or the other and then end the script. All it needs to be is very simple. Can someone show me an example on how to do this? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/85869-form-navigation-help/ Share on other sites More sharing options...
Fyorl Posted January 13, 2008 Share Posted January 13, 2008 Give the inputs a name attribute and then test for that in the script using the $_POST variable. Quote Link to comment https://forums.phpfreaks.com/topic/85869-form-navigation-help/#findComment-438370 Share on other sites More sharing options...
elentz Posted January 15, 2008 Author Share Posted January 15, 2008 Thank you I'll give it a shot Ed Quote Link to comment https://forums.phpfreaks.com/topic/85869-form-navigation-help/#findComment-439509 Share on other sites More sharing options...
Fyorl Posted January 15, 2008 Share Posted January 15, 2008 If you then wrap the parts of the script in functions then you can run one function if you detect one button was clicked and the other function if the other button was clicked. Quote Link to comment https://forums.phpfreaks.com/topic/85869-form-navigation-help/#findComment-440312 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.