/    Sign up×
Community /Pin to ProfileBookmark

Please help with this Frontpage form!!!

Ok I am obviously not a whiz at html and definitely not frontpage. But I had the comments field working before on submit….and now it isn’t working. I just don’t know enough about html to figure it out. Also, on the “state” field, it uses dynamic text boxes, and I can’t figure out how to submit them (this is the big thing)! Please help! Here is the code, you should be able to just paste this into Frontpage:

[code=html]<HTML>
<HEAD>
<meta HTTP-EQUIV=”Content-Type” CONTENT=”text/html; charset=windows-1252″>
<meta http-equiv=”Content-Language” content=”en-us”>
<TITLE>New Page 1</TITLE>
</HEAD>
<BODY>
<H1>New Page 1</H1>
<HR>
<P>
This is an explanation of the purpose of the form …</P>
<FORM METHOD=”POST” ACTION=”–WEBBOT-SELF–“>
<!–webbot bot=”SaveResults” S-Email-Format=”TEXT/PRE” S-Email-Address=”[email protected]” B-Email-Label-Fields=”TRUE” B-Email-Subject-From-Field=”TRUE” S-Email-Subject=”LCCA Legal Nurse Certification Program” S-Builtin-Fields U-Confirmation-Url=”http://www.ecdteam.com/elprojects/LCCA Certified Legal Nurse/confirmation.html” –>
<P>
Please provide the following contact information:</P>
<BLOCKQUOTE>
<TABLE width=”413″>
<TR>
<TD ALIGN=”right”>
<p align=”left”>
<EM style=”font-style: normal; font-weight: 700″>First Name:</EM></TD>
<TD width=”311″>
&nbsp;&nbsp;&nbsp;&nbsp;<!–webbot bot=”Validation” s-display-name=”FirstName” s-data-type=”String” b-allow-letters=”TRUE” –><INPUT NAME=”Contact_FirstName” SIZE=40 tabindex=”1″>
</TD>
</TR>
<TR>
<TD ALIGN=”right”>
<p align=”left”>
<b>
<EM style=”font-style: normal”>Last Name:</EM></b></TD>
<TD width=”311″>
&nbsp;&nbsp;&nbsp;&nbsp;<!–webbot bot=”Validation” s-display-name=”LastName” s-data-type=”String” b-allow-letters=”TRUE” –><INPUT NAME=”Contact_LastName” SIZE=40 tabindex=”2″>
</TD>
</TR>
<TR>
<TD ALIGN=”right”>
<p align=”left”>
<EM style=”font-style: normal; font-weight: 700″>Middle Initial</EM><EM><span style=”font-style: normal; font-weight: 700″>
</span></EM>
<span style=”font-style: normal”>(optional):</TD>
</span>
<TD width=”311″>
&nbsp;&nbsp;&nbsp;&nbsp;<INPUT NAME=”Contact_MiddleInitial” SIZE=4 MAXLENGTH=4 tabindex=”3″></TD>
</TR>
</TABLE>
<TABLE id=”table1″ width=”413″>
<TR>
<TD ALIGN=”right” width=”63″>
<p align=”left”>
<b><em style=”font-style: normal”>Location:</em></b></TD>
<TD>
<font size=”2″ face=”Arial”>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</font>&nbsp;</TD>
</TR>
</TABLE>
<TABLE id=”table3″ width=”414″>
<TR>
<TD ALIGN=”right” width=”104″>
<p align=”left”>
<b><EM style=”font-style: normal”>Phone Number:</EM></b></TD>
<TD>
&nbsp;<INPUT NAME=”Contact_Phone” SIZE=15 MAXLENGTH=25 tabindex=”5″>
</TD>
</TR>
</TABLE>
<TABLE id=”table4″ width=”416″>
<TR>
<TD ALIGN=”right” width=”108″>
<p align=”left”>
<EM style=”font-style: normal; font-weight: 700″>E-mail </EM>
<EM style=”font-style: normal”>(optional):</EM></TD>
<TD>
<INPUT NAME=”Contact_Email” SIZE=25 tabindex=”6″>&nbsp;
</TD>
</TR>
</TABLE>
<TABLE id=”table5″ width=”235″>
<TR>
<TD ALIGN=”right”>
<p align=”left”>
<b><em style=”font-style: normal”>State:</em></b></TD>
<TD width=”118″>
<form name=”f1″>
<!–webbot bot=”Validation” s-display-name=”State” b-value-required=”TRUE” –><select onchange=”addMore(this)” name=”Contact_State” size=”1″ tabindex=”7″>
<option value=”0″ selected>(please select:)</option>
<option value=”1″>One
<option value=”2″>Two
<option value=”3″>Three
<option value=”4″>Four
<option value=”5″>Five
</select>
<script type=”text/javascript”>
function addMore(sel) {
var numAsked = sel.options[sel.selectedIndex].value * 1; // because it is a string and I want a number
// wipe out the ones that are there
theDiv = document.getElementById(“d1”);
theDiv.innerHTML = “”;
// build boxes
for (var i=1; i<=numAsked; i++) {
tb = document.createElement(“INPUT”);
tb.type = “text”;
tb.name = “State” + i;
theDiv.appendChild(tb);
}
}
</script>
<body onload=”addBoxes()” bgcolor=”#FFFFFF”>
<div id=”d1″>
</div>
</body>
</TABLE>
</BLOCKQUOTE>
<P>
<b>Comments</b> (optional):</P>
<BLOCKQUOTE>
<P>
<TEXTAREA NAME=”Comments” ROWS=5 COLS=35 tabindex=”8″></TEXTAREA>
</P>
</BLOCKQUOTE>
<p>
<INPUT TYPE=submit VALUE=”Submit Form” tabindex=”9″>&nbsp; </p>
</FORM>
<HR>
</BODY>
</HTML[/code]

>

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@CaptainChefauthorJul 17.2006 — Ok I figured it out....I foolishly left some tags in that didn't belong. But I still have a question. If you see the code above, i am using a drop-down box to dyamically call text boxes (depending on the number 1 brings up 1 text box, 2 does 2 etc.). This is all within the Frontpage Form, but for some reason when I submit the form the text field Info doesn't show up to my e-mail. The number in the drop-down box shows up fine, but the actual text from the fields that were created doesn't show up. Any ideas? Thanks!
Copy linkTweet thisAlerts:
@wasim___drushtiJul 18.2006 — Ok I figured it out....I foolishly left some tags in that didn't belong. But I still have a question. If you see the code above, i am using a drop-down box to dyamically call text boxes (depending on the number 1 brings up 1 text box, 2 does 2 etc.). This is all within the Frontpage Form, but for some reason when I submit the form the text field Info doesn't show up to my e-mail. The number in the drop-down box shows up fine, but the actual text from the fields that were created doesn't show up. Any ideas? Thanks![/QUOTE]
You are creating some form elements right?. YOu are not naming those elements. If you name them you may retrieve the data within those elements.

Ex; form1.textvox1.value

Can you show me the code. And please be descriptive enough.
Copy linkTweet thisAlerts:
@CaptainChefauthorJul 18.2006 — Well basically the code I have doesn't want to play nice with Frontpage forms (which I depise BTW). Unforunately I am on a deadline and I had to replace the javascript with a simple text area for them to type the states into. The entire code is above, but here is the section I had for using dynamic fields, etc.

This is at the top
[code=html]<body onload="addBoxes()" bgcolor="#FFFFFF">[/code]
And this is the other part that goes with it.

[code=html]<TABLE id="table5" width="235">
<TR>
<TD ALIGN="right">
<p align="left">
<b><em style="font-style: normal">State:</em></b></TD>
<TD width="118">
<!--webbot bot="Validation" s-display-name="State" b-value-required="TRUE" --><select onchange="addMore(this)" name="Contact_State" size="1" tabindex="7">
<option value="0" selected>(please select:)</option>
<option value="1">One
<option value="2">Two
<option value="3">Three
<option value="4">Four
<option value="5">Five
</select>
<script type="text/javascript">
function addMore(sel) {
var numAsked = sel.options[sel.selectedIndex].value * 1; // because it is a string and I want a number
// wipe out the ones that are there
theDiv = document.getElementById("d1");
theDiv.innerHTML = "";
// build boxes
for (var i=1; i<=numAsked; i++) {
tb = document.createElement("INPUT");
tb.type = "text";
tb.name = "State" + i;
theDiv.appendChild(tb);
}
}
</script>

<div id="d1">
</div>[/code]


Anyway, I had changed it around a bit and gotten it to work the way i wanted (if they select 2 from the drop-down box, two text boxes appear, 3 does 3, etc.). But like i said earlier it isn't being reported on the submit form. I have a temp. solution for now so no hurry. Thanks!
×

Success!

Help @CaptainChef spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...