Jump to content

cuekillar

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cuekillar's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. also how could I add a message that appears when some1 joins the list or a redirected page saying thanks or somthing? thanks in advanced :)
  2. when u type ur address in and hit submit nothing happens and it just resets, although it did make the email_list.txt file but wont add anythign into it... Im completely lost, any thoughts theres the site http://www.nintendo.online-cue.com/send_email.php ===CODE==== <?php // join the mail list? if ($php_script_list == "yes") if(file_exists("email_list.txt")) { $newfile = fopen("email_list.txt", "r"); while(!feof($newfile)) { $duplicate = fgetss($newfile, 255); // is email address submitted already on file? if(eregi("$from", $duplicate)) { print("This email <strong>$from</strong>"); print(" is already in the database. <br>Please go back"); print(" and uncheck the mail list box"); fclose($newfile); exit; } } fclose($newfile); $addemail = fopen("email_list.txt", "a"); fputs($addemail, "$from\n"); fclose($addemail); } else { // since file doesn't already exist, let's create for first time $newfile = fopen("email_list.txt", "a"); fputs($newfile, "$from\n"); fclose($newfile); chmod("email_list.txt", 0666); } ?> <form action="" method="POST"> e-mail:<input type="text" size="22" name="from" value="urisp@urisp.com"><br> Let me recieve newsletters!<input type="checkbox" name="php_script_list" value="yes"><br><br> Enter your message and click submit!<input type="submit" name="submit" value="Submit"> ====END CODE====
  3. mail.html------ <form action="send_email.php3" method="POST"> From:<input type="text" size="22" name="from" value="urisp@urisp.com"><br> subject:<input type="text" size="22" name="subject" value="diary entry suggestion"><br> Let me recieve newsletters!<input type="checkbox" name="php_script_list" value="yes"><br> <textarea name="contents" rows="5" cols="40"></textarea><br> Enter your message and click submit!<input type="submit" name="B1" value="Submit"><input type="reset" name="B2" value="Reset"> ------------------- send_email.php3 ----- <? $to = "cue_killar@yahoo.co.uk"; $from_header = "From: $from"; if($contents != "") { //send mail - $subject & $contents come from surfer input mail($to, $subject, $contents, $from_header); // redirect back to url visitor came from header("Location: $HTTP_REFERER"); } else { print("<HTML><BODY>Error, no comments were submitted!"); print("</BODY></HTML>"); } ?> ------------------ The problem is that I'm trying to get this script to work and although it looks fine to me, when I go to the mail.html , fill out the form and submit all i get is this.... Error, no comments were submitted!"); print("</BODY></HTML>"); } ?> and I dont get the email ignore the mailing list, i no its not working or anything. http://www.nintendo.online-cue.com/mail.html try it and see if it works for you  hope you can help
×
×
  • 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.