bloke
05-01-2003, 05:28 AM
Hi, quick question (hopefully)
Can I put form fields into an iframe source file when the form tags are in the parent file?
ie:
<form name="sectionupdate" method="post" action="sectionupdate.asp" onSubmit="return validate()">
<tr>
<td class="newheader">Project Link<br>
<textarea cols="78" rows="4" name="project" class="newbody"><%If request("addupdate") <> "add" and blnreload = 1 Then%><%=replace(rscontent("projectdetails"), "^", "'")%><%End If%></textarea>
</td>
</tr>
<tr>
<td class="newheader">Project<br>
<IFRAME SRC="adminprojectdetails.asp?id=<%=bitcontid%>" TITLE="project" width="98%" frameborder=0 align=top background="images/mainbg.gif" height=300 scrolling=yes marginwidth=0 marginheight=0 class="newbody">
</IFRAME>
</td>
</tr>
<tr>
<td class="newheader">Add/Update?<br>
Add <input type="radio" name="addupdate" value="add" class="newbody"<%If request("addupdate") = "add" Then%> checked<%End If%>>
Update <input type="radio" name="addupdate" value="update" class="newbody"<%if blnreload = 1 Then%>checked<%End If%>>
</td>
</tr>
<tr>
<td>
<%If bitcontid <> 0 Then%>
<input type="hidden" name="contid" value="<%=bitcontid%>">
<%End If%>
<input type="submit" name="go" value="Enter">
</td>
</tr>
</form>
.....the iframe file, adminprojectdetails.asp, contains additional <textarea> fields which I want to be submitted with form 'sectionupdate'.
Hope this makes sense!
Cheers
bloke
blokeinthekitchen.com
Can I put form fields into an iframe source file when the form tags are in the parent file?
ie:
<form name="sectionupdate" method="post" action="sectionupdate.asp" onSubmit="return validate()">
<tr>
<td class="newheader">Project Link<br>
<textarea cols="78" rows="4" name="project" class="newbody"><%If request("addupdate") <> "add" and blnreload = 1 Then%><%=replace(rscontent("projectdetails"), "^", "'")%><%End If%></textarea>
</td>
</tr>
<tr>
<td class="newheader">Project<br>
<IFRAME SRC="adminprojectdetails.asp?id=<%=bitcontid%>" TITLE="project" width="98%" frameborder=0 align=top background="images/mainbg.gif" height=300 scrolling=yes marginwidth=0 marginheight=0 class="newbody">
</IFRAME>
</td>
</tr>
<tr>
<td class="newheader">Add/Update?<br>
Add <input type="radio" name="addupdate" value="add" class="newbody"<%If request("addupdate") = "add" Then%> checked<%End If%>>
Update <input type="radio" name="addupdate" value="update" class="newbody"<%if blnreload = 1 Then%>checked<%End If%>>
</td>
</tr>
<tr>
<td>
<%If bitcontid <> 0 Then%>
<input type="hidden" name="contid" value="<%=bitcontid%>">
<%End If%>
<input type="submit" name="go" value="Enter">
</td>
</tr>
</form>
.....the iframe file, adminprojectdetails.asp, contains additional <textarea> fields which I want to be submitted with form 'sectionupdate'.
Hope this makes sense!
Cheers
bloke
blokeinthekitchen.com