Jump to content

derrick1123

Members
  • Posts

    122
  • Joined

  • Last visited

    Never

Everything posted by derrick1123

  1. Strange, I didn't think about it that way tho.
  2. The callsign is the username...he had stated it in a previous thread.
  3. It shows the error page from the code: if($e>0){ die( "<meta http-equiv='REFRESH' content='0;url=$error_page'>" ); } the error page which is error.htm which is nothing right now.
  4. How come this isn't working? Well for one I made it so that might be why...but still. <? $step = $_POST['step']; if($step==0 || $step==""){ echo " <form action='index.php' method='post'> <input type='hidden' value='1' name='step'> Your Name: <input type='text' name='name' size=30><br> <br> Email Address: <input type='text' name='email' size=30><br> <br> Subject: <input type='text' name='subject' size=30><br> <br> Message<br> <textarea cols=30 rows=6 name='message' wrapping='virtual'></textarea><br> <br> <input type='submit' value='Send!'> </form> "; } if($step=="1"){ // EDITABLE AREA \\ $error_page = "error.htm"; // Url of the error (fail) page $thx_page = "thankyou.htm"; // Url of the thank you (success) page $form_url = "sendemail.htm"; // Url of the form you used before $max_message_len = 9999; // Max length of message $to = "derrick1123@mygrassisemo.com"; // Email address to send email to // END EDITABLE AREA - do not edit below here! \\ $name = $_POST['name']; $email = $_POST['email']; $subject = $_POST['subject']; $message = $_POST['message']; // Error Checking $e = 0; if($name=="" || $name == NULL || $name == 0 || strlen($name)<3){ $e++; } if(strpos($email, "@")===false || strpos($email, ".")===false || strlen($email)<5){ $e++; } if($subject=="" || $subject == NULL || $subject == 0 || strlen($subject)<2){ $e++; } if(strlen($message)>$max_message_len || strlen($message)<5){ $e++; } // Go for it if($e>0){ die( "<meta http-equiv='REFRESH' content='0;url=$error_page'>" ); } else { $message = nl2br($message); $message = "<font face='verdana' size=4>Message from: $form_url: $name <$email> <hr> $message <hr> </font>"; mail($to, $subject, $message, "From: $name <$email>\r\nX-Mailer: $form_url \r\nContent-type: text/html; charset=UTF-8" ); echo "<meta http-equiv='REFRESH' content='0;url=$thx_page'>"; } } ?> BTW, this is the whole thing...there are no other pages.
  5. Does it give an error and if so, what?
  6. phpSinsei got: echo 'Username DB: ' .$row['pwd']; echo 'Password DB: ' .$row['callsign'].' Backwords... echo 'Username DB: ' .$row['callsign']; echo 'Password DB: ' .$row['pwd'].'<br>'; But that shouldn't have anything to do with the error that is given.
  7. My bad lol You might have to use: session_start();
  8. Change: header("location:login_success.php"); to: echo "<head><title><meta http-equiv='refresh' content='5;url=login_success.php'></title></head>";
  9. Can you post your checklogin.php now?
  10. That would make it read the string "$sql" not the query that the var contains. OH, ok thanks!
  11. mysql_close(); Weird, I didn't think it would require this.
  12. I don't know why but: $result=mysql_query($sql); Shouldn't that be: $result=mysql_query("$sql"); ???
  13. I don't know if this has anything to do with it but: $sql="SELECT * FROM $tbl_name WHERE callsign='$callsign' AND password='$password'"; If changing the and to AND has nothing to do with it, please let me know.
  14. Sorry, I am old school. >.< lol
  15. lol I think you should change the IF statement part though. And if that doesn't work...try the mysql_error();
  16. Change: if($count==1){ To: if($count<0){
  17. its giving me this now "Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/pacifij1/public_html/bluewavesvirtual/checklogin.php on line 23" Is that first set of code you gave us the checklogin.php?
  18. Change: $count=mysql_num_rows($result); To: $count=mysql_numrows($result);
  19. Monkey is right though... Give me a second to look at it.
  20. Instead of: serv2.freehostia.com Try: localhost -derrick1123
×
×
  • 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.