473,322 Members | 1,566 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Recall

Hello,
is there a possibility to recall a page in which I had entered a
password before with a hint that it was the wrong password.

Many thanks
Jul 17 '05 #1
1 2197
BjoernJackschina wrote:
Hello,
is there a possibility to recall a page in which I had entered a
password before with a hint that it was the wrong password.

Many thanks


Hi BjoernJackschina,

Suppose you have a page with a form: login.php
the action in the form is login_process.php
Just let login_process.php return to login.php with an reason stored in the
GET.

eg:
login.php
-------------------------

<form action="login_process.php" method="POST">
<?
if (isset($_GET["result"])) {
?>
<b><? echo $_GET["result"]; ?></b>
<?
}
?>
login:<br>
username: <input type=text name="username"><br>
password: <input type=password name="password"><br>
<input type="submit" value="login">
</form>
-----------------------------

and login_process.php
--------------------------
<?
// Receive username and password
// If correct, set in SESSION isloggedin
$username = ((isset($_POST["username"])) ? $_POST["username"] :
"notpassed");
$password = ((isset($_POST["password"])) ? $_POST["password"] :
"notpassed");

if (($username == "BjoernJackschina") AND ($password == "secret")) {
// ok
$_SESSION["isadmin"] = "Y";
// send somewhere to continue
header("Location: admin.php");
} else {
// not ok
header("Location: login.php?result=".urlencode("bad username/password"));
}
?>
------------------------------

Regards,
Erwin Moller
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Carlos Marangon | last post by:
Hello! I need some help. How can I recall the last 5 rows from a MySQL table and show them? Where is the FAQs of this newsgroup? Sincerely,
2
by: Jochem | last post by:
Hello, Lately I came accross this problem a couple of times, and I know there must be a clever solution. However, I did not find it untill now. When I add a entry to my mysql database from a...
2
by: Prabhu Ram Prasath | last post by:
I have a series of 5 or 6 pages each containing some 10 or 12 text box controls. I need to recall the input given in first page at the last page. How should I use the viewstate collection to...
3
by: Velhari | last post by:
Hi all, Please tell me how to recall the PhP Program to execute the process after it is submitted the contents into another PhP Program....... I have used Javascript to acheive this but...
3
AsSeenonTV
by: AsSeenonTV | last post by:
Hey there! I will admit I am new to these Message Boards and to Visual Basic 6, but I am an experienced programmer when it comes to Visual Basic for Excel. Now with working with Excel, I am able...
3
by: sravan_reddy001 | last post by:
in the following code i am handling the Paint event; this event is associated with the Form1_Paint() method; I want to recall this method. i.e the Contents of the form should be updated every 5...
0
by: Maninder Karir | last post by:
Hi, I have defined some lists in excel (using ctrl + F3). How can i recall these lists to a combobox? Thanks
1
by: artev | last post by:
in short to can insert in a page one file js that recall onother js page Insertion Indirect if have site/test.php site/file1.js site/a/b/file2.js and want file2.js inner file1.js and it...
1
by: Maciej Gawinecki | last post by:
Two questions related to the topic 1. If I have an empty set of relevant results, then it would be better to have no answers from the system at all. But neither precision nor recall gives...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.