Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
Broken Script?
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Talk PC Add To Bookmarks
Broken Script?
PostPosted: 05/27/2007 5:34 AM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 12:16 PM
Location: SE England
greatbrE.gif
Sorry to bother you again NR, but I found a contact form script, but it isn't sending out the email:

Code:
<?php

//variables (change these)

$youremail = "poomerio@total360forums.white-projects.com";
// your email address

$subject = "Contact";
// the subject of the email

$thankyou = "index.php?id=thanks";
// thank you page

// don't change anything else

if($email == ""){
?>
No email address added. Please go back.<br/>
<?php
}elseif($name == ""){
?>
No name added. Please go back.<br/>
<?php
}elseif($message == ""){
?>
No message added. Please go back.<br/>
<?php
}else{

$msg = ereg_replace("\\\'", "'", $message);
$msg = ereg_replace('\\\"', "\"", $msg);
$message1 = "from: $name\nemail: $email\nmessage:\n$msg1";

mail($youremail, $subject, $msg, "From: $email\r\nReply-to: $email\r\n");
?>
<meta http-equiv="refresh" content="0; url=<?echo $thankyou;?>"">
<?php
}
?>


Any ideas?

Thanks,
- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: Broken Script?
PostPosted: 05/27/2007 9:50 AM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 12:16 PM
Location: SE England
greatbrE.gif
Doesn't matter Smile
I found out that the host has restrictions on free accounts (it was only a test site Wink)

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: Broken Script?
PostPosted: 05/27/2007 10:05 AM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 12:16 PM
Location: SE England
greatbrE.gif
OK, another problem.

Whenever I try and submit it, it thinks that no email was specified.
How do I make that an optional field?

The HTML:

Code:
    <div id="main">

      <form action="mail.php" method="post">

      Name <input type="text" name="name"><br/>

      Email addess <input type="text" name="email"><br/>

      Message<br/>

      <textarea name="message" cols="40" rows="5"></textarea><br/>

      <input type="submit" value="send"><br/>
      
      </form>

    </div>


Would it be type="optional"?

Sorry, I forgot *smacks head*

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: Broken Script?
PostPosted: 05/27/2007 12:12 PM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 12:16 PM
Location: SE England
greatbrE.gif
Sorry again; could you check for me that the script will work, because it isn't sending me an email *hmmf*

Thanks,
- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: Broken Script?
PostPosted: 05/29/2007 8:48 AM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 12:16 PM
Location: SE England
greatbrE.gif
LOL =P
Doesn't matter.

Thanks anyways ^^

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: Broken Script?
PostPosted: 05/29/2007 8:23 PM Reply with quote
Site Admin
rb2d2
Site Admin
Posts 49593
Word Cnt. 2,756,445
BDay Apr 22
Sign Taurus
Sex Sex:Female
Joined: Sep 25, 2004
Local time: 6:16 AM
Location: Texas
texasC.gif
I love to see people talking to themselves.  Lets me know I'm not crazy



blob8
Back to Top
View all pictures posted by this userView user's profile Find all posts by rb2d2 Send private message   Visit poster's website Phoogle Map
Re: Broken Script?
PostPosted: 05/30/2007 5:59 AM Reply with quote
Citation
poomerio
Citation
Posts 407
Word Cnt. 10,993
BDay May 28
Sign Gemini
Sex Sex:Male
Joined: Feb 25, 2007
Local time: 12:16 PM
Location: SE England
greatbrE.gif
LOL!

I do that all the time. Especially when I'm working  banana

- Poomie
Back to Top
View user's profile Find all posts by poomerio Send private message   Phoogle Map
Re: Broken Script?
PostPosted: 05/30/2007 7:29 AM Reply with quote
Site Admin
rb2d2
Site Admin
Posts 49593
Word Cnt. 2,756,445
BDay Apr 22
Sign Taurus
Sex Sex:Female
Joined: Sep 25, 2004
Local time: 6:16 AM
Location: Texas
texasC.gif
You do it real well too!


Applause
Back to Top
View all pictures posted by this userView user's profile Find all posts by rb2d2 Send private message   Visit poster's website Phoogle Map
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Talk PC

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0524s (PHP: 77% - SQL: 23%) - SQL queries: 51 - GZIP disabled - Debug on