khaus Posted January 22, 2009 Share Posted January 22, 2009 Have a form, that working - Now, once the form is submitted, I'm trying to send someone to a Thankyou page. S/t just isn't quite working, this is what I have: <tr><td colspan="2" align='center'><input type='submit' value='Submit' /> <input type='button' value='Cancel' onclick="location.href='/';" /></td></tr> </table> </form> <!-- End: --> <?php if( $sErr ) print "<script language='javascript' type='text/javascript'>location.href='#error';</script>";;; else: //!$isHideForm print( "<br><br><hr><center><b>Your form has been sent. Thank you.</b><br><br><input type='button' value='Home' OnClick=\"location.href='http://www.myurl.com/thankyou.html';\"></center><br><br>" ); endif; //!$isHideForm ?> Link to comment https://forums.phpfreaks.com/topic/142025-once-submitted-taken-to-a-new-url-or-page/ Share on other sites More sharing options...
The Little Guy Posted January 22, 2009 Share Posted January 22, 2009 that is so confusing... please format it, and use: the tags (no spaces) Link to comment https://forums.phpfreaks.com/topic/142025-once-submitted-taken-to-a-new-url-or-page/#findComment-743664 Share on other sites More sharing options...
khaus Posted January 22, 2009 Author Share Posted January 22, 2009 Sorry <!-- End: --> <?php if( $sErr ) print "<script language='javascript' type='text/javascript'>location.href='#error';</script>";;; else: //!$isHideForm print( "<br><br><hr><center><b>Your form has been sent. Thank you.</b><br><br><input type='button' value='Home' OnClick=\"location.href='http://www.thesavvybride.com/thank_you.html/';\"></center><br><br>" ); endif; //!$isHideForm ?> <!-- footer --> Link to comment https://forums.phpfreaks.com/topic/142025-once-submitted-taken-to-a-new-url-or-page/#findComment-743705 Share on other sites More sharing options...
DeanWhitehouse Posted January 22, 2009 Share Posted January 22, 2009 Use header or meta refresh to automatically redirect, also you can't have ;;; it will produce an error, you only need one ; Link to comment https://forums.phpfreaks.com/topic/142025-once-submitted-taken-to-a-new-url-or-page/#findComment-743710 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.