[Searching] A (good) PHP Programmer

04/18/2006 17:30 toreddo#1
I need a form in PHP With the following discription:
It needs one field where i can fill in an email address.
and one submit button when i press it it will send an email to the adress,
With my subject, FROM EMAIL, And Message <- Those three must be, stored in an array, so i dont have to do much trouble to change it.

and i also want such form but WITH an extra txtfield where i can put in the message!

THANX :cool:
And yes you will get credits if you want...
04/18/2006 17:38 Rancid-Milk-Man#2
This sounds easy I'll give it a shot :P
04/18/2006 17:39 toreddo#3
well if you can make such html mail form its good to...
Maybe use frontpage extensions.


nah i prever myself to use php...
04/18/2006 17:40 Rancid-Milk-Man#4
Quote:
Originally posted by toreddo@Apr 18 2006, 17:39
well if you can make such html mail form its good to...
I can do it just let me find my dreamweaver CD

EDIT: screw it ill do it in notepad.
04/18/2006 18:12 wAndAA#5
Quote:
Originally posted by Rancid-Milk-Man+Apr 18 2006, 17:40--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Rancid-Milk-Man @ Apr 18 2006, 17:40)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin--toreddo@Apr 18 2006, 17:39
well if you can make such html mail form its good to...
I can do it just let me find my dreamweaver CD

EDIT: screw it ill do it in notepad. [/b][/quote]
Dreamweaver ftw :D
04/18/2006 18:28 Rancid-Milk-Man#6
Blah I can't really concentrate right now I have a cold and it's throwing me off Major.

But if you google PHP mail forms or something like it should show you how to do it easly. Sorry man.

I'm more of an HTML guy myself and seeing as how I don't have server space I can't really test the forms and such.

Good luck man
04/21/2006 19:37 Doobs#7
Dude, use SMTP from your program....Or are you doing something else?
04/21/2006 21:06 toreddo#8
Quote:
Originally posted by Doobs@Apr 21 2006, 19:37
Dude, use SMTP from your program....Or are you doing something else?
SMTP Does not work....
Do you think i havent tried yet?
04/22/2006 11:49 toreddo#9
Ok i learned a good tutorial for php and now i programmed it by myself XD
if you want it here it is:
Code:
&#60;?php 
&#036;from = &#036;_GET&#91;'from'&#93;;
&#036;to = &#036;_GET&#91;'to'&#93;;
&#036;message = &#036;_GET&#91;'message'&#93;;
&#036;subject = &#036;_GET&#91;'subject'&#93;;

if &#40; isset&#40;&#036;to&#41;&#41;
{
	if&#40; !mail&#40;&#036;to, &#036;subject, &#036;message, &#036;from&#41;&#41;
 *echo &#34;LOL, the send failed!&#34;;
	else
 *echo &#34;Sended...&#34;;
}
else
{
echo &#34;&#60;form action =&#092;&#34;mail.php&#092;&#34;>&#34;;
echo &#34;From&#58; &#60;br>&#34;;
echo &#34;&#60;input type= &#092;&#34;text&#092;&#34; name=&#092;&#34;from&#092;&#34;>&#60;br>&#34;;
echo &#34;To&#58; &#60;br>&#34;;
echo &#34;&#60;input type= &#092;&#34;text&#092;&#34; name=&#092;&#34;to&#092;&#34;>&#60;br>&#34;;
echo &#34;Message&#58; &#60;br>&#34;;
echo &#34;&#60;input type= &#092;&#34;text&#092;&#34; name=&#092;&#34;message&#092;&#34;>&#60;br>&#34;;
echo &#34;Subject&#58; &#60;br>&#34;;
echo &#34;&#60;input type= &#092;&#34;text&#092;&#34; name=&#092;&#34;subject&#092;&#34;>&#60;br>&#34;;
echo &#34;&#60;input type=&#092;&#34;submit&#092;&#34; value=&#092;&#34;Send it&#092;&#34;>&#60;/form>&#34;;
}
?>
Name it mail.php