Sending value to another page...

Sending value to another page...

am 29.11.2007 19:25:18 von pvanbuskirk

------_=_NextPart_001_01C832B5.31796A63
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I am trying to send an order number from a confirmation page to another
form and insert it into the order number field on the new form. Can
anyone tell me what I am doing wrong??!!

=20

Here's the portion of my code that has the link (it passes
http://www2.otc.fsu.edu/Forms/TEST/cellreg.php?'OrderNumber' =3DTEST222808=
)
:

=20


=20

if(isset($_POST['Cellular_Service'])) {

=20

echo ("

cellpadding=3D'0'
cellspacing=3D'0' bordercolor=3D'#990000' bgcolor=3D'#FFFFCC'>







In order to complete your
cellular phone request, you are REQUIRED to REGISTER the cell phone(s)
with the FSU employees through their FSUID. Please go to the href=3D\"http://www2.otc.fsu.edu/Forms/TEST/cellreg.php?'Ord erNumber'=3D"=
..$o
rder['Order_Number']."\">Cell Phone Registration Form to complete
your order. Thank you!

");

}

?>

=20

Here's the page it goes to (it puts nothing in the Order Number field):

=20





Cell Phone Registration







































=20









valign=3D"top">

height=3D"75">



Cell Phone Information

value=3D"" size=3D"15" /> value=3D""
size=3D"20" />
value=3D"" size=3D"25" /> name=3D"PhoneNumber"
value=3D"" size=3D"15" />
Order # FSUID User Name Phone #
 

type=3D"submit" name=3D"new_record" value=3D"Add Line" />  

value=3D"Clear" />


=20






------_=_NextPart_001_01C832B5.31796A63--

Re: Sending value to another page...

am 29.11.2007 19:37:50 von Jason Gerfen

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

VanBuskirk, Patricia wrote:
> I am trying to send an order number from a confirmation page to another
> form and insert it into the order number field on the new form. Can
> anyone tell me what I am doing wrong??!!
>
>
>
> Here's the portion of my code that has the link (it passes
> http://www2.otc.fsu.edu/Forms/TEST/cellreg.php?'OrderNumber' =TEST222808)
> :
>
It should be
http://www2.otc.fsu.edu/Forms/TEST/cellreg.php?OrderNumber=T EST222808

Notice the missing single quotes? If you encapsulate a global $_GET var
php will not look at anything between '' it will skip that and search
for an &varname=value or ?varname=value string. Then $_GET['varname']
will contain something.

>
>
> >
>
>
> if(isset($_POST['Cellular_Service'])) {
>
>
>
> echo ("

> cellspacing='0' bordercolor='#990000' bgcolor='#FFFFCC'>
>
>
>
>
>
>
>
>
In order to complete your
> cellular phone request, you are REQUIRED to REGISTER the cell phone(s)
> with the FSU employees through their FSUID. Please go to the > href=\"http://www2.otc.fsu.edu/Forms/TEST/cellreg.php?'Order Number'=".$o
> rder['Order_Number']."\">Cell Phone Registration Form to complete
> your order. Thank you!

");
>
> }
>
> ?>
>
>
>
> Here's the page it goes to (it puts nothing in the Order Number field):
>
>
>
>
>
>
>
> Cell Phone Registration
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> valign="top">


>
>

Cell Phone Information

> value="" size="15" /> > size="20" /> > value="" size="25" /> > value="" size="15" />
Order # FSUIDUser NamePhone #
 
>
> > type="submit" name="new_record" value="Add Line" />  
>
> > value="Clear" />

>
>
>
>
>
>
>
>


- --
Jason Gerfen

"I practice my religion
while stepping on your
toes..."
~The Ditty Bops
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTwb+5vk8bwKVAaIRAs6cAJ9fy+tyXH74q2mlwmm5o6Pn1HEBjQCd HMOs
Sxf5BdnaJOAmun2XG2LEbW8=
=w5lq
-----END PGP SIGNATURE-----

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Sending value to another page...

am 29.11.2007 19:39:53 von Dee Ayy

I was going to guess:
echo ($_GET['OrderNumber']);

But I don't use that form. I use
echo $_GET['OrderNumber'];

But now I need to check out that quoted URL ... ?'OrderNumber'=TEST222808
as well.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Sending value to another page...

am 29.11.2007 19:43:43 von pvanbuskirk

Thanks Jason!

I took them out, and it comes through as "
http://www2.otc.fsu.edu/Forms/TEST/cellreg.php?OrderNumber=3 DTEST223008"
now, but still nothing shows up in the field for order number on the
receiving page (cellreg.php). Did I echo that properly? Do I need to
turn sessions on?

Trish

-----Original Message-----
From: Jason Gerfen [mailto:jason.gerfen@scl.utah.edu]=20
Sent: Thursday, November 29, 2007 1:38 PM
Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] Sending value to another page...

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

VanBuskirk, Patricia wrote:
> I am trying to send an order number from a confirmation page to
another
> form and insert it into the order number field on the new form. Can
> anyone tell me what I am doing wrong??!!
>=20
> =20
>=20
> Here's the portion of my code that has the link (it passes
>
http://www2.otc.fsu.edu/Forms/TEST/cellreg.php?'OrderNumber' =3DTEST222808=
)
> :
>=20
It should be
http://www2.otc.fsu.edu/Forms/TEST/cellreg.php?OrderNumber=3 DTEST222808

Notice the missing single quotes? If you encapsulate a global $_GET var
php will not look at anything between '' it will skip that and search
for an &varname=3Dvalue or ?varname=3Dvalue string. Then =
$_GET['varname']
will contain something.

> =20
>=20
> >=20
> =20
>=20
> if(isset($_POST['Cellular_Service'])) {
>=20
> =20
>=20
> echo ("

cellpadding=3D'0'
> cellspacing=3D'0' bordercolor=3D'#990000' bgcolor=3D'#FFFFCC'>
>=20
>
>=20
>
>=20
>
>=20
>
In order to complete your
> cellular phone request, you are REQUIRED to REGISTER the cell phone(s)
> with the FSU employees through their FSUID. Please go to the >
href=3D\"http://www2.otc.fsu.edu/Forms/TEST/cellreg.php?'Ord erNumber'=3D"=
..$o
> rder['Order_Number']."\">Cell Phone Registration Form to complete
> your order. Thank you!

");
>=20
> }
>=20
> ?>
>=20
> =20
>=20
> Here's the page it goes to (it puts nothing in the Order Number
field):
>=20
> =20
>=20
>
>=20
>
>=20
> Cell Phone Registration
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
> =20
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
> valign=3D"top">

height=3D"75">


>=20
>

Cell Phone Information

name=3D"OrderNumber"
> value=3D"" size=3D"15" />
value=3D""
> size=3D"20" />
name=3D"UserName"
> value=3D"" size=3D"25" />
name=3D"PhoneNumber"
> value=3D"" size=3D"15" />
Order # FSUIDUser NamePhone #
 
>=20
> > type=3D"submit" name=3D"new_record" value=3D"Add Line" />  
>=20
> > value=3D"Clear" />

>=20
> =20
>=20
>
>=20
>
>=20
>=20


- --
Jason Gerfen

"I practice my religion
while stepping on your
toes..."
~The Ditty Bops
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTwb+5vk8bwKVAaIRAs6cAJ9fy+tyXH74q2mlwmm5o6Pn1HEBjQCd HMOs
Sxf5BdnaJOAmun2XG2LEbW8=3D
=3Dw5lq
-----END PGP SIGNATURE-----

--=20
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Sending value to another page...

am 29.11.2007 19:44:06 von pvanbuskirk

Nevermind my last post ... I figured it out!! I needed to add $_GET to
the variable and it plopped it right in!

Thanks again!


-----Original Message-----
From: Jason Gerfen [mailto:jason.gerfen@scl.utah.edu]=20
Sent: Thursday, November 29, 2007 1:38 PM
Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] Sending value to another page...

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

VanBuskirk, Patricia wrote:
> I am trying to send an order number from a confirmation page to
another
> form and insert it into the order number field on the new form. Can
> anyone tell me what I am doing wrong??!!
>=20
> =20
>=20
> Here's the portion of my code that has the link (it passes
>
http://www2.otc.fsu.edu/Forms/TEST/cellreg.php?'OrderNumber' =3DTEST222808=
)
> :
>=20
It should be
http://www2.otc.fsu.edu/Forms/TEST/cellreg.php?OrderNumber=3 DTEST222808

Notice the missing single quotes? If you encapsulate a global $_GET var
php will not look at anything between '' it will skip that and search
for an &varname=3Dvalue or ?varname=3Dvalue string. Then =
$_GET['varname']
will contain something.

> =20
>=20
> >=20
> =20
>=20
> if(isset($_POST['Cellular_Service'])) {
>=20
> =20
>=20
> echo ("

cellpadding=3D'0'
> cellspacing=3D'0' bordercolor=3D'#990000' bgcolor=3D'#FFFFCC'>
>=20
>
>=20
>
>=20
>
>=20
>
In order to complete your
> cellular phone request, you are REQUIRED to REGISTER the cell phone(s)
> with the FSU employees through their FSUID. Please go to the >
href=3D\"http://www2.otc.fsu.edu/Forms/TEST/cellreg.php?'Ord erNumber'=3D"=
..$o
> rder['Order_Number']."\">Cell Phone Registration Form to complete
> your order. Thank you!

");
>=20
> }
>=20
> ?>
>=20
> =20
>=20
> Here's the page it goes to (it puts nothing in the Order Number
field):
>=20
> =20
>=20
>
>=20
>
>=20
> Cell Phone Registration
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
>=20
> =20
>=20
>
>=20
>
>=20
>
>=20
>
>=20
>
> valign=3D"top">

height=3D"75">


>=20
>

Cell Phone Information

name=3D"OrderNumber"
> value=3D"" size=3D"15" />
value=3D""
> size=3D"20" />
name=3D"UserName"
> value=3D"" size=3D"25" />
name=3D"PhoneNumber"
> value=3D"" size=3D"15" />
Order # FSUIDUser NamePhone #
 
>=20
> > type=3D"submit" name=3D"new_record" value=3D"Add Line" />  
>=20
> > value=3D"Clear" />

>=20
> =20
>=20
>
>=20
>
>=20
>=20


- --
Jason Gerfen

"I practice my religion
while stepping on your
toes..."
~The Ditty Bops
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHTwb+5vk8bwKVAaIRAs6cAJ9fy+tyXH74q2mlwmm5o6Pn1HEBjQCd HMOs
Sxf5BdnaJOAmun2XG2LEbW8=3D
=3Dw5lq
-----END PGP SIGNATURE-----

--=20
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Sending value to another page...

am 29.11.2007 19:47:48 von Dee Ayy

I just tested ?'OrderNumber'=TEST222808
and it works with and without quotes.

The problem is you have
echo (['OrderNumber'])
when you need
echo $_GET['OrderNumber'];
or possibly
echo ($_GET['OrderNumber']);

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Sending value to another page...

am 29.11.2007 20:17:06 von pvanbuskirk

Thanks all for your support!!

-----Original Message-----
From: Dee Ayy [mailto:dee.ayy@gmail.com]=20
Sent: Thursday, November 29, 2007 1:48 PM
To: php-db@lists.php.net
Subject: Re: [PHP-DB] Sending value to another page...

I just tested ?'OrderNumber'=3DTEST222808
and it works with and without quotes.

The problem is you have
echo (['OrderNumber'])
when you need
echo $_GET['OrderNumber'];
or possibly
echo ($_GET['OrderNumber']);

--=20
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php