Jump to content

Archived

This topic is now archived and is closed to further replies.

jennsite

form won't post

Recommended Posts

"No input file specified." is what I get when I click on my send button on my forms page. It's a simple e-mail form done in Dreamweaver MX. Four fields, all labeled. I chose 'Post' on the form options. I inserted this code:

 

<input name="Submit" type="submit" class="style2" id="Submit" value="Send" onClick="POST"/>

 

for the target, I have contactform.php. The php file is as follows:

 

<?PHP

 

$name = $_POST["name"];

$company = $_POST["company"];

$email = $_POST["email"];

$message = $_POST["message"];

 

$to = "name@geary.k12.ok.us";

$msg = "$name\n\n";

$msg .= "$message\n\n";

 

mail($to, $subject, $msg, "From: Website\nReply-To: $email\n");

 

?>

 

I've done a successful variation of this with Flash and it works great. I haven't done it yet with Dreamweaver and was sort of cobbling together things form the flash way and things from a dreamweaver book. I know I've botched it royally, but don't know how. Can anybody help?

 

The page is http://www.geary.k12.ok.us/clients/contact.html

Thanks

 

Share this post


Link to post
Share on other sites

Yup, your code target did work, but I originally tried that

and tested to their contact form from my server, (using the target)

but got the same error.

 

I thought the poster may have wanted a nicer email form, so I spent 10 mins doing it.

But since there is no reply, I am taking it down...

 

oh well,

Share this post


Link to post
Share on other sites

Straight answer...I dont use Dreamweaver but edit the code of your form! It has no target file!!!!!! How is it supposed to link to your PHP file!? Either way, just edit the form so it says:

 

<input name="Submit" type="submit" class="style2" id="Submit" value="Send" action="contactform.php" method="POST">

 

Guarantee that will work. I use the same code on my website. You have to tell it what to do and which file to use!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.