anchorpoint Posted April 28, 2021 Share Posted April 28, 2021 I have an 'I agree' button on this page https://www.setstuffrentals.com/credit-card-authorization/ I basically need the button to redirect to another web page after a customer hits 'I agree'. I don't know PHP much. Can someone help step by step, please? Quote Link to comment https://forums.phpfreaks.com/topic/312553-adding-page-link-to-buttom/ Share on other sites More sharing options...
anchorpoint Posted April 28, 2021 Author Share Posted April 28, 2021 I tried adding this but it doesn't seem to work. The URL is the page I want the button to be redirected to (not in new window). onclick="location.href='https://www.setstuffrentals.com/confirmation' Quote Link to comment https://forums.phpfreaks.com/topic/312553-adding-page-link-to-buttom/#findComment-1586197 Share on other sites More sharing options...
requinix Posted April 28, 2021 Share Posted April 28, 2021 If you want to submit the form and redirect then you cannot do it with any Javascript or other alterations to the button itself. Has to be PHP. What is the code that handles the form submission? Quote Link to comment https://forums.phpfreaks.com/topic/312553-adding-page-link-to-buttom/#findComment-1586198 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.