RE: Matching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>How do I determine the value of tx from this string?
>
>
>page/words_from_the_well_checkout/?tx=8UM53005HH344951T&st=Completed&amt=0.01
>
>My desired answer is: 8UM53005HH344951T
>
>I am trying to capture the serial number which follows tx= and ends
>immediately before the &

>Ron

I'm sure Eric gave you the answer you needed if your parsing the string
in a page.

However,  if your pulling this as a URL redirect you can use the GET
global variable "tx"...

IE:
$tx = $_GET['tx'];
echo $tx;
//8UM53005HH344951T (printed to browser)

HTH  :)
David




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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux