Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Php script on f9 web space
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Php script on f9 web space
Php script on f9 web space
19-10-2007 7:21 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
We have uploaded the following PHP script to our web page on F9,( a simple contact form, linked to our web mail) but it doesn't work on F9 although we have tried it on another server and it works fine!
any ideas or help gratefully recieved...you can also email at :info@abbotstreetstudios.co.uk
Here's the script:
any ideas or help gratefully recieved...you can also email at :info@abbotstreetstudios.co.uk
Here's the script:
<?php
$sendTo = "info@abbotstreetstudios.co.uk";
$subject = "Form Mail";
$headers = "From: " . $_POST["isim"];
$headers .= "<" . $_POST["e-mail"] .">\r\n";
$headers .= "Reply-To: " . $_POST["e-mail"];
$message = "From: " . $_POST["isim"] ."\n";
$message .= "Email: " . $_POST["email"] ."\n";
$message .= "Tel: " . $_POST["tel"];
$message .= "Message: " . $_POST["mesaj"];
mail($sendTo, $subject, $message, $headers);
?>
Message 1 of 9
(2,461 Views)
8 REPLIES 8
Re: Php script on f9 web space
19-10-2007 7:22 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Could you possibly provide the HTML code for the form also?
Message 2 of 9
(568 Views)
Re: Php script on f9 web space
19-10-2007 7:34 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
In what way does it not work? Error messages, no page output, no email?
Did you upload it to your www or ccgi webspace (they are different). PHP only runs on the ccgi server and will just return the code on the www server.
You also have 2 lines with From in.
Did you upload it to your www or ccgi webspace (they are different). PHP only runs on the ccgi server and will just return the code on the www server.
You also have 2 lines with From in.
Message 3 of 9
(568 Views)
Re: Php script on f9 web space
19-10-2007 7:46 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Peter You also have 2 lines with From in.
The two lines with From in don't matter, as one is for extended header information, and one is within the body of the e-mail.
We do need to know what kind of errors etc result, if any. Out of interest, instead of using the CRLF (\r\n) within the header information, what happens if you simply use a LF (\n)? Don't keep it this way however, as it doesn't comply with the RFC.
Message 4 of 9
(568 Views)
Re: Php script on f9 web space
19-10-2007 7:58 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: MikeWhitehead
Quote from: Peter You also have 2 lines with From in.
The two lines with From in don't matter, as one is for extended header information, and one is within the body of the e-mail.
We do need to know what kind of errors etc result, if any. Out of interest, instead of using the CRLF (\r\n) within the header information, what happens if you simply use a LF (\n)? Don't keep it this way however, as it doesn't comply with the RFC.
the problem is i did not receive any error message or email in my inbox.When i try to send a email in my web page it says your message send to ... but when i checked my inbox i dont see any email.
Message 5 of 9
(568 Views)
Re: Php script on f9 web space
19-10-2007 8:18 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I just tested the php code you posted and the mail gets through to me fine (didn't try to a PlusNet/F9/etc address though, my own server).
So it's either a fault with the routing of the e-mail, or there's a fault with the sending form.
So it's either a fault with the routing of the e-mail, or there's a fault with the sending form.
Message 6 of 9
(568 Views)
Re: Php script on f9 web space
20-10-2007 7:32 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Moderators Note:
Moved to the "Webspace Help" area of the community forum.
Roger.
Moved to the "Webspace Help" area of the community forum.
Roger.
Message 7 of 9
(568 Views)
Re: Php script on f9 web space
21-10-2007 2:00 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Just a thought - if the "From" and "To" e-mail addresses are both not PlusNet e-mail addresses, maybe the PlusNet servers don't let you send the e-mail.
I've no idea whether this would be a problem on websites hosted with PlusNet, because I don't use PlusNet to host my websites, but I've seen it being a problem with other hosts.
I've no idea whether this would be a problem on websites hosted with PlusNet, because I don't use PlusNet to host my websites, but I've seen it being a problem with other hosts.
Message 8 of 9
(568 Views)
Re: Php script on f9 web space
21-10-2007 2:31 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Nope not a problem. Like I said, there's no problem with the code, so it's either with the form used or the mail is getting lost en-route.
Can the OP confirm if it has been fixed or not?
Can the OP confirm if it has been fixed or not?
Message 9 of 9
(568 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Php script on f9 web space