We help IT Professionals succeed at work.

Getting form to work in Include page

1,130 Views
Last Modified: 2013-12-24
I am using FP2000 and my site uses includes. I can set up a form in the include but it isn't sending letters.

I have a standard Contact.htm page and it works fine.

What am I missing?
Comment
Watch Question

Top Expert 2004
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Hey Sean.....nice to hear from you again.

My include is "within" the body tags of all the pages and there is no script happening outside of the body tag on the include page.

Here is the include page html:

<body><TABLE bgColor=#000000 border=0 cellSpacing=0 width=124>
        <TBODY>
        <TR>
          <TD vAlign=top width=124><TABLE border=0 cellPadding=2 cellSpacing=0 width=124>
              <TBODY>
              <TR>
                <TD class="dark" bgColor=#000000 width=124>
                <p align="center">Links</TD>
              </TR>
              <TR>
                <TD class="smaller" bgColor=#EFECEC valign="top">-
                <a href="http://www.symantec.com/smallbiz/index.html">Symantec
                AV</a><br>
                  <br>
                  -
                <a href="http://www.zonelabs.com/store/content/catalog/products/sku_list_za.jsp?lid=pdb_za1">
                ZoneAlarm</a><br>
                  <br>
                  - <a href="http://www.lavasoftusa.com">Ad-aware</a><a href="http://www.thetemplatestore.com/affiliate.asp" target="_blank"> </a><br>
                  <br>
                  - <a href="http://download.com.com/3000-2092-10251557.html">
                RoboForm</a><br>
                  <br>
                  -
                <a href="http://download.com.com/3000-2086-5067117.html?tag=lst-0-2">
                MemTurbo</a><br>
                  &nbsp;</TD>
              </TR>
              <TR>
                <TD class="dark" bgColor=#000000 width=124>
                <p align="center">News</TD>
              </TR>
              <TR>
                <TD class="smaller" bgColor=#EFECEC valign="top">
                <p style="margin-bottom: 0" align="center"><b>Learn Excel or
                Word.</b>..</p>
                <p style="margin-top: 0; margin-bottom: 5" align="center"><a href="../Online_Training.htm">click here.</a></p>
                <p style="margin-top: 0; margin-bottom: 0" align="center">
                <b><font color="#990033">Become MCSE certified...</font></b></p>
                <p style="margin-top: 0; margin-bottom: 5" align="center">
                <a href="../Online_Training.htm">click
                here.</a></p>
                <p style="margin-top: 0; margin-bottom: 0" align="center"><b>
                <font color="#0066FF">Try free online courses..</font></b><p style="margin-top: 0; margin-bottom: 0" align="center"><a href="../Online_Training.htm">click
                here.</a></TD>
              </TR>
              <TR>
                <TD class="dark" bgColor=#000000 width=124>
                <p align="center">Free Tips</TD>
              </TR>
              <TR>
                <TD class="smaller" bgColor=#EFECEC valign="top">
                <p align="center">Sign up here to receive tips, tricks,
                downloads and other neat info.<form method="POST" name="Send me tips tricks and neat stuff" action="--WEBBOT-SELF--">
                  <!--webbot bot="SaveResults" U-File="../_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE" S-Email-Address="me@me.com" B-Email-Label-Fields="TRUE" S-Date-Format="%A %B %d, %Y" S-Time-Format="%I:%M:%S %p %Z" S-Builtin-Fields="REMOTE_NAME REMOTE_USER HTTP_USER_AGENT Date Time" --><p align="center">
                  <input type="text" name="T1" size="20" id="fp1"><label for="fp1">
                  Enter e-mail address</label></p>
                  <p align="center">
                  <input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
                </form>
                <p align="center">&nbsp;<p align="center">&nbsp;<p align="center">&nbsp;</TD>
              </TR>
              </TBODY>
            </TABLE></TD>
        </TR>
        </TBODY>
      </TABLE></body>
</html>
Top Expert 2004

Commented:
Looks fine - what does the "browser generated html of the form" look like once it's in the container page?

Author

Commented:
Here is the source html from a container page. Of course there is scripting happening on these pages before the body tag

<p align="center">Sign up here to receive tips, tricks,
                downloads and other neat info.<form method="POST" name="Send me tips tricks and neat stuff" action="index.asp" webbot-action="--WEBBOT-SELF--" onSubmit="">
                  <input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><p align="center">
                  <input type="text" name="T1" size="20" id="fp1"><label for="fp1">
                  Enter e-mail address</label></p>
                  <p align="center">
                  <input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
                </form>
Top Expert 2004

Commented:
<form method="POST" name="Send me tips tricks and neat stuff" action="index.asp" webbot-action="--WEBBOT-SELF--" onSubmit="">

Two action tags there - the webbot submit action and the asp page one... the asp action has to go if you want to use FP's email generation.

Author

Commented:
I have no idea where this is coming from to get rid of it???
Top Expert 2004

Commented:
...because you can't use the FP email form and asp pages at the same time...
Top Expert 2004

Commented:
>>I have no idea where this is coming from to get rid of it???

It's not an asp page?

Author

Commented:
Nope....all html
Top Expert 2004

Commented:
Is this part of the site I was in the other day?

Author

Commented:
I don't care if you visit it or not....

www.pcofficepro.com

Author

Commented:
Sean: Here is what the e-mail looks like when I get it back from the ISP

From: frontpageform@tartlogic.com
Sent: Monday, February 09, 2004 12:27 PM
To: Me
Subject: Data posted to form 1 of http://www.p@p.com/Contact.htm

*******************************************************************************
Name:            test contact
Email:           ssasasas
Phone:          
Newsletters:     ON
SpecialOffers:   ON
B1:              Submit
Remote Name:    
Remote User:    
HTTP User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; H010818)
Date:            2/9/2004
Time:            9:26:43 AM

MEMO:
Top Expert 2004

Commented:
Sorry - hope I didn't say something wrong...

I see this as the form tag in the browser:
<form method="POST" name="Send me tips tricks and neat stuff" action="_vti_bin/shtml.dll/Contact.htm" webbot-action="--WEBBOT-SELF--" onSubmit="">
                  <input TYPE="hidden" NAME="VTI-GROUP" VALUE="1"><p align="center">
                  <input type="text" name="T1" size="20" id="fp1"><label for="fp1">
                  Enter e-mail address</label></p>
                  <p align="center">
                  <input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
                </form>

I don't see the index.asp, but also don't see any of the original form components...

<!--webbot bot="SaveResults" U-File="../_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE" S-Email-Address="me@me.com" B-Email-Label-Fields="TRUE" S-Date-Format="%A %B %d, %Y" S-Time-Format="%I:%M:%S %p %Z" S-Builtin-Fields="REMOTE_NAME REMOTE_USER HTTP_USER_AGENT Date Time" -->

Author

Commented:
Sean...I stand corrected. Works on all pages except index. Some reason it is looking at this like it is index.asp?
Top Expert 2004

Commented:
>>Here is what the e-mail looks like when I get it back from the ISP

Confused :-(
So you are getting the emails? Or is that from when it's not included...
Top Expert 2004

Commented:
Cross-posting - hold on and let me look through again...
Top Expert 2004

Commented:
Well index is an asp page...
Top Expert 2004

Commented:
So there's no way that form will work...
Top Expert 2004

Commented:
Just to confirm - when you have that form on an email page, it will automaticallyt change the action to the name of the page - thus removing the FP webbot action that generates the email - so that's why it's not working :-(
Top Expert 2004

Commented:
>>Just to confirm - when you have that form on an email page

What I meant to say was:

Just to confirm - when you have that form on an "asp" page

Author

Commented:
>>Sorry - hope I didn't say something wrong...
Sean-No way...I just taking you to the source  :-)~

Here is what I found. All other pages work fine. Index page doesn't work. I am publishing to ISP as "index.html". I have no clue why index.asp works or why I am being redirected to index.asp.
Top Expert 2004

Commented:
>>I am publishing to ISP as "index.html".
That is bizzare. Let me look at the site again.
Top Expert 2004

Commented:
Site's not responding - I'll check back in a bit...
Top Expert 2004

Commented:
hmmm - maybe you better send the login stuff again so I can open in FP...

Author

Commented:
Sean...index page must be ".html" and not ".htm"?

Author

Commented:
By George.....I got it!

Been wanting to do that.

Here was the problem: I was working locally and saving/moving to local web folder and publishing to ISP. I didn't bother to think that I needed to go to ISP web folder and move/delete from there as well. Somewhere along the way I had made an index.asp page and it was still there.

Also for some reason my local navigation structure was showing another page as the home page. Cut/paste and I tok care of that as well.

It really is alot better organized than the other site I had you look at. Anyways...all is working now.

I love this site. I love the people that take the time to respond and their patience.

That was directed at you!

Top Expert 2004

Commented:
Thanks - my pleasure once again :-) Very glad you're back on track.
Someone please help me with my form submission.  I keep getting webbots.
Please view and tell me why I get the webbot message...

<body>

<form method="POST" action="--WEBBOT-SELF--">
  <!--webbot bot="SaveResults" S-Email-Format="HTML/BR"
  S-Email-Address="divasunlimited@knology.net" B-Email-Label-Fields="TRUE"
  S-Builtin-Fields -->
  <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>

</body>

Author

Commented:
divasunlimited....

probably best to post this as a separate question as this question has been answered and points awarded.

Here is what my source looks like for the form and it looks like your properties that you set are not set properly. Right click on your form and make sure they are set right.

<!--webbot BOT="GeneratedScript" endspan --><form method="POST" action="_vti_bin/shtml.dll/Contact.htm" name="FrontPage_Form1" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" webbot-action="--WEBBOT-SELF--">
                        <!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE" S-Email-Address="divasunlimited@knology.net" B-Email-Label-Fields="TRUE" S-Date-Format="%A %B %d, %Y" S-Time-Format="%I:%M:%S %p %Z" S-Builtin-Fields="REMOTE_NAME REMOTE_USER HTTP_USER_AGENT Date Time"  startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan --><p align="center">
                        Please fill out the form below:</p>
                        <p>
                        <input type="text" name="Name" size="38" id="fp1" maxlength="25" tabindex="1">&nbsp;
                        Name (required)</p>
                        <p align="left">
                        <!--webbot bot="Validation" s-display-name="E-mail address" b-value-required="TRUE" i-minimum-length="3" i-maximum-length="35" --><input type="text" name="Email" size="38" id="fp2" maxlength="35" tabindex="2"><label for="fp2">&nbsp;
                        E-Mail</label> (required)</p>
                        <p align="left">
                        <input type="text" name="Phone" size="38" id="fp3" tabindex="3"><label for="fp3">&nbsp;
                        Phone #</label> (optional)</p>
                        <fieldset style="padding: 2">
                        <legend>Group box</legend>
                        <input type="checkbox" name="Newsletters" value="ON" checked tabindex="4">
                        <font face="Verdana">Would you like to receive
                        newsletters in the future?</font><p>
                        <input type="checkbox" name="SpecialOffers" value="ON" checked tabindex="5">
                        Would you like to be informed if we have special offers?</p>
                        </fieldset><p align="center">Comments, Feedback, Request
                        Below:</p>
                        <p align="center">
                        <textarea rows="14" name="MEMO" cols="57"></textarea> </p>
                        <p align="center">
                        <input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
                      </form>


Hopefully this helps
Top Expert 2004

Commented:
Thanks FUROG - I've requested they post a new Q for this...
Thanks,
Sean
Hello, thanks for replying.

#1.  Do I paste the information into my form?

#2.  I should reword the question and resubmit?

Thanks,
Ann
Top Expert 2004

Commented:
Hi Ann - Just create a new question in the FrontPage area using your original comment, and we'll go from there.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.