Skip to content
Advertisement

Button redirecting to php file

when i press the ‘continue’ button i’m redirected to form’s php functions file ( localhost/install/hamburgher.php ),but that must check if the code is correct or it will display an error.

hamburgher.php (functions on clicking of the button):

Form file – step_3.php:

The code must display an error if: – the input code is null; – the input code is expired; – the input code is not existing;

on displaying of error,the page must be same,but with <?php echo display_error(); ?> on the page,there will be the error message.

You must be redirected on page step_4.php if the code is found in database and is not expired

I know,i know,i will modify the code to avoid SQL injections,this is a beta code.

Thanks.

Advertisement

Answer

The quickest way to solve the issue would be to move the code from hamburgher.php to step_3.php and then remove the action for the form so it goes back to the same page.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement