18 Replies - 2087 Views - Last Post: 04 October 2001 - 05:11 PM
#1
MAD740
Posted 17 August 2001 - 11:18 AM
this is my first post on DIC. I just wanted to get some feedback on my beta site im working on. I have a little emailer form on the right side of the site. I put a simple mailto: in the action tag, and it doesnt seem to be working very well. Actually, it seems to work on my mac, but not on my PC. If anyone has any cgi code or some nice Java so I can get this sent thru the mail straight to me, or even some good reference sites, it would really help. Thanks guys, heres the link:
<url>http://mad740.com/newsite</url>
Replies To: MAD740
#2
Re: MAD740
Posted 17 August 2001 - 01:45 PM
#3
Re: MAD740
Posted 17 August 2001 - 01:57 PM
:(
ill figure something out
#5
Re: MAD740
Posted 17 August 2001 - 02:03 PM
#6
Re: MAD740
Posted 17 August 2001 - 02:08 PM
stanker@mad740.com
#7
Re: MAD740
Posted 17 August 2001 - 02:10 PM
#8
Re: MAD740
Posted 17 August 2001 - 05:14 PM
#9
Re: MAD740
Posted 17 August 2001 - 07:44 PM
:) please :)
stanker@mad740.com
#11
Re: MAD740
Posted 23 August 2001 - 03:17 PM
#12
Re: MAD740
Posted 24 August 2001 - 07:32 PM
you'll find what you need there.
#13
Re: MAD740
Posted 24 August 2001 - 11:05 PM
here we go -- special thanks to Jason Warner (Paradox) for the base coding..although I changed it up a decent amount too :)
<?
if(!isset($submit)){
?>
<center>Please fill out <b>all</b> of the fields in the form below.</center>
<form action="<? echo $PHP_SELF ?>" method="post">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="right">
To:
</td>
<td>
<select name="who">
<option>---
<option>Pastor Art Suggs
<option>Church Office (Secretary)
<option>Mark Elliot (WebMaster)
</select>
</td>
</tr>
<tr><td width="200" align="right">Your Name: </td><td><input name="from"></td></tr>
<tr><td align="right">Your Email: </td><td><input name="useremail"></td></tr>
<tr><td align="right">Subject: </td><td><input name="subject"></td></tr>
<tr><td align="right">Message: </td><td><textarea name="message" rows="8" cols="30"></textarea></td></tr>
<tr><td colspan="2" align="center"><input type="submit" name="submit" value="Send"> <input type="reset" name="reset" value="Clear"></td></tr>
</table>
</form> <?
}else{
if($who == "Pastor Art Suggs"){
$email = "asuggs@exotrope.net";
}else if($who == "Church Office (Secretary)"){
$email = "unionpres@exotrope.net";
}else if($who == "Mark Elliot (WebMaster)"){
$email = "mark@markelliot.f2s.com";
}else{
die("<center>You did not select who to send a message to.<br>Please press your browser's back button and select someone.</center>.");
}
if(!$from or !$subject or !$message){
die("<center>You have fields that have not been filled in.<br>Please make sure that <b>all</b> the fields are filled in correctly.</center>");
}
///// set up email here
$printmessage = "From: $from ($useremail)
To: $who ($email)
Subject: $subject
Message:
$message";
$send = @mail($email, "Email from UPC Website: $subject", $printmessage, "From: $from
Reply-To: $useremail");
$content = " ";
if($send){
$content = "<center>Thanks <b>$from</b>, your message has been sent.</center>";
}else{
$content = "<center>There was an error in sending your message.<br>Please press your browser's back button and try again.</center>";
}
}
if (!isset($content)){
$content = null;
}
echo $content;
?>
Hack it as you need too -- it was for a church site i did, which is why some of the things may seem wierd.
#14
Re: MAD740
Posted 25 August 2001 - 02:12 PM
woah... thanks man, ill try it todat!!
:)
#15
Re: MAD740
Posted 25 August 2001 - 03:46 PM
i put the don'tfukwithmymunkee wallpaper on my desktop.
|
|

New Topic/Question
Reply



MultiQuote






|