Put a form inside a form

B

Brutus

I have a website in FP 2003. I used DBW to create a search form where I
have the record key set up as a clickable link. I only display a few
choices to select from. Then the results are displayed.

I would like to put all this inside of another form so that I can pass
varaibles. I would use a check box to select the record and have an EDIT
button in the second form that would take me to the edit.asp page. This way
I should be able to pass my hidden variables to the edit.asp page.

Would this work?

Dave
 
T

Thomas A. Rowe

You can not have a form inside of another form.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
D

Dave Lagergren

OK. Can I set up a conditional ACTION, possibly with a string variable as in
ACTION=(variablestring) with the variable dependent on which button was
pushed?

Something like:
<%

dim whichbutton, actionstr
actionstr=""
whichbutton=""

if whichbutton = 1 then
actionstr="results_page2.asp"
else
actionstr="/logon/repair/editor/edit.asp?Key=33"
end if

%>

I would need to set the value of whichbutton somehow. :)

Dave

<form METHOD="POST" action=<%actionstr%>
 
T

Thomas A. Rowe

Yes, but you are going to need to use JavaScript client-side to check whichbutton is press or you
can avoid using JS by posting to another ASP page that then redirect to the final page based on the
value of whichbutton.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
S

Stefan B Rusynko

Just create 2 different links in the search result
- One point to the record results and 1 pointing to the edit page
Similar to the below example except change the Delete link to the view record
http://www.asp101.com/samples/db_edit.asp

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| OK. Can I set up a conditional ACTION, possibly with a string variable as in
| ACTION=(variablestring) with the variable dependent on which button was
| pushed?
|
| Something like:
| <%
|
| dim whichbutton, actionstr
| actionstr=""
| whichbutton=""
|
| if whichbutton = 1 then
| actionstr="results_page2.asp"
| else
| actionstr="/logon/repair/editor/edit.asp?Key=33"
| end if
|
| %>
|
| I would need to set the value of whichbutton somehow. :)
|
| Dave
|
| <form METHOD="POST" action=<%actionstr%>
|
| --
| Dave Lagergren
| Manager - Data Applications
| Wireless Management, Inc
| Specializing in cellular wireless applications
|
|
| "Thomas A. Rowe" wrote:
|
| > You can not have a form inside of another form.
| >
| > --
| > ==============================================
| > Thomas A. Rowe
| > Microsoft MVP - FrontPage
| >
| > http://www.Ecom-Data.com
| > ==============================================
| >
| >
| > | > >I have a website in FP 2003. I used DBW to create a search form where I have the record key set up
| > >as a clickable link. I only display a few choices to select from. Then the results are displayed.
| > >
| > > I would like to put all this inside of another form so that I can pass varaibles. I would use a
| > > check box to select the record and have an EDIT button in the second form that would take me to
| > > the edit.asp page. This way I should be able to pass my hidden variables to the edit.asp page.
| > >
| > > Would this work?
| > >
| > > Dave
| > >
| >
| >
| >
 
Top