View previous topic :: View next topic |
Author |
Message |
harl -
Joined: 23 Jan 2006 Posts: 62
|
Posted: Sun Mar 26, 2006 7:42 pm Post subject: submit page in php |
|
|
ok, what i need to do is somehow in php gather the fields in the form on my website, and email it to my email address. I cant find any programs or any scripts so maybe you guys can help
www.officialbass.com/submit.php
thats the page where people would submit stuff, maybe that would help you anwser me
thanks for any help _________________ www.Officialbass.com
A subdivision of Official Instrument
Selling products for bassist, by bassists
Chord Finders
Scale Finders
Basics
and more to come
www.officialbass.com |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
harl -
Joined: 23 Jan 2006 Posts: 62
|
Posted: Tue Mar 28, 2006 12:55 am Post subject: |
|
|
ok, so tell me what im doing wrong
on my submit page (www.officialbass.com/submit.php) i have the form as this
Code: |
<FORM ACTION="sendmail.php" METHOD=POST>
<p>Your name:
<br>
<INPUT TYPE=TEXT NAME="name" size="47">
<p>Forum Username or Email: <br>
<INPUT TYPE=TEXT NAME="email" size="47">
<p>Url for video or Article: <br>
<textarea rows="15" name="question" cols="35"></textarea>
<p><INPUT TYPE=SUBMIT VALUE="Send">
</FORM>
|
and then in sendmail.php, the code is
Code: |
<?php
$msg = "Sender Name:\t$name\n";
$msg .= "Sender E-Mail or Username:\t$email\n";
$msg .= "Url for video or Article:\t$question\n\n";
$recipient = "harleylang@gmail.com";
$subject = "Video or Article";
$mailheaders = "From: Officialbass.com <> \n";
$mailheaders .= "Reply-To: $email\n\n";
mail($recipient, $subject, $msg, $mailheaders);
?>
|
and then in the php.ini, i edited these lines
so what am i missing, because that is all that i have done... help please!! _________________ www.Officialbass.com
A subdivision of Official Instrument
Selling products for bassist, by bassists
Chord Finders
Scale Finders
Basics
and more to come
www.officialbass.com |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Mar 28, 2006 7:44 am Post subject: |
|
|
Thats it. It should now work when you submit the form. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Mar 28, 2006 3:49 pm Post subject: |
|
|
harl,
smtp.gmail.com needs authentication which is not supported by PHP mail() function. You'll have to use your ISP SMTP server (if it does not require authentication) or install your own SMTP server. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
harl -
Joined: 23 Jan 2006 Posts: 62
|
Posted: Tue Mar 28, 2006 3:59 pm Post subject: |
|
|
ok, do you know of any smtp servers that are good? and how with the one you suggest am i to set it up? _________________ www.Officialbass.com
A subdivision of Official Instrument
Selling products for bassist, by bassists
Chord Finders
Scale Finders
Basics
and more to come
www.officialbass.com |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
|