Jump to content

firecat318

Members
  • Posts

    54
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

firecat318's Achievements

Member

Member (2/5)

0

Reputation

  1. I'm very quite stumped. Is there something special that I need to setup in my hosting that will allow me to send emails, or will it work without anything special setup? I'm using godaddy windows hosting. I've tried lots of different variations of this code but it won't work. I'm just wondering if there is something I'm not getting that is causing the mail not to be sent.
  2. I've added a from header, but it still won't send. <?php $headers = "From: [email protected]"; mail('firecat318', 'hello', 'just a test!', '$headers'); ?>
  3. I got the windows hosting. is there anyway to switch it without paying?
  4. OMG I can't find an answer anywhere.
  5. I'm using godaddy, so its not my server.
  6. Do I need to setup something special to be able to send emails?
  7. I dont know... like I said, I haven't set anything up yet. I do I go about that?
  8. Additional headers is optional though.
  9. I have this code to send a sample message to an email: <?php $to = "[email protected]"; $subject = "hello"; $message = "this is just a random test"; $mail = mail($to, $subject, $message); if(!$mail) { die("There was a problem when mailing!"); } else { echo "Thank you for sending your mail!"; } ?> When I run the script, it says there was an error mailing. Is there anything in particular that I need to set up on my host so that it allows me to send mails?
  10. Try doing something with the database, like adding a new field called 'validation'. If you want the person to be an admin, put yes, or no, just leave it blank. Then, you can use some mysql checking to see whether they would have access to certain areas of the site.
  11. <form action=" <?php $_SERVER['PHP_SELF']; ?> " method="POST"> To: <input type="text" name="to" size="30" /><br /> From: <input type="text" name="from" size="30"><br /> Message: <input type="text" name="message" size="70" /><br /> <input type="submit" name="submit" value="submit"> </form> <?php $message = $_POST['message']; $too = $_POST['from']; $email = $too.'@gmail.com'; mail($email, $message); ?>
  12. post all of your code so I can look over it and help more.
  13. On how you would create them or how you would insert your data into them? If you have phpmyadmin, you can easily go into the db to create the tables. But if you don't, then use this guide. http://www.tizag.com/mysqlTutorial/mysqltables.php Post back on what you were needing help on.
  14. Yes, that seemed to work. But now, how come the emails aren't being sent?
  15. You need something like this. <?php $sql = mysql_query("SELECT users FROM users WHERE username = '$session'; $username = mysql_result($sql, 0); echo "Hello, $username"; ?> Just change "users" "users" and "username", unless your tables and rows are already called that. Then, you have to give your session a variable, something like.. <?php session_start(); $session = $_SESSION['username']; ?> And when they login, you have to log their username into a session. If all goes well, it should display their name depending on what is in the database.
×
×
  • 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.