Forum Moderators: coopster

Message Too Old, No Replies

Passing the values with links

         

suresheva31

4:58 pm on Sep 21, 2004 (gmt 0)

10+ Year Member



echo "<td class = h9>";
$ra = OCIResult($stmt, "RADIOADDRESS");
echo "<a href='/etr2/poppinlist.php' class =h9>".strtoupper(dechex($ra)). "</a>";
echo "</td> ";

strtoupper(dechex($ra)). = some pin values example (20016643)

This is what I want to do: when some one click on that link, it will be direct to /etr2/poppinlist.php link
and poppinlist page is repobsible for to search into the database for that pin # and prints out it's all other charactretics. I do not have problem with those things. Only problem is that passing the pin value to /etr2/poppinlist.php page. How? Help please


Doe anyone knows how to pass "strtoupper(dechex($ra))" values to 'poppinlist.php page. that's because i trying to use function preg_match() to use using with my database query. I do not know how pass that value to poppinlist.php file

Suresh

rlkanter

5:04 pm on Sep 21, 2004 (gmt 0)

10+ Year Member



Not sure if I'm understand the question, why can't you just pass it as this:

echo "<a href='/etr2/poppinlist.php?pin=".strtoupper(dechex($ra))." class =h9>".strtoupper(dechex($ra)). "</a>";

and then in poppinlist.php

$pin = $_GET['pin'];

[edit: fixed quotes]

Birdman

5:09 pm on Sep 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello, Welcome to the forum!

You can append the value in a querystring:

echo "<a href='/etr2/poppinlist.php?ra=".strtoupper(dechex($ra))."' class =h9>".strtoupper(dechex($ra)). "</a>";

In the script(poppinlist.php), you can access the value like this:

$_GET["ra"]

Regards,
Birdman

too quick for me, rlkanter!

suresheva31

5:19 pm on Sep 21, 2004 (gmt 0)

10+ Year Member



hey that's what exactly I want it, But it seems like there is error in the code.

echo "<a href='/etr2/poppinlist.php?pin='.strtoupper(dechex($ra)).' class =h9>".strtoupper(dechex($ra)). "</a>";

suresheva31

5:24 pm on Sep 21, 2004 (gmt 0)

10+ Year Member



It works

Bit of a relieve for me...

Thanks guys...for the fast reply
I really appreciate..

Thank you

Suresh