Form using a html Fragment

T

Terry T

My server has a system wide form-mail that I have used
for 4 years. I inserted the html code in the page I
wanted and now when you fill out the form I get an error
page that says cannot find file. It is looking for script
instead of redirecting to the page I have specified. Is
publisher coding the html wrong.
Code I used which I have used for many years with no
problem. It seems to be looking for the formmail.pl but
it actually sends me the results of the mail in my email.
But does not redirect as stated in code
Any thoughts?
Page is http://www.cheapdental.com/contact.htm

Form code used
<FORM ACTION="/cgi-sys/formmail.pl" METHOD="POST">
<input type="hidden" name="recipient"
value="(e-mail address removed)">
<input type="hidden" name="subject" value="Dental Plan
Feedback">
<input type="hidden" name="required" value="request,
realname, email, phone">
<input type="hidden" name="env_report"
value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT">
<input type="hidden" name="sort" value="request,
realname, email, phone">
<input type="hidden" name="redirect"
value="http//www.cheapdental.com/thankyou.htm">
<TABLE>
<TR>
<TD></TD>
<TD><select type="text"
name="request"><option>Please Choose<option>Sign-Up Now/
Please Call<option>More
Information/ Please Call<option>Broker
Opportunity</select>
</TD>
</TR>
<TR>
<TD>Name: First/Last</TD>
<TD>
<input type="text" name="realname">
</TD>
</TR>
<TR>
<TD>Email Address:</TD>
<TD>
<input type="text" name="email">
</TD>
</TR>
<TR>
<TD>Phone: Area+Number</TD>
<TD>
<input type="text" name="phone">.
</TD>
</TR>

<TR>
<TD>
<input type="reset" value="Reset" name="Reset">
</TD>
<TD>
<input type="submit" value="Submit"
name="Submit">
</TD>
</TR>
</TABLE>
</FORM>
 
D

David Bartosik - MS MVP

you stated in your code -

="/cgi-sys/formmail.pl"

so you are telling it to run the formmail.pl script file when submitted.
of course you need to have this file on the server in the location
(/cgi-sys/) you specified otherwise you'll get a page not found error.
use of an html frag for this would be the incorrect process for Publisher.
you let Pub write the code.
go to Insert, Form, Submit button and place the submit button on the form
than right click it to set it form properties and in that dialog you specify
you want to run an ISP program and there you enter the url of such ie.
/cgi-sys/formmail.pl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top