|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Submitting form to a preview window?
Hi there,
here's the problem: I have a form with 2 text boxes, both of which add to a database and make up a dynamic page, i.e. page title & page text. I want however, before the user can add the page, for the page to be previewed in a popup window. So effectively there'd be a button which when clicked would open up the new window, load the preview.asp page I have already built, and display the contents of what was typed into the text boxes. So basically I need to pass the variables through to this preview.asp page - anybody know how I can do this? Cheers, E ![]() |
|
#2
|
|||
|
|||
|
I beleive that it is something like this.
Code:
'gathers the two filled in text boxes
field1 = Request.form ("field1")
field2 = Request.form ("field2")
Put this at the bottom of the preview.asp page. Obviously replace the addto.asp with your page, and the field names with your input text names. Code:
<form method="post" action="addto.asp"> <input type="hidden" name="field1" Value="<%=field1%>"> <input type="hidden" name="field2" Value="<%=field2%>"> <input type="submit" value="add to database"> </form Last edited by gintom : September 24th, 2003 at 10:44 AM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Submitting form to a preview window? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|