It is currently Mon Nov 19, 2018 3:14 pm


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: PHP Mail Form?
PostPosted: Fri Mar 10, 2006 8:58 pm 
Noobie
Noobie

Joined: Fri Mar 10, 2006 8:56 pm
Posts: 9
can someone show me a good php mail form tutorial? that works with 100webhosting? im not to sure how to install it!! someone help :)

thanks :?


Top
 Profile  
 
 Post subject: oh and kirupa mail form
PostPosted: Fri Mar 10, 2006 9:02 pm 
Noobie
Noobie

Joined: Fri Mar 10, 2006 8:56 pm
Posts: 9
oh i have tired kirupa mail form and no luck, has anyone else managed to get this to work for them? im not a free user by the way, i am paying customer.

http://www.kirupa.com/web/form_mailer.htm

??


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 10, 2006 9:08 pm 
Site Admin
Site Admin

Joined: Fri Feb 11, 2005 7:43 am
Posts: 1818
Location: 100WebSpace's Headquarters
If you are on the Free plan or the Free hosting without banners plan, you won't be able to send emails. You need a Personal package at least.

_________________
Read the F.A.Q. before asking a question!


Top
 Profile  
 
 Post subject: im a personal package holder
PostPosted: Fri Mar 10, 2006 9:12 pm 
Noobie
Noobie

Joined: Fri Mar 10, 2006 8:56 pm
Posts: 9
im on:

Personal package 300 MB Disk Space, 10,000 MB Traffic, 1 Domain Hosted


Top
 Profile  
 
 Post subject: so...hmm
PostPosted: Fri Mar 10, 2006 9:21 pm 
Noobie
Noobie

Joined: Fri Mar 10, 2006 8:56 pm
Posts: 9
so everything that begins with a $ must change to

$msg = $_POST['msg']
$to? would that be $_POST['to'] ?
$subject?
$headers?
$forward?
$location?



<?PHP
$to = "email";
$subject = "Results from your Request Info form";
$headers = "From: Form Mailer";
$forward = 0;
$location = "0";

$date = date ("l, F jS, Y");
$time = date ("h:i A");



$msg = "Below is the result of your feedback form. It was submitted on $date at $time.\n\n";

if ($_SERVER['REQUEST_METHOD'] == "POST") {
foreach ($_POST as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
}
else {
foreach ($_GET as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
}

mail($to, $subject, $msg, $headers);
if ($forward == 1) {
header ("Location:$location");
}
else {
echo "Thank you for submitting our form.";
}

?>


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 10, 2006 9:29 pm 
Noobie
Noobie

Joined: Fri Mar 10, 2006 8:56 pm
Posts: 9
hmm im to new to this, could you by any chance change the it for me? you seem to know allot more then me here :D .. or just show me one or two?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 10, 2006 9:40 pm 
Posts like crazy!
Posts like crazy!

Joined: Mon Sep 26, 2005 5:03 pm
Posts: 204
Location: The Netherlands
The code is right... but you should change the line:
Code:
$to = "email";

Within the quotes should be the receiving email address.
And change
Code:
$headers = "From: Form Mailer";

to your account email address.. but leave the "Form: " part..

But if you're on a free hosting package then you can't send emails :/


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 10, 2006 9:42 pm 
Noobie
Noobie

Joined: Fri Mar 10, 2006 8:56 pm
Posts: 9
im on:

Personal package 300 MB Disk Space, 10,000 MB Traffic, 1 Domain Hosted


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 10, 2006 9:43 pm 
Posts like crazy!
Posts like crazy!

Joined: Mon Sep 26, 2005 5:03 pm
Posts: 204
Location: The Netherlands
Sorry skipped that part :<

Then the script should work if you make the adjustments..


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 10, 2006 9:45 pm 
Noobie
Noobie

Joined: Fri Mar 10, 2006 8:56 pm
Posts: 9
i changed those lines before, but no luck at all still not getting anything :S

Code:
$to = "blah@blah.com";


but the

Code:
$headers = "From: Form Mailer";


should be? :S


Code:
$headers = "From: blah@blah.com";
?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 10, 2006 9:45 pm 
Site Admin
Site Admin

Joined: Fri Feb 11, 2005 7:43 am
Posts: 1818
Location: 100WebSpace's Headquarters
Also make sure to set the FROM or TO (depending on the purpose of your script) address to an email account hosted here. Otherwise it won't work.

_________________
Read the F.A.Q. before asking a question!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 10, 2006 9:47 pm 
Posts like crazy!
Posts like crazy!

Joined: Mon Sep 26, 2005 5:03 pm
Posts: 204
Location: The Netherlands
Yes.. but with valid emails of course =p
and 1 of the 2 has to be your email account from your hosting package.. or so Oliver tells us


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 10, 2006 9:48 pm 
Noobie
Noobie

Joined: Fri Mar 10, 2006 8:56 pm
Posts: 9
yeh its going to a email i set up with 100webhosting, and the email would be TO, as its going TO me


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 10, 2006 9:53 pm 
Noobie
Noobie

Joined: Fri Mar 10, 2006 8:56 pm
Posts: 9
its all working now :) love you all for helping especially oliver


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 10, 2006 10:25 pm 
Site Admin
Site Admin

Joined: Fri Feb 11, 2005 7:43 am
Posts: 1818
Location: 100WebSpace's Headquarters
You are most welcome.

_________________
Read the F.A.Q. before asking a question!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ]  Moderators: fhmagic, KJ, Moderators, Support Team

All times are UTC


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 post attachments in this forum

Search for:
Jump to:  
cron
100WebSpace © 2011