This topic is locked

Registration Page

6/17/2007 3:15:24 PM
PHPRunner General questions
R
rainerwolf author

I want to create an application with registration page. The user must accept a text like "I have read the licence Information, and i agree all the terms .....

This text is stored in a table.
If the user accept the text, he will be redirected to the registration page and a value of "1" must be set to a field in another table.
If the user don't accept the text, the application must leave with a text like "You have not accepted the licence information, good bye ...".
Did anyone has a solution for this?
Thanks

Rainer Wolf

J
Jane 6/18/2007

Rainer,
you can do it using RegisterOnLoad event on the Events tab.

Here is a sample code:

?><script type="text/javascript">

if (!confirm("I have read the licence Information, and i agree all the terms"))

{

alert("You have not accepted the licence information, good bye");

window.location = "login.php";

}

</script><?php