Pass multiple variables - form to form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

This may be "very" simple - unless I don't know?. Sorry for the basic
question.

<a target="_blank" href="http://www.some site.co.uk.asp?A=String 1 &
B=String 2">

What I am looking for - have been for a while - is the seperator.
If you are passing 2 varibles from form 1 to form 2
A=String 1 & B=String 2
The "&" does not work. What do you put between the varibles to tell FP that
this next bit of info is to go into another box.

Many thanks
 
&

<a target="_blank"
href="http://www.somesite.co.uk.asp?A=String1&B=String2">
There are no spaces.

To be 100% compliant, this should be
<a target="_blank"
href="http://www.somesite.co.uk.asp?A=String1&amp;B=String2">

To include spaces, use
<a target="_blank"
href="http://www.somesite.co.uk.asp?A=String 1&amp;B=String 2">
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp

FrontPage Support: http://www.frontpagemvps.com/
 
Sorry about this but not getting it.

<a target="_blank"
href="http://www.ukopforms.co.uk/char_application.asp?p=The Name Goes
Herer%201&ChaI=28%202">

ChaI is the ID number I need to pass (to a box called ChaI)

What I am getting in both boxes is

"The Name Goes Here 1" (without the quotes)
Not sure why the number 1 is appearing



--
Wayne
Manchester, England.



Ronx said:
&

<a target="_blank"
href="http://www.somesite.co.uk.asp?A=String1&B=String2">
There are no spaces.

To be 100% compliant, this should be
<a target="_blank"
href="http://www.somesite.co.uk.asp?A=String1&B=String2">

To include spaces, use
<a target="_blank"
href="http://www.somesite.co.uk.asp?A=String 1&B=String 2">
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp

FrontPage Support: http://www.frontpagemvps.com/
 
The page is
http://www.takeupthechallenge.com/abc/
If you click the Make a booking tab you will see what I mean.

I have to use this as there are 150+ charities and only one form. The ChaI
(charity reference) is passed to an access DB to make the booking (for that
specific charity)

--
Wayne
Manchester, England.



Ronx said:
&

<a target="_blank"
href="http://www.somesite.co.uk.asp?A=String1&B=String2">
There are no spaces.

To be 100% compliant, this should be
<a target="_blank"
href="http://www.somesite.co.uk.asp?A=String1&B=String2">

To include spaces, use
<a target="_blank"
href="http://www.somesite.co.uk.asp?A=String 1&B=String 2">
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp

FrontPage Support: http://www.frontpagemvps.com/
 
It the charity has an ID, then all you need to pass to the form is the ID, then do a lookup in the
database to get the name of the charity, this way you only passing a single query value

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

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


Wayne-I-M said:
The page is
http://www.takeupthechallenge.com/abc/
If you click the Make a booking tab you will see what I mean.

I have to use this as there are 150+ charities and only one form. The ChaI
(charity reference) is passed to an access DB to make the booking (for that
specific charity)
 
The form on http://www.takeupthechallenge.com/abc/ is guaranteed to
fail.
You have wrapped the submit button in a mailto: link. Either the form
will submit or the mailto will open an email client, or the user will
get an error - most likely the latter.

<a href="mailto:[email protected]"><font face="Verdana<font
size="2">
</font></font> </a>

Should be
<input type="SUBMIT" value="Send to UK Outdoor Pusuits Co">
Delete the rest.

The email will be sent by the FrontPage extensions that process this
form (assuming the email transport is set up in the extensions).


For your specific question, the reason you are getting the 1 in the
field is because it is in the querystring.
http://www.ukopforms.co.uk/char_application.asp?p=The Name Goes
Herer%201&ChaI=28%202
The querystring is everything after the ?
p=The Name Goes Herer%201&ChaI=28%202
Translating and splitting onto 3 lines :
p=The Name Goes Herer 1
&
ChaI=28 2
So the box p will get "The Name Goes Herer 1" and ChaI will get "28 2"
(without the quotes).

I would have to see the actual code for the page to determine why both
boxes get the first value, but suspect you are using the same variable
somewhere for both. Using the link in your post, the page works
correctly - p goes into 2 places on the page (title and right box, ChaI
goes into left box.

The actual link would probably be
<a target="_blank"
href="http://www.ukopforms.co.uk/char_application.asp?p=The Name Goes
Here&ChaI=28">

(Not sure if the space2 is relevant in the Charity ID, but assume it is
not.)
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp

FrontPage Support: http://www.frontpagemvps.com/




The page is
http://www.takeupthechallenge.com/abc/
If you click the Make a booking tab you will see what I mean.

I have to use this as there are 150+ charities and only one form. The ChaI
(charity reference) is passed to an access DB to make the booking (for that
specific charity)
 
Hi Ronx

Thanks for the input. The mailto button is meant to open the outlook to
"send to a friend" it seems to work OK but I will check it. Thanks for that.
The summit button at the base is meant to send us a message by email - I will
check out that as well.

The answer to the question (why is it not working) was given by you and
Thomas a while ago to someone else. I just read your answer and now all the
pages work fine- I should have put .....
<%=Request.QueryString("A")%>
<%=Request.QueryString("B")%>
<%=Request.QueryString("C")%>
etc, as the default for the text boxes.

All the pages now seem to work with the variable passed to the DB.
http://www.takeupthechallenge.com/abc
http://www.takeupthechallenge.com/ucf
http://www.takeupthechallenge.com/nfa
http://www.takeupthechallenge.com/nos
http://www.takeupthechallenge.com/pth
etc
etc
there are 163 of them.

Many thanks for your time (and the answer you and Thomas gave to the other
poster).
 
I need the name and the ID both (I think). The name is so a user will know
they are on the right form and the ID is what use to pass to the DB.

On the import to the main hard drive DB the name is not passed (just the
concencated charity iD /event ID) nor are some of the other details - but if
I just asked people to select an event ID it "would" go wrong. I know this
as 90% of people still send in postal apps and even they are sometimes messed
up - If the question is 1st name and 2nd name you and I would simply put in
our names but ...... well lets just say some people didn't pay attention in
english classes at school LoL


Thank you again for your input - I will learn FP one day :-)
 
Back
Top