Hi everyone I am a new girl here, i recently bought a pretty and fantastic template to showcae my Paintings and Art and to promote my Frame Shop. The Site is a Dynamic Flash Photo Gallery done almost entirely in Flash. I am able to customize it through a .htm file by editing preset text and replacing preset images with my own. It also contains an admin panel for uploading images to my gallery which is VERY nifty.
But BEFORE i do any more of that.
I need help getting a Contact Form to work correctly and to send to an email address. Please...
The Contact Form is made up of TWO files(which are made to specifically work and fit in my Template, so i guess i cant exchange the code with new code,i must edit what is already there to make it work):
contact.asp
contact.php
The thing is,I CANT just find a Contact/Email Tutorial and copy it because the Contact/Email Form is already preset into my Template. I guess i must change some code in the two files that make it WORK.
But i do not know how to go from there.... I know absolutely nothing about HTML or PHP or SMTP or anything to get a Form to send emails. Please help me....
Here is my site:
http://jamneajacas.x10hosting.com
I have not modified anything in my X10 hosting, i have ADD-FREE. And ONLY Upgraded PHP to Intermediate (to fix WYSIWYG fatal errors).
Here is the code that is inside each of the files:
CONTACT.ASP=
CONTACT.PHP=
I already tried entering my email into the "your email here" and "your_email" sections with no success... I apologize i am a complete newbie when it comes to Web Site Code.
What Server/Hosting side Optoins and .php and .asp code do I have to change to get this form to work? Can a girl get some help Please?
But BEFORE i do any more of that.
I need help getting a Contact Form to work correctly and to send to an email address. Please...
The Contact Form is made up of TWO files(which are made to specifically work and fit in my Template, so i guess i cant exchange the code with new code,i must edit what is already there to make it work):
contact.asp
contact.php
The thing is,I CANT just find a Contact/Email Tutorial and copy it because the Contact/Email Form is already preset into my Template. I guess i must change some code in the two files that make it WORK.
But i do not know how to go from there.... I know absolutely nothing about HTML or PHP or SMTP or anything to get a Form to send emails. Please help me....
Here is my site:
http://jamneajacas.x10hosting.com
I have not modified anything in my X10 hosting, i have ADD-FREE. And ONLY Upgraded PHP to Intermediate (to fix WYSIWYG fatal errors).
Here is the code that is inside each of the files:
CONTACT.ASP=
Code:
<%
for i=1 to 7
message=Request("message")
next
message=message + Request("message")
smtpServer = "enter your SMTP SERVER HERE"
smtpPort = 25
name = Request("Your_Name:")
Set myMail = CreateObject("CDO.Message")
myMail.Subject = "from " & name
myMail.From = Request("Your_Email:")
myMail.To = Request("recipient")
myMail.HTMLBody = "<html><head><title>Contact letter</title></head><body><br>" & message & "</body></html>"
myMail.Configuration.Fields.Item("[URL]http://schemas.microsoft.com/cdo/configuration/sendusing[/URL]") = 2
myMail.Configuration.Fields.Item("[URL]http://schemas.microsoft.com/cdo/configuration/smtpserver[/URL]") = smtpServer
myMail.Configuration.Fields.Item("[URL]http://schemas.microsoft.com/cdo/configuration/smtpserverport[/URL]") = smtpPort
myMail.Configuration.Fields.Update
myMail.Send
%>
Code:
<?
Error_Reporting(E_ALL & ~E_NOTICE);
while ($request = current($_REQUEST)) {
if (key($_REQUEST)!='recipient') {
$pre_array=split ("&777&", $request);
$post_vars[key($_REQUEST)][0]=$pre_array[0];
$post_vars[key($_REQUEST)][1]=$pre_array[1];
}
next($_REQUEST);
}
reset($post_vars);
$subject="From ".$post_vars['your_name'][0] ;
$headers= "From: ".$post_vars['your_email'][0] ."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
$message='';
while ($mess = current($post_vars)) {
if ((key($post_vars)!="i") && (key($post_vars)!="your email here") && (key($post_vars)!="your name here")) {
$message.="<strong>".$mess[1]."</strong> ".$mess[0]."<br>";
}
next($post_vars);
}
mail($_REQUEST['recipient'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$message."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");
?>
<script>
resizeTo(300, 300);
</script>
What Server/Hosting side Optoins and .php and .asp code do I have to change to get this form to work? Can a girl get some help Please?
Last edited: