943,587 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 5530
  • PHP RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
May 28th, 2008
0

Re: PHP login/password script

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:
html Syntax (Toggle Plain Text)
  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.

php Syntax (Toggle Plain Text)
  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".
Reputation Points: 31
Solved Threads: 29
Posting Whiz in Training
ProfessorPC is offline Offline
270 posts
since Dec 2007
May 28th, 2008
0

Re: PHP login/password script

Thanks for your help! Works now!
Reputation Points: 22
Solved Threads: 1
Junior Poster
justinmyoung is offline Offline
133 posts
since Mar 2008
May 28th, 2008
1

Re: PHP login/password script

Your welcome. Glad I could help.
Reputation Points: 31
Solved Threads: 29
Posting Whiz in Training
ProfessorPC is offline Offline
270 posts
since Dec 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Execute more queries "PHP"
Next Thread in PHP Forum Timeline: Pagepost Back Function





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC