Jump to content

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

 

Link to comment
https://forums.phpfreaks.com/topic/1891-form-wont-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,

Link to comment
https://forums.phpfreaks.com/topic/1891-form-wont-post/#findComment-6154
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!

Link to comment
https://forums.phpfreaks.com/topic/1891-form-wont-post/#findComment-6163
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.