This topic is locked

passing fields to a hyperlink in html

7/23/2006 5:10:14 PM
PHPRunner General questions
P
phpwalker author

I have a list of voters in a table...
I am trying to add a "phone number look up" hyperlink to the voters_edit.php page with the following code
echo "<a href=http://www22.verizon.com/utilities/peoplepages/?SRC=&STYPE=WS&PS=15&PI=1&process=yes&WF="&("FirstName")&"&WL="&("LastName")&"&T=west+chester&S=PA&X=4&y=5>Look kup phone test</a>";
As you can see, I am trying to get the First Name and Last Name fields to be passed into this hyperlink...
an example of a hard-coded link that works:
echo "<a href=http://www22.verizon.com/utilities/peoplepages/?SRC=&STYPE=WS&PS=15&PI=1&process=yes&WF=Karen&WL=mccool&T=west+chester&S=PA&X=4&y=5>Look up hard code phone test</a>";
can you tell me how I can add name fields into this hyperlink?
(I am using PHPRunner)

Karen

J
Jane 7/24/2006

Karen,
open ..._edit.php file, locate this line:

$data=db_fetch_array($rs);



and add following code after it:

echo "<a href="http://www22.verizon.com/utilities/peoplepages/?SRC=&STYPE=WS&PS=15&PI=1&process=yes&WF=".$data["FirstName"]."&WL=".$data["LastName"]."&T=west+chester&S=PA&X=4&y=5">Look kup phone test</a>";