jennsite Posted July 6, 2004 Share Posted July 6, 2004 "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 Quote Link to comment https://forums.phpfreaks.com/topic/1891-form-wont-post/ Share on other sites More sharing options...
72dpi® Posted July 6, 2004 Share Posted July 6, 2004 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, Quote Link to comment https://forums.phpfreaks.com/topic/1891-form-wont-post/#findComment-6154 Share on other sites More sharing options...
colin2003 Posted July 8, 2004 Share Posted July 8, 2004 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! Quote Link to comment https://forums.phpfreaks.com/topic/1891-form-wont-post/#findComment-6163 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.