Forums
This topic is locked
Using POST for a details page
31 Aug 2001 18:38:31 Sam aaa posted:
Hi,I need to set up a details page from a repeated region (in a table) on my search results page. I can't use GET, as some of the data passed will be private and isn't allowed to get tacked onto URLs. POST also fits in more conveniently with the rest of the project.
When I add a form into the table (directly around the tr that's wrapped with a repeat region), Ultradev stops allowing me to modify its properties in design view. It looks something like:
<pre id=code><font face=courier size=2 id=code>
..blah..
<% while ((Repeat1__numRows-- != 0) && (!Results.EOF)) { %>
<tr>
<form name="form1" method="post" action="details.asp">
<td width="10%">
.. some more <td>s etc
<div align="left">
<input type="submit" name="Details" value="Details">
</div>
</td>
</form>
</tr>
<%
Repeat1__index++;
Results.MoveNext();
}
%>
</table>
</font id=code></pre id=code>
Are forms not supposed to be put inside tables like this? If it's OK to do it, will I encounter problems with having lots of forms on the same page with the same name?
I'd rather find out sooner instead of later if it's a Bad Thing to put forms in repeat regions, so I'd really appreciate any help.
SEoD
Replies
Replied 01 Sep 2001 13:18:47
01 Sep 2001 13:18:47 Sam aaa replied:
Sorry about that question - it seems silly now that I've fixed the problem. It seems I'm fine having tons of forms generated, so long as I bind a primary key to the form name to prevent any names clashing. (I guess an incrementing counter would've done it too, but I'm too lazy to put one in by hand)
I still can't madify the form's properties in Design View. I'm putting this down to a hole in Ultradev's functionality now, so "Macromedia - you know what I want in v5...".
Also, a quick note to the forum moderators - when I previewed my first post (above) with the preview button, it came out looking all screwed up due to my HTML code, despite the fact that it's inside "code" tags. The actual post seems to have come out fine though. Weird.
I still can't madify the form's properties in Design View. I'm putting this down to a hole in Ultradev's functionality now, so "Macromedia - you know what I want in v5...".
Also, a quick note to the forum moderators - when I previewed my first post (above) with the preview button, it came out looking all screwed up due to my HTML code, despite the fact that it's inside "code" tags. The actual post seems to have come out fine though. Weird.