PDA

View Full Version : Help Needed!



netweiser
09-21-2003, 07:45 PM
i need a script which allows people to send email from mysite to me. like an email form / script. where can i get 1 frm?

kazaaliteuser007
09-21-2003, 07:54 PM
try going to http://javascript.internet.com

I think most web building software has it included but again try the site above.

Somebody1234
09-21-2003, 07:56 PM
Wow! Your website this your website that... is that all you can talk about?

kazaaliteuser007
09-21-2003, 07:58 PM
Originally posted by Somebody1234@21 September 2003 - 19:56
Wow! Your website this your website that... is that all you can talk about?
<_< :lol:

netweiser
09-21-2003, 08:11 PM
well when im working on mysite at the moment, yes thats all i really need 2 know. aint got much of a brain, dont wanna overload now do i :lol:

TheMusicMan
09-21-2003, 08:11 PM
Open a new text document, paste this code into it and save as contact.php - modify the contact form to whatever it should look, change the &#036;sendto to your email address and upload the contact.php

Done

P.S: Dirty coded in 2 mins but should work fine :P



&#60;?php

&#036;sendto=&#34;[email protected]&#34;;
&#036;subject=&#34;Cool - An email for me&#34;;
&#036;font_face_email=&#34;Arial&#34;;
&#036;font_size_email=&#34;2&#34;;

if&#40;&#33;empty&#40;&#036;_POST&#91;&#34;message&#34;&#93;&#41;&#41;
{
&#036;headers = &#34;MIME-Version&#58; 1.0&#092;r&#092;n&#34;;
&#036;headers .= &#34;Content-type&#58; text/html; charset=iso-8859-1&#092;r&#092;n&#34;;
&#036;headers .= &#34;FROM&#58; &#34;.&#036;_POST&#91;&#34;email&#34;&#93;.&#34; &#092;r&#092;n&#34;;

&#036;pre.=&#34;&#60;font face=&#092;&#34;&#036;font_face_email&#092;&#34; size=&#092;&#34;&#036;font_size_email&#092;&#34; color=&#092;&#34;&#036;font_color_email&#092;&#34;&#62;&#092;n&#34;;
&#036;pre.=&#34;===========SENDER&#39;S DETAILS===========&#60;br&#62;&#092;n&#34;;

if&#40;&#036;_POST&#91;&#34;name&#34;&#93;&#33;=&#34;&#34;&#41;
{
&#036;pre.=&#34;Email from &#34;.&#036;_POST&#91;&#34;name&#34;&#93;.&#34;,&#60;br&#62;&#092;n&#34;;
}
else
{
&#036;pre.=&#34;Email from &#34;.&#036;_POST&#91;&#34;email&#34;&#93;.&#34;,&#60;br&#62;&#092;n&#34;;
}


&#036;body=ereg_replace&#40;&#34;&#91;&#092;n&#93;&#34;,&#34;&#60;br&#62;&#34;,&#036;_POST&#91;&#34;message&#34;&#93;&#41;;
&#036;body=ereg_replace&#40;&#34;&#91;&#092;&#092;&#93;&#34;,&#34;&#34;,&#036;message&#41;;

mail&#40;&#036;sendto, &#036;subject, &#036;pre.&#34;&#60;br&#62;&#092;n&#092;n&#34;.&#036;body.&#34;&#092;n&#34;, &#036;headers&#41;;
?&#62;
&#60;font face=&#34;Arial&#34; size=&#34;2&#34;&#62;&#60;BR&#62;Thank you&#60;BR&#62;
Thank you for sending me an email
&#60;?php
} else {
?&#62;
&#60;html&#62;

&#60;head&#62;
&#60;title&#62;Dirty Contact Form by Darker&#60;/title&#62;
&#60;/head&#62;

&#60;body&#62;

&#60;form method=&#34;POST&#34; action=&#34;contact.php&#34;&#62;
&#60;p&#62;Name&#58; &#60;input type=&#34;text&#34; name=&#34;name&#34; size=&#34;20&#34;&#62;&#60;/p&#62;
&#60;p&#62;Email&#58; &#60;input type=&#34;text&#34; name=&#34;email&#34; size=&#34;20&#34;&#62;&#60;/p&#62;
&#60;p&#62;Message&#60;/p&#62;
&#60;p&#62;&#60;textarea rows=&#34;2&#34; name=&#34;message&#34; cols=&#34;20&#34;&#62;&#60;/textarea&#62;&#60;/p&#62;
&#60;p&#62;&#60;input type=&#34;submit&#34; value=&#34;Submit&#34; name=&#34;Submit&#34;&#62;&#60;/p&#62;
&#60;/form&#62;

&#60;/body&#62;

&#60;/html&#62;
&#60;?php
}
?&#62;

zapjb
09-21-2003, 08:39 PM
Somebody1234
Posted: 21 September 2003 - 15:56

Wow&#33; Your website this your website that... is that all you can talk about?

:lol: :lol: :lol:

I.am
09-22-2003, 01:08 AM
Originally posted by Darker@21 September 2003 - 15:11
Open a new text document, paste this code into it and save as contact.php - modify the contact form to whatever it should look, change the &#036;sendto to your email address and upload the contact.php

Done

P.S: Dirty coded in 2 mins but should work fine :P



&#60;?php

&#036;sendto=&#34;[email protected]&#34;;
&#036;subject=&#34;Cool - An email for me&#34;;
&#036;font_face_email=&#34;Arial&#34;;
&#036;font_size_email=&#34;2&#34;;

if&#40;&#33;empty&#40;&#036;_POST&#91;&#34;message&#34;&#93;&#41;&#41;
{
&#036;headers = &#34;MIME-Version&#58; 1.0&#092;r&#092;n&#34;;
&#036;headers .= &#34;Content-type&#58; text/html; charset=iso-8859-1&#092;r&#092;n&#34;;
&#036;headers .= &#34;FROM&#58; &#34;.&#036;_POST&#91;&#34;email&#34;&#93;.&#34; &#092;r&#092;n&#34;;

&#036;pre.=&#34;&#60;font face=&#092;&#34;&#036;font_face_email&#092;&#34; size=&#092;&#34;&#036;font_size_email&#092;&#34; color=&#092;&#34;&#036;font_color_email&#092;&#34;&#62;&#092;n&#34;;
&#036;pre.=&#34;===========SENDER&#39;S DETAILS===========&#60;br&#62;&#092;n&#34;;

if&#40;&#036;_POST&#91;&#34;name&#34;&#93;&#33;=&#34;&#34;&#41;
{
&#036;pre.=&#34;Email from &#34;.&#036;_POST&#91;&#34;name&#34;&#93;.&#34;,&#60;br&#62;&#092;n&#34;;
}
else
{
&#036;pre.=&#34;Email from &#34;.&#036;_POST&#91;&#34;email&#34;&#93;.&#34;,&#60;br&#62;&#092;n&#34;;
}


&#036;body=ereg_replace&#40;&#34;&#91;&#092;n&#93;&#34;,&#34;&#60;br&#62;&#34;,&#036;_POST&#91;&#34;message&#34;&#93;&#41;;
&#036;body=ereg_replace&#40;&#34;&#91;&#092;&#092;&#93;&#34;,&#34;&#34;,&#036;message&#41;;

mail&#40;&#036;sendto, &#036;subject, &#036;pre.&#34;&#60;br&#62;&#092;n&#092;n&#34;.&#036;body.&#34;&#092;n&#34;, &#036;headers&#41;;
?&#62;
&#60;font face=&#34;Arial&#34; size=&#34;2&#34;&#62;&#60;BR&#62;Thank you&#60;BR&#62;
Thank you for sending me an email
&#60;?php
} else {
?&#62;
&#60;html&#62;

&#60;head&#62;
&#60;title&#62;Dirty Contact Form by Darker&#60;/title&#62;
&#60;/head&#62;

&#60;body&#62;

&#60;form method=&#34;POST&#34; action=&#34;contact.php&#34;&#62;
&#60;p&#62;Name&#58; &#60;input type=&#34;text&#34; name=&#34;name&#34; size=&#34;20&#34;&#62;&#60;/p&#62;
&#60;p&#62;Email&#58; &#60;input type=&#34;text&#34; name=&#34;email&#34; size=&#34;20&#34;&#62;&#60;/p&#62;
&#60;p&#62;Message&#60;/p&#62;
&#60;p&#62;&#60;textarea rows=&#34;2&#34; name=&#34;message&#34; cols=&#34;20&#34;&#62;&#60;/textarea&#62;&#60;/p&#62;
&#60;p&#62;&#60;input type=&#34;submit&#34; value=&#34;Submit&#34; name=&#34;Submit&#34;&#62;&#60;/p&#62;
&#60;/form&#62;

&#60;/body&#62;

&#60;/html&#62;
&#60;?php
}
?&#62;

Short and sweet&#33; B)