Form submission error

6 views
Skip to first unread message

lvmoo...@comcast.net

unread,
Jul 13, 2006, 6:05:18 PM7/13/06
to expression-web-designer
When I push the submit button on a form I created in EWD I get an error
message -
The ISP (Bluehost) says they don't know why I got the error and I
should contact Microsoft, but I find it difficult to see how to get MS
help with EWD. Can anyone provide help with my problem, please?


Here's the error message:
Method Not Allowed
The requested method POST is not allowed for the URL /contact.htm.
--------------------------------------------------------------------------------
Apache/1.3.36 Server at www.lvm-web-design.com Port 80

And here's the form code:


<form method="post" style="height: 55px; width: 250px;">
<div style="text-align: left">
<label id="Label1">first
name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </label>
<input name="firstname" type="text" style="width: 146px" />
<label id="Label2"><br/>
last name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; </label>
<input name="lastname" type="text" style="width: 146px" />
<label id="Label3"><br/>
address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</label>
<input name="address" type="text" style="width: 146px" />
<br/>
<label id="label4">address
2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </label>
<input name="address2" type="text" style="width: 146px" />
<br/>
<label id="Label5">city, state, zip&nbsp;&nbsp;
<input name="citystatezip" type="text" style="width: 146px"/>
<br/>
<label id="Label6">E-mail address&nbsp;&nbsp;
<input name="Text2" type="text" style="width: 146px"/> <br/>
<br/>
<label id="Label7">Add to mailing list?
<input name="addmailinglist" type="checkbox"/><br />
<br/>
<label id="Label8">How did you hear about us?
<input name="How did you hear" type="text" style="width:
232px"/></label>
<label id="Label9"><br/>
<br/>
<label id="Label10">Comments</label>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<textarea name="TextArea1" rows="2" style="width:
230px"></textarea></label><br/>
<br/>
<input name="Submit1" type="submit" value="submit"/><br/>

Thank you. Linda

Ian Haynes

unread,
Jul 14, 2006, 3:48:20 AM7/14/06
to expression-...@googlegroups.com

You have no action for the form, ie there's no destination page for it, so
it's defaulting to itself and giving the error because an .htm page can't
accept the form method 'post'.

To make the form do anything you'll need a form handler script of some sort.
This could be asp, asp.net, php, cgi, javascript etc. If your host supports
FrontPage Extensions you could use the 'Form Frontpage' in EWD although
this is not the best option.

You're on an Apache server so they probably support what is called the
'Formmail' script, which is a cgi form handler. Look at what they offer and
see if this is available. If so try using this.

HTH

Ian Haynes
FrontPage MVP
www.data-insite.co.uk/frontpage

Ian Haynes

unread,
Jul 14, 2006, 3:51:58 AM7/14/06
to expression-...@googlegroups.com

PS: As you've probably seen you have some display issues with this form.
These are largely due to missing closing </label> tags in the code. Not sure
how these got missed, EWD will always closes tags. It is flagging up errors
though, by highlighting them in yellow in code view. You should address
these.

Linda V. Moorhouse

unread,
Jul 14, 2006, 8:56:51 AM7/14/06
to expression-...@googlegroups.com
Thank you!


Linda


Linda V. Moorhouse
7000 Pelican Bay Blvd., A104
Naples, FL 34108-8577

home (239) 254-9642
mobile (239) 986-3014

NEW EMAIL ADDRESS
lvmoo...@comcast.net

www.conservegrassland.org

Reply all
Reply to author
Forward
0 new messages