 | Broken Script? |  |
Posted: 05/27/2007 5:34 AM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 12:16 PM
Location: SE England
|

|
|
|
|
 |
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 |
|
|
 | Re: Broken Script? |  |
Posted: 05/27/2007 9:50 AM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 12:16 PM
Location: SE England
|

|
|
|
|
 |
Doesn't matter
I found out that the host has restrictions on free accounts (it was only a test site )
- Poomie |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Broken Script? |  |
Posted: 05/27/2007 10:05 AM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 12:16 PM
Location: SE England
|

|
|
|
|
 |
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 |
|
|
 | Re: Broken Script? |  |
Posted: 05/27/2007 12:12 PM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 12:16 PM
Location: SE England
|

|
|
|
|
 |
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 |
|
|
 | Re: Broken Script? |  |
Posted: 05/29/2007 8:48 AM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 12:16 PM
Location: SE England
|

|
|
|
|
 |
LOL =P
Doesn't matter.
Thanks anyways ^^
- Poomie |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Broken Script? |  |
Posted: 05/29/2007 8:23 PM |
|
|
|
|
|
| Site Admin |
| Posts |
49593 |
| Word Cnt. |
2,756,445 |
| BDay |
Apr 22 |
| Sign |
Taurus |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:16 AM
Location: Texas
|

|
|
|
|
 |
I love to see people talking to themselves. Lets me know I'm not crazy
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Broken Script? |  |
Posted: 05/30/2007 5:59 AM |
|
|
|
|
|
| Citation |
| Posts |
407 |
| Word Cnt. |
10,993 |
| BDay |
May 28 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Feb 25, 2007
Local time: 12:16 PM
Location: SE England
|

|
|
|
|
 |
LOL!
I do that all the time. Especially when I'm working
- Poomie |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Broken Script? |  |
Posted: 05/30/2007 7:29 AM |
|
|
|
|
|
| Site Admin |
| Posts |
49593 |
| Word Cnt. |
2,756,445 |
| BDay |
Apr 22 |
| Sign |
Taurus |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 6:16 AM
Location: Texas
|

|
|
|
|
 |
You do it real well too!
 |
|
|
 |
 |
| Back to Top |
|
|
 | 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
|
|
|
|
|