PHP login/password script

Thread Solved

Join Date: Dec 2007
Posts: 252
Reputation: ProfessorPC is an unknown quantity at this point 
Solved Threads: 27
ProfessorPC ProfessorPC is offline Offline
Posting Whiz in Training

Re: PHP login/password script

 
0
  #11
May 28th, 2008
see your using a little protection for sql injection. good deal. ok you are setting the label to store id. will you try changing your storeid part of the form to this:
  1. <form action="sox.php" method="post">
  2. <label for="store_id" style="font-size: 14px; margin-top: 10px; font-weight: bold; font-variant: small-caps;">Store ID:</label>
  3. <input type="text" name="store_id" value="" maxlength="30" style="width:49.6%; font-size: 30px;"<br />
  4.  
  5. <input type="submit" style="width:90px; height: 35px; margin-left: 260px; -moz-border-radius: 10px;" name="submit" value="get_info">
  6. </form>
this is going to take the text the user enters and set this as store_id. on your other page you can simply do this to pull that over.

  1. <?php
  2. if(isset($_POST['get_info'])){
  3. $storeid = $_POST['store_id'];
  4. //complete your code
or you can keep it the same and just change the textfield name to name="store_id".
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 129
Reputation: justinmyoung is an unknown quantity at this point 
Solved Threads: 0
justinmyoung justinmyoung is offline Offline
Junior Poster

Re: PHP login/password script

 
0
  #12
May 28th, 2008
Thanks for your help! Works now!
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 252
Reputation: ProfessorPC is an unknown quantity at this point 
Solved Threads: 27
ProfessorPC ProfessorPC is offline Offline
Posting Whiz in Training

Re: PHP login/password script

 
1
  #13
May 28th, 2008
Your welcome. Glad I could help.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC