Forums

This topic is locked

It's late, i'm tired and i can't think!...help!

Posted 18 Sep 2001 16:38:16
1
has voted
18 Sep 2001 16:38:16 Dee Hon posted:
Hi all,

<img src=../images/dmxzone/forum/icon_smile_question.gif border=0 align=middle> How do i create an update/insert page, without updating a database!

In other words, i want to put some info on one page (as if filling in a form), then another person can view that info on a different page.
Is this possible???
Hope someone can help!

Thanks
Dee <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Replies

Replied 19 Sep 2001 13:57:41
19 Sep 2001 13:57:41 Paul Rossiter replied:
A couple of options I can see

The first is to set the value of the form field to a session variable

session("Var1" = cstr(request("formfieldname")

Then display the session variable on the next page

or set the send properties of the form to 'GET' and pick up the value on the next page from the URL parameter

Replied 19 Sep 2001 15:55:09
19 Sep 2001 15:55:09 Dee Hon replied:
Thanx for your reply Paulo....but, being a newbie, how do i <BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
The first is to set the value of the form field to a session variable

session("Var1" = cstr(request("formfieldname")

Then display the session variable on the next page
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Or how do i <BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>pick up the value on the next page from the URL parameter<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Thanx
Dee <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 19 Sep 2001 17:04:45
19 Sep 2001 17:04:45 Paul Rossiter replied:
The first thing you need to decide is whether the information you are passing from the from is going to be used on more than one occassion whilst the user is browsing your site.

If the information is just being passed from one page to another then do the following.

in the form properties box that you have on your page change the 'Method' property to 'GET' and enter the URL you want to go to when the user clicks the Submit button in the 'Action' box. This will cause the form field values to be passed to the next page (make a note of each of the field names for future use).

In the page that displays the values from the form, use the data bindings panel and add a Request Variable, a box will be displayed that has a drop down list with different options - select Request.Querystring and enter the name of the field from the form on the previous page. Do this for each field name. Once you have added all the names they will appear in the data bindings panel and you can drag and drop these into the document where you want them to appear.

Replied 19 Sep 2001 17:44:06
19 Sep 2001 17:44:06 Dee Hon replied:
Thanx - I didn't think it was possible, considering Ultradev works with databases.

<img src=../images/dmxzone/forum/icon_smile_question.gif border=0 align=middle> How would i pass several information, using one form, and displaying all the information on one page?

Thanx again
Dee <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 27 Sep 2001 11:58:31
27 Sep 2001 11:58:31 Paul Rossiter replied:
Using the same principle previously explained the value of each text box is passed to the next page in the url string. To see this look at the url for this udzone page in the address line of your browser.

You will see that the url is prefixed with a question mark (?) followed by the querystring values i.e 'method=Reply'&'TOPIC_ID=10613' etc.

Multiple fields on a form are passed in the same way so if you had three fields called FIRSTNAME, MIDDLENAME and LASTNAME and you were passing these to a page called 'DisplayName.asp' the url would look like this:
displayname.asp?FIRSTNAME=Paulo&MIDDLENAME=Jose&LASTNAME=Rossi

Simply pick these values up by creating Request.Querystring values for FIRSTNAME, MIDDLENAME and LASTNAME or however many fields you want to display

Hope this helps<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>



Reply to this topic