RE: [PHP] Matching
| From: | David Swenson | Date: | Sat, 31 Jan 2009 03:18:25 +0000 |
| Subject: | RE: [PHP] Matching | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-287470@lists.php.net to get a copy of this message | ||
>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