steviez Posted February 26, 2009 Share Posted February 26, 2009 Hi, I am trying to make a new signup system for my site, there will be three signup steps to complete before you will be signedup. Ho do i make all the data from the parts available at the end step for them to be inserted in to the database? Any help would be great! Steve Link to comment https://forums.phpfreaks.com/topic/147074-signup-help/ Share on other sites More sharing options...
The Little Guy Posted February 26, 2009 Share Posted February 26, 2009 place them in sessions! page1.php session_start(); $_SESSION['page1'] = 'this is page one'; echo '<a href="page2.php">Go to page 2</a>'; page2.php session_start(); echo $_SESSION['page1']; Link to comment https://forums.phpfreaks.com/topic/147074-signup-help/#findComment-772125 Share on other sites More sharing options...
jackpf Posted February 26, 2009 Share Posted February 26, 2009 Or you could use hidden inputs. Either way. Link to comment https://forums.phpfreaks.com/topic/147074-signup-help/#findComment-772149 Share on other sites More sharing options...
The Little Guy Posted February 26, 2009 Share Posted February 26, 2009 Or you could use hidden inputs. Either way. That isn't as secure. Link to comment https://forums.phpfreaks.com/topic/147074-signup-help/#findComment-772154 Share on other sites More sharing options...
jackpf Posted February 26, 2009 Share Posted February 26, 2009 Guess not tbh. Link to comment https://forums.phpfreaks.com/topic/147074-signup-help/#findComment-772161 Share on other sites More sharing options...
PFMaBiSmAd Posted February 27, 2009 Share Posted February 27, 2009 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 More sharing options...
The Little Guy Posted February 27, 2009 Share Posted February 27, 2009 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 More sharing options...
PFMaBiSmAd Posted February 27, 2009 Share Posted February 27, 2009 Passing a password or a cc number in a hidden field is no less secure than when those two pieces of information were originally typed in a field and submitted. Link to comment https://forums.phpfreaks.com/topic/147074-signup-help/#findComment-772653 Share on other sites More sharing options...
shadiadiph Posted February 27, 2009 Share Posted February 27, 2009 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 More sharing options...
shadiadiph Posted February 27, 2009 Share Posted February 27, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.