I installed a PHP login script. After registering, an email is sent, with a link. It brings you back to the login page. The link looks like this ( not actual site):
http://www.mywebpage.com//login.php?ide ... d6809cadc1
When you are back at the login page, enter the password, hit submit, you get a "Page can not be found" error. Its trying to go to http://login.php/
When I look at the source via the browser, you see this
<h2 class="style4">Please login to access the Members Only sections of mywebpage.com</h2>
<form name="form1" method="post" action="//login.php">
When I look at the source via Dreamweaver, I see this:
<p>Enter here your new password, (login: <b><?php echo $act_password->user; ?></b>).</p>
<form name="form1" method="post" action="<?php echo $PHP_SELF; ?>">
So, it seems that PHP_SELF is adding the //. Should it just point to login.php, or the full path? How can I remedy this?
Thanks,
Rob
[SOLVED] What is PHP_Self ? How do I properly configure it?
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
open the file in notepad..
change
to
not quite sure what you meant..
change
Code: Select all
action="//login.php">Code: Select all
action="login.php">Sorry, this is my first web page, and I just started playing around with PHP. Here was the problem, between the message line, there was a "/". Once I took that out ( its now just ""), it worked fine.
Code: Select all
$msg[29] = "Hallo,\r\n\r\nto activate your request click the following link:\r\nhttp://".$HTTP_HOST.dirname($PHP_SELF)."".$this->login_page."?ident=".$this->id."&activate=".md5($this->user_pw);