Passing Variables in URL

D

Dallas

I have a page that has a form with fields of:

Address
City
State
ZipCode
Zoom Factor

These variables need to be sent to a page that only excepts two variables.
1 is the concantination of:

address, city, state zipcode

This is called the raw address

the second variable is the zoom factor

the second ASP page uses the raw address variable and zoom factor to
pinpoint a location on a map.

Th4e input form need to be broken down into the above input fields in hopes
of cutting down mistakes of users trying to enter a raw address.

In a nutshell I need to concantinate to form field into 1 variable called
rawaddess to send to the map.asp as well as continue to send the zoom factor
variable

Thanks for the suggestion
 
M

Mike Mueller

I would probably rescript the asp page to accept all 5
variables, and then process it. You could also use
javascript with an 'on click' event to concatenate on submit


:I have a page that has a form with fields of:
:
: Address
: City
: State
: ZipCode
: Zoom Factor
:
: These variables need to be sent to a page that only
excepts two variables.
: 1 is the concantination of:
:
: address, city, state zipcode
:
: This is called the raw address
:
: the second variable is the zoom factor
:
: the second ASP page uses the raw address variable and zoom
factor to
: pinpoint a location on a map.
:
: Th4e input form need to be broken down into the above
input fields in hopes
: of cutting down mistakes of users trying to enter a raw
address.
:
: In a nutshell I need to concantinate to form field into 1
variable called
: rawaddess to send to the map.asp as well as continue to
send the zoom factor
: variable
:
: Thanks for the suggestion
 
D

Dallas

If you could please, I'm not much of a Java programmer show me how this would
be done as I am not allowed to modify the map.asp page.

I agree that modifing the map.asp would make more sense but higher ups are
looking for another option than modify an extreme ammount of SQL code

Thanks for your help
 
M

Mike Mueller

Not nearly as difficult as they apparently think

All that needs to be done is to add a line of code:
rawaddress = request.form("address") & "," &
request.form("city") & "," & request.form("state") & "," &
request.form("state")

I added the "," in there to break it up

another option would be to create another asp page to do the
above and pass that to map.asp




: If you could please, I'm not much of a Java programmer
show me how this would
: be done as I am not allowed to modify the map.asp page.
:
: I agree that modifing the map.asp would make more sense
but higher ups are
: looking for another option than modify an extreme ammount
of SQL code
:
: Thanks for your help
:
: "Mike Mueller" wrote:
:
: > I would probably rescript the asp page to accept all 5
: > variables, and then process it. You could also use
: > javascript with an 'on click' event to concatenate on
submit
: >
: >
message
: >
: > :I have a page that has a form with fields of:
: > :
: > : Address
: > : City
: > : State
: > : ZipCode
: > : Zoom Factor
: > :
: > : These variables need to be sent to a page that only
: > excepts two variables.
: > : 1 is the concantination of:
: > :
: > : address, city, state zipcode
: > :
: > : This is called the raw address
: > :
: > : the second variable is the zoom factor
: > :
: > : the second ASP page uses the raw address variable and
zoom
: > factor to
: > : pinpoint a location on a map.
: > :
: > : Th4e input form need to be broken down into the above
: > input fields in hopes
: > : of cutting down mistakes of users trying to enter a
raw
: > address.
: > :
: > : In a nutshell I need to concantinate to form field
into 1
: > variable called
: > : rawaddess to send to the map.asp as well as continue
to
: > send the zoom factor
: > : variable
: > :
: > : Thanks for the suggestion
: >
: >
: >
 
D

Dallas

Mike if I add this line to the map.asp page to test it on my own is there any
other lines that may be needed and when adding this line will it effect the
ability to pass a raw address if needed.

Thanks alot
 
D

Dallas

Mike I added the lines in context that you offered. ended up writing it as:
= Request.QueryString("address") + ", " + Request.Querystring("city") + ", "
+ Request.Querystring("st") + " " + Request.Querystring("zipcode")

Works then goes into a loop, see

http://demo.ecountywatch.com/canaddrsearch.htm

Thanks for more suggestions
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top