on your login form what you have set for ACTION ?
<form action=???>
sv3tli0
Junior Poster in Training
78 posts since Aug 2011
Reputation Points: 10
Solved Threads: 18
I think you have some big errors at your code.
First I don't understand how you use $_GET at your function.. ?
one normal login form should be as
<form action="login.php" method="post">
<input type="text" name="username">
<input type="password" name="password">
<input type="submit" value="Login"></form>
At this case after submit you will POST this data in php format:
$_POST["username"]="THE_NAME_YOU_ENTER";
$_POST["password"]="THE_PASSWORD_YOU_ENTER";
You cant use login.php?username=XXX&password=XXX for ACTION.
sv3tli0
Junior Poster in Training
78 posts since Aug 2011
Reputation Points: 10
Solved Threads: 18
I think that you have not just one problem .
<td><input type="text" STYLE="foreground:#ffffff; color:#eaeaea;" id="username"name="username" value="bob" onfocus="clearMe(this)"/></td>
First correct this line because you haven't close the style tag
Can you open your page in browser, click your right button of mouse open source code and check
Your problem is there because when you submit FORM your browser redirect you to the page written in the ACTION and there is your problem.
sv3tli0
Junior Poster in Training
78 posts since Aug 2011
Reputation Points: 10
Solved Threads: 18
<form action="<?php echo pf_script_with_get(<strong>$SCRIPT_NAME</strong>); ?>" method="post">
The bold text should be$_SERVER['SCRIPT_NAME'].
What is the purpose that the function pf_script_with_get doing ?
If you want the form action to the same page. Use $_SERVER['REQUEST_URI'] which returns the current url including query string (ie., you can get those with $_GET method ), or use $_SERVER['PHP_SELF'] which returns the current url without query string.
Zero13
Practically a Master Poster
624 posts since Jan 2009
Reputation Points: 120
Solved Threads: 139
Try to replace your
<form action="<?php echo pf_script_with_get($SCRIPT_NAME); ?>" method="post">
with
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post">
sv3tli0
Junior Poster in Training
78 posts since Aug 2011
Reputation Points: 10
Solved Threads: 18