Link to home
Start Free TrialLog in
Avatar of FUROG
FUROG

asked on

Getting form to work in Include page

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?
ASKER CERTIFIED SOLUTION
Avatar of seanpowell
seanpowell
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of FUROG
FUROG

ASKER

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>
Looks fine - what does the "browser generated html of the form" look like once it's in the container page?
Avatar of FUROG

ASKER

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>
<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.
Avatar of FUROG

ASKER

I have no idea where this is coming from to get rid of it???
...because you can't use the FP email form and asp pages at the same time...
>>I have no idea where this is coming from to get rid of it???

It's not an asp page?
Avatar of FUROG

ASKER

Nope....all html
Is this part of the site I was in the other day?
Avatar of FUROG

ASKER

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

www.pcofficepro.com
Avatar of FUROG

ASKER

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:
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" -->
Avatar of FUROG

ASKER

Sean...I stand corrected. Works on all pages except index. Some reason it is looking at this like it is index.asp?
>>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...
Cross-posting - hold on and let me look through again...
Well index is an asp page...
So there's no way that form will work...
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 :-(
>>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
Avatar of FUROG

ASKER

>>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.
>>I am publishing to ISP as "index.html".
That is bizzare. Let me look at the site again.
Site's not responding - I'll check back in a bit...
hmmm - maybe you better send the login stuff again so I can open in FP...
Avatar of FUROG

ASKER

Sean...index page must be ".html" and not ".htm"?
Avatar of FUROG

ASKER

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!

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>
Avatar of FUROG

ASKER

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
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
Hi Ann - Just create a new question in the FrontPage area using your original comment, and we'll go from there.