This is where you share YOUR scripts with others
Moderators: macek, egami, gesf
by newguy11 » Wed Jul 13, 2011 3:43 am
So here is the code I am using at the moment and I know its very basic. What I would like to happen is for the php to check weather the username and password is correct then link directly to another URL but with this code it just pulls up a blank screen with /processphp at the end of the URL. Can someone please help me to understand why this isn't quite working the way I need it to and help me to fix it?
- Code: Select all
<?php
$username = $_POST["username"];
$password = $_POST["password"];
$actualusername = "newguy11";
$actualpassword = "password";
if($username == $actualusername && $password == $actualpassword){
echo "<a href=http://127.0.0.1:8888/web/Msapcalcmainsite/template3.html/>";
}
else {
echo 'info';
}
?>
-
newguy11
- New php-forum User

-
- Posts: 1
- Joined: Wed Jul 13, 2011 3:28 am
by inv123 » Thu Aug 11, 2011 5:40 am
Try to add a name to your url, like:
- Code: Select all
<a href=http://127.0.0.1:8888/web/Msapcalcmainsite/template3.html/>Href title</a>
Than the link should be appeared.
-
inv123
- New php-forum User

-
- Posts: 4
- Joined: Fri Jun 03, 2011 11:45 pm
Return to Your Scripts
Who is online
Users browsing this forum: No registered users and 2 guests