Jump to content

Redirecting in php


drmota

Recommended Posts

Hey guys,

 

If my php looks like this: (notify if errors)

 

<?php

$user=$_POST['user'];
$pass=$_POST['pass'];

if(($user=="testing") && ($pass=="testing123")) echo "Access Granted";
if other echo "Access Denied!"

?>

 

If after the "Access Granted" It could redirect the user to another webpage, index2.html for instance.

 

Thanks in advance  8)

 

Link to comment
https://forums.phpfreaks.com/topic/226241-redirecting-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.