Web Design Web Design Forum
Registration is free! Here you can view your subscribed threads, work with private messages and edit your profile and preferences Calendar Find other members Frequently Asked Questions Search
Home Web Design

Convenient web based access to our favorite web design Usenet groups

web design reviews

This is Interesting: Free Magazines for Graphics designers and webmasters  





  Last Thread  Next Thread
Author
Thread Post New Thread   

how can I have two forma tags on one page?
 

NeilPeartRocks




quote this post edit post

IP Loged report this post

Old Post  12-30-05 - 11:29 PM  
Hello all
I have to have two form tags - I have a email newsletter sign up  on the lef
t
nav - the code for it in an .inc file but the form tag needs to be  in the b
ody
of the asp page Outside the table) so other forms can work. We also have a
"course finder tool" on the page that is in the body of that page
coursefindertool.asp -  I need to have two fom tags - is this possible?

<body>
<form id="chartForm" action="courseToolTest.asp" method="POST">
<input type="hidden" name="selectedNode_ID" value="1">
<form name="ccoptin" action="http://ui.constantcontact.com/d.jsp"
target="newWin" method="post">


blah blah blah

</form>

Thanks



Post Follow-Up to this message ]
Re: how can I have two forma tags on one page?
 

darrel




quote this post edit post

IP Loged report this post

Old Post  12-30-05 - 11:29 PM  
> I need to have two fom tags - is this possible?

Yes.

-Darrel




Post Follow-Up to this message ]
Re: how can I have two forma tags on one page?
 

bmullins12




quote this post edit post

IP Loged report this post

Old Post  12-30-05 - 11:29 PM  
No...

You really shouldn't have a form inside of a form.

End your first form with </form> then start the new one.


Post Follow-Up to this message ]
Re: how can I have two forma tags on one page?
 

NeilPeartRocks




quote this post edit post

IP Loged report this post

Old Post  12-30-05 - 11:29 PM  
thanks
I am not sure where to close off each one? Which one should I pick on?

<body>
<form id="chartForm" action="courseToolTest.asp" method="POST">
<input type="hidden" name="selectedNode_ID" value="1">

<<<<<<<<<<<<<<<<<<<< here is the left nav .inc file that needs a
form>>>>>>>>>>>>>>>>>>>>>
<form name="ccoptin" action="http://ui.constantcontact.com/d.jsp"
target="newWin" method="post">
</form>
<<<<<<<<<<<<<<  pick on this one?>>>>>>>>>>>>>>>>>>>>>>>>>>>>


<a name="topofpage"></a>
<table width="770" border="0" cellspacing="0" cellpadding="0" align="center"
>

<tr>
<td colspan="5" valign="top">

<!-- #Include file="../../inc/headerChild.inc" --></td>
</tr>
<tr>
<td class="clrspacerbk"><img src="../../images/site/clrspacer.gif" width="13
9"
height="1"></td>
<td class="clrspacerbk"><img src="../../images/site/clrspacer.gif" width="1"
height="1"></td>
<td class="clrspacerbk"><img src="../../images/site/clrspacer.gif" width="60
0"
height="1"></td>
<td class="clrspacerbk"><img src="../../images/site/clrspacer.gif" width="1"
height="1"></td>
<td class="clrspacerbk"><img src="../../images/site/clrspacer.gif" width="1"
height="1"></td>
</tr>
<tr>

<td align="left" valign="top">
<!--#Include file="../../inc/leftNavChild.inc" -->


</td>
<td valign="top" class="clrspacerbk"><img src="../../images/clrspacer.gif"
width="1" height="800"></td>
<td align="left" valign="top">
<!-- InstanceBeginEditable name="mainBody" -->
<table width="600" border="0" cellspacing="0" cellpadding="6">
<tr>
<td height="212" align="left" valign="top" scope="col"><h2
id="style1">Course Finder Tool</h2>
<FONT class="body">Use our <strong>Course Finder</strong> tool to
determine which real estate course or package best meets your needs. Whether
you're located in <st1:State w:st="on">Washington</st1:State> or <st1:place
w:st="on"><st1:State w:st="on">California</st1:State></st1:place>, Rockwell 
has
the right real estate course for you. <br><br>All you have to do is make a f
ew
simple choices, and our Course Finder will take you to the course(s) you nee
d.
Click on one of the green buttons below to get started.&nbsp;</FONT>

<%
Set oXChart = Server.CreateObject("Microsoft.XMLDOM")
With oXChart
.Async = False
.Load(sXMLPath)
End With
%>
<table border=0 cellpadding=0 cellspacing=0>
<%
'Set deepest level (that's not empty)
For I = 0 To UBound(aNodeHeirarchyPath)
If aNodeHeirarchyPath(I) <> "" Then
nDeepestLevel = I
End If
Next
'correct for level 0
nDeepestLevel = nDeepestLevel + 1

'Build each branch of the tree, down to the item that was selected.
For I = 0 To UBound(aNodeHeirarchyPath)
If aNodeHeirarchyPath(I) <> "" Then
Call BuildTreeBranch (aNodeHeirarchyPath(I), I, nDeepestLevel - I)
End If
Next
%>
</table>

</td>
</tr>
<tr>
<td height="339" align="left" valign="top" class="body" scope="col">We
hope you find the Course Finder helpful. If you need further assistance in
selecting a real estate course, feel free to call us at 1-800-221-9347 or em
ail
us at <a href="mailto:info@rockwellinstitute.com"
id="nav3">info@rockwellinstitute.com</a>.</td>
</tr>
</table>

<!-- InstanceEndEditable -->



</td>
<td valign="top" class="clrspacerbk"><img src="../../images/clrspacer.gif"
width="1" height="800"></td>
</tr>
<tr>
<td class="clrspacerbk"><img src="../../images/site/clrspacer.gif" width="13
9"
height="1"></td>
<td class="clrspacerbk"><img src="../../images/site/clrspacer.gif" width="1"
height="1"></td>
<td class="clrspacerbk"><img src="../../images/site/clrspacer.gif" width="60
0"
height="1"></td>
<td class="clrspacerbk"><img src="../../images/site/clrspacer.gif" width="1"
height="1"></td>
<td class="clrspacerbk"><img src="../../images/site/clrspacer.gif" width="1"
height="1"></td>
</tr>
<tr>
<td colspan="5"><!--#Include file="../../inc/footerChild.inc" --></td>
</tr>
</table>

<p>&nbsp;</p>

</body>
<!-- InstanceEnd --></html>
<%
Set oXChart = Nothing

Sub BuildTreeBranch (ByVal sNodeID, ByVal nIndentation, ByVal nColSpan)
'Response.Write(sNodeID & ":" & nSelectionID & "<br>")
Dim oRoot, oAnswers
Dim K,L
Dim tempID
Set oRoot = oXChart.documentElement.SelectSingleNode("//Q[@ID='" & sNode
ID &
"']")
Response.Write("<tr>")
'create indentation cells
For L = 1 To nIndentation
Response.Write("<td></td>")
Next
%>
<td class="q" colspan="<%=nColSpan%>">
<%	If oRoot.GetAttribute("TEXT") = "LINK" Then
Response.Write(oRoot.SelectSingleNode("LINKBODY").Text)
Else
Response.Write(oRoot.GetAttribute("TEXT"))
End If
%>
</td></tr>
<%	If oRoot.selectNodes("Q").Length > 0 Then
Set oAnswers = oRoot.selectNodes("Q")
Response.Write("<tr>")
'create indentation cells
For L = 1 To nIndentation
Response.Write("<td></td>")
Next
%>		<td colspan="<%=nColSpan%>">
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td><img src="../../images/Tree_StepIn.gif" width="13" height="13"></td>
<%	'Loop through all answers except last one.  Last loop should not have ima
ge
after.
For K = 0 To oAnswers.Length - 2
tempID = oAnswers(K).getAttribute("ID") %>
<td><input id="<%=tempID%>" type="text" style="width: 187px"
class="bttn_sm_flow" value="<%=oAnswers(K).getAttribute("ANS")%>"
onclick="openNode('<%=tempID%>')"></td>
<td><img src="../../images/Tree_StepOv.gif" width="12" height="14"></td>
<%		Next
tempID = oAnswers(K).getAttribute("ID") %>
<td><input id="<%=tempID%>" type="text" style="width: 187px"
class="bttn_sm_flow" value="<%=oAnswers(K).getAttribute("ANS")%>"
onclick="openNode('<%=tempID%>')"></td>
</tr>
</table>
</td>
</tr>
<% 	End If
End Sub
%>




Post Follow-Up to this message ]
Re: how can I have two forma tags on one page?
 

darrel




quote this post edit post

IP Loged report this post

Old Post  12-30-05 - 11:30 PM  
> I am not sure where to close off each one? Which one should I pick on?

If you want two forms, have to forms:

<form>stuff</form>
<form>stuff</form>




Post Follow-Up to this message ]
Re: how can I have two forma tags on one page?
 

darrel




quote this post edit post

IP Loged report this post

Old Post  12-30-05 - 11:30 PM  
> If you want two forms, have to forms:

TWO forms. Oops.




Post Follow-Up to this message ]
Sponsored Links
 





All times are GMT. The time now is 10:18 PM. Post New Thread   
  Previous Last Thread   Next Thread next
Dreamweaver archive | Show Printable Version | Email this Page | Subscribe to this Thread

Popular forums

Adobe Photoshop forum Macromedia Flash Web Site Design
Dreamweaver FrontPage forum
JavaScript Forum XML forum
Style Sheets VRML
Forum Jump:
Rate This Thread:

 

XML RSS Feed web design latest articles Syndicate our forum via XML or simple JavaScript

Web Design archive  Database administration help  


Top Home  -  Register  -  Control Panel   -  Memberlist  -  Calendar  -  Faq  -  Search Top