Hi, I’m new here, looks like a great forum!
Hope someone can help. I’ve been trying to create a form for my site and have been working on the following but I keep getting a parse error.
I created the form and placed it in my public folder and titled it as form.html, then I added the php script and placed that in the same public folder. Creating the php script within my public folder, I was given the following options on what I wanted to create: text document, html document, perl script, shell script. Not having an option for php I chose text. I then created the script and saved it as mailer.php
This is how I started the php script:
<?PHP
$to = “myemailplacedhere”;
$subject = “Results from your request form”;
$headers = “From: Form Mailer”;
$forward = 1;
$location = “thankyou.html”;
This is the action that I placed in my form:
<form action=”mailer.php” method=”post”>
I know my host supports php because they offer an option of having a chat forum in php Thoughts on where I went wrong?