473,386 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Simple I think

I have a form that after being filled out has its contents written to a
database and then goes to confirmation .asp page. I want the confirmation
page to be personalized but I am not sure how to pass the "name" parameter
to the confirmation.asp page. I know I am going to kick myself whrn I see
this.

Thanks, Houston
Jul 20 '05 #1
7 1538
"Houston" <ho*****@hbip.com> wrote in message
news:wc******************@newssvr22.news.prodigy.c om...
I have a form that after being filled out has its contents written to a
database and then goes to confirmation .asp page. I want the confirmation
page to be personalized but I am not sure how to pass the "name" parameter
to the confirmation.asp page. I know I am going to kick myself whrn I see
this.


Well, you can pass any parameter to an asp page:
http://www.yourwebsite.com/webpage.a...ter_name=value
And in asp page itself you read it as
Request["parameter_name"]

Is that you were looking for?

Andrey aka MuZZy
Jul 20 '05 #2

"Muzzy" <le*******@yahoo.com> wrote in message
news:6NwZc.355003$%_6.328092@attbi_s01...
"Houston" <ho*****@hbip.com> wrote in message
news:wc******************@newssvr22.news.prodigy.c om...
I have a form that after being filled out has its contents written to a
database and then goes to confirmation .asp page. I want the confirmation page to be personalized but I am not sure how to pass the "name" parameter to the confirmation.asp page. I know I am going to kick myself whrn I see this.


Well, you can pass any parameter to an asp page:
http://www.yourwebsite.com/webpage.a...ter_name=value
And in asp page itself you read it as
Request["parameter_name"]

Is that you were looking for?

Andrey aka MuZZy

Yes that is what I am looking for but the value is not static and is a
variable taken from the form so I am a bit confused on 2 things:
1. The syntax on the Parameter
2. If I use the URL to pass I am not clicking on the URL, I am clicking on
the "Submit" button from the form.

Make sence?

Houston.
Jul 20 '05 #3
> Yes that is what I am looking for but the value is not static and is a
variable taken from the form so I am a bit confused on 2 things:
1. The syntax on the Parameter
2. If I use the URL to pass I am not clicking on the URL, I am clicking on
the "Submit" button from the form.


Do you need to call a confirmation asp page with those parameters?
I'm not sure we are on the same page...
And what is your conusion about parameters syntax?
http://<server>/yourpage.asp?parameter1=value1&parameter2=value2&. ..etc.

Anyway, there should be a function in VB like ShellExecute or something,
which calls Windows programms from VB, so you can just pass your URL to
that function and it should automatically open your default browser with
this URL.

Andrey
Jul 20 '05 #4
> Yes that is what I am looking for but the value is not static and is a
variable taken from the form so I am a bit confused on 2 things:
1. The syntax on the Parameter
2. If I use the URL to pass I am not clicking on the URL, I am clicking on the "Submit" button from the form.



Do you need to call a confirmation asp page with those parameters?
I'm not sure we are on the same page...
And what is your conusion about parameters syntax?
http://<server>/yourpage.asp?parameter1=value1&parameter2=value2&. ..etc.

Anyway, there should be a function in VB like ShellExecute or something,
which calls Windows programms from VB, so you can just pass your URL to
that function and it should automatically open your default browser with
this URL.

Andrey
Jul 20 '05 #5
Ok let me take it from the top. I dont know why I am having such a hard time
with this but I can not get anything to work. I am new at this but I thought
I already had this part understood. Ok so here goes.

I have an asp page that contains a form. The form gathers only two items,
Name and EmailAddress.
Once they hit SUBMIT a server behavior writes this info to the database and
jumps to a confirmation page. All I want to do is personalize the
confirmation page by putting in their Name. So instead of saying:
"Thanks for signing up for our Newsletter"

I can put:
"Thank you John Doe for signing up for our newsletter."

Now what do you think?

"MuZZY" <le*******@yahoo.com> wrote in message
news:iJNZc.114398$mD.68444@attbi_s02...
> Yes that is what I am looking for but the value is not static and is a
> variable taken from the form so I am a bit confused on 2 things:
> 1. The syntax on the Parameter
> 2. If I use the URL to pass I am not clicking on the URL, I am

clicking on
> the "Submit" button from the form.



Do you need to call a confirmation asp page with those parameters?
I'm not sure we are on the same page...
And what is your conusion about parameters syntax?
http://<server>/yourpage.asp?parameter1=value1&parameter2=value2&. ..etc.

Anyway, there should be a function in VB like ShellExecute or something,
which calls Windows programms from VB, so you can just pass your URL to
that function and it should automatically open your default browser with
this URL.

Andrey

Jul 20 '05 #6
Mello

<!--
Hi Houston
I would write a simple redirection function at the very top of the
form.asp (my form name - don't know yours) page thus-->

<script Language="VbScript">
<!--
myName = "<%=request("InputName")%>"
function goConfirm()
document.location.href="confirmation.asp?name=" & MyName & ""
end function
-->
</script>

<!--We will call this later after saving the data using the onLoad event
of the body tag-->

<!-- I'm creating another variable here which I will use later to see if
the form has been posted or not.-->

<%
task = request("task")
%>

<!-- now for the form-->
<html>
<head><title></title></head>
<body>
<!-- The task variable and its value are passed here-->
<form name="form1" method="post" action="form.asp?task=doit">
<table>
<tr><td>Name:</td><td><input type="text" name="InputName"
width=25></td></tr>
<tr><td colspan="2"><center><input type="submit"
value="go"></center></td></tr>
</form>
</table>
</body>
</html>
<!-- Now check if the form was posted using the task variable-->
<%
IF task ="doit" THEN
''''' POPULATE VARIABLES FROM YOUR FORM FIELDS
myName = request("InputName") ''''' etc, etc
''''' OPEN YOUR DATA CONNECTION
''''' DO YOUR DATA SAVE WITH USUAL SQL QUERIES
''''' CLOSE YOUR DATA CONNECTION
''''' THEN CALL THE REDIRECT FUNCTION THAT WE WROTE THUS...
%>
<body onLoad="goConfirm()">
<%
END IF
%>

<!-- You will be able to capture the name value using the simple line
myName = request("name") just as you did before
Hope this helps -->

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #7
Houston wrote:
Ok let me take it from the top. I dont know why I am having such a hard time
with this but I can not get anything to work. I am new at this but I thought
I already had this part understood. Ok so here goes.

I have an asp page that contains a form. The form gathers only two items,
Name and EmailAddress.
Once they hit SUBMIT a server behavior writes this info to the database and
jumps to a confirmation page. All I want to do is personalize the
confirmation page by putting in their Name. So instead of saying:
"Thanks for signing up for our Newsletter"

I can put:
"Thank you John Doe for signing up for our newsletter."

Now what do you think?


Ok, i'm a bit confised about what exactly you can't do...
Can you tell me what is the last step you are able to perform?
DO you know how you add a record to the database in asp page?
I really want to help but i don't know where to start? from the beginning?

Andrey
Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: Brian Sabbey | last post by:
Here is a first draft of a PEP for thunks. Please let me know what you think. If there is a positive response, I will create a real PEP. I made a patch that implements thunks as described here....
3
by: Patchwork | last post by:
Hi Everyone, Please take a look at the following (simple and fun) program: //////////////////////////////////////////////////////////////////////////// ///////////// // Monster Munch, example...
13
by: Michael B Allen | last post by:
Hi, I've tried to write the *simplest* memory allocator possible. I think it would be useful in many cases such as allocating memory on stack as a poor man's garbage collection perhaps. I was...
51
by: Alan | last post by:
hi all, I want to define a constant length string, say 4 then in a function at some time, I want to set the string to a constant value, say a below is my code but it fails what is the correct...
7
by: Mark Prenter | last post by:
Hi all, I'm fairly new to .NET and I haven't done much in C++ before, nothing complex anyway, but I have a pretty good understanding of programming in general. What I'm trying to do is create a...
10
by: serge calderara | last post by:
Dear all, I need to build a web application which will contains articles (long or short) I was wondering on what is the correct way to retrive those article on web page. In orther words, when...
18
by: Sender | last post by:
Yesterday there was a very long thread on this query. (You can search on this by post by 'sender' with subject 'Simple Problem' post date Oct 7 time 1:43p) And in the end the following code was...
18
by: Bob Cummings | last post by:
Not sure if this is the correct place or not. Anyhow in school we were taught that when trying to calculate the efficiency of an algorithm to focus on something called FLOPs or Floating Point...
11
by: samuelberthelot | last post by:
Hi, I've got 3 input HTML (dropdown lists) on my page. One for selecting a Month, one for the day, one for the year. Very simple... My problem is that I'd like to update the Days one according...
17
by: Chris M. Thomasson | last post by:
I use the following technique in all of my C++ projects; here is the example code with error checking omitted for brevity: _________________________________________________________________ /*...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.