Jump to content

signup help


steviez

Recommended Posts

Since the information that would be in the hidden fields is information that was supplied by the visitor, using hidden fields to pass it to the next page is no less secure than any other method. All external data must be validated before it is used by a script.

Link to comment
https://forums.phpfreaks.com/topic/147074-signup-help/#findComment-772226
Share on other sites

Since the information that would be in the hidden fields is information that was supplied by the visitor, using hidden fields to pass it to the next page is no less secure than any other method. All external data must be validated before it is used by a script.

 

What if it is a password, or Credit Card Number?

Link to comment
https://forums.phpfreaks.com/topic/147074-signup-help/#findComment-772348
Share on other sites

on your form you have fields like this

 

<input type="text" name="username" />

 

then you submit it to the next page

 

at the top of the page in in php tags

 

<?

$username = $_POST["username"];

?>

 

in your form on the second page have to  include

 

<input type="hidden" name="username" value="<?=$username?>" />

 

on page three same again

 

<?

$username = $_POST["username"];

?>

 

on your sql insert page the same start with the same code $_Post etc

 

not secure like the other guy said but then nothing is 100% secure ever

 

Link to comment
https://forums.phpfreaks.com/topic/147074-signup-help/#findComment-772668
Share on other sites

one last thought while you are putting your user sign up forms

 

do it like this

 

<?

$username = $_POST["username"];
$country = $_POST["country"];

print $username;
print $country;

?>

 

as when you are passing values you sometime forget to include one and you can always see if the value has been passed once you have it passing all the correct entries delete all the print $str;

that way you will not be sitting there wondering why somethng hasn't been added to your database

 

Link to comment
https://forums.phpfreaks.com/topic/147074-signup-help/#findComment-772672
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.