Hey guys,
I am LOST. I know nothing about php - enough about html to understand the basic point. Anyway, I have a form on my website that I can't get to work because Godaddy requires that it "points" to their gdform.php file that they provide. I have no idea how to make it do that. They describe how to do it with HTML:
To Use the PHP Form-Mailer
1. Create your Web form as normal and assign unique names to your form items.
NOTE: Keep in mind that our form-mailer script will sort the names of your form items alphabetically when it composes the email message. This is the order of precedence: uppercase letters, lowercase letters, numbers.
2. For the form action line, enter gdform.php. For example:
<form action="gdform.php" method="post">
3. Set the form method to "post."
4. In addtion to the fields you create in your form, there are three special fields that you can use: subject, redirect, and email.
Subject. Controls the subject line in the form email.
Redirect. Controls the page that your visitors will see after they submit the form.
Email. Controls the return address for the form email.
For example:
<form action="gdform.php" method="post">
<input type="hidden" name="subject" value="Form Submission" />
<input type="hidden" name="redirect" value="thankyou.html" />
<p>First Name:<input type="text" name="FirstName" /></p>
<p>Last Name:<input type="text" name="LastName" /></p>
<p>E-Mail:<input type="text" name="email" /></p>
<p>Comments:<textarea name="comments" cols="40" rows="10">
Type comments here.</textarea></p>
<input type="submit" name="submit" value="submit"/>
</form>
5. Save and upload your file to your hosting account.
BUT - my file is php .. and I didn't make it. My web guy doesn't know how to do it either.
This is what my php file looks like:
<p> </p>
<?
$to = "bethany@bethanygilbert.com";
$subject = "$email\n\n";
$msg = "$name\n\n";
$msg .= "$message\n\n";
$msg .= "$tele\n\n";
mail($to, $subject, $msg, "From: BethanyGilbertPhotography\nReply-To: $email\n");
?>
Any help is much much much much much appreciated. I'm about to pull my hair out at this point and Godaddy is next to useless.
Thanks!
Bethany