Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have an address list that display

Status
Not open for further replies.

JustKIDn

MIS
May 6, 2002
386
US
I have an address list that displays correctly.

I would like to add options to modify (edit) an entry.

I was thinking about adding radio buttons. But my wife said I should just be able to click on the Last Name (like a link) and have it open another page.

Here is the line that I think I need to change;

echo($row["last"]);

I guess I'd need to make it a link and use the record number somehow.

Any ideas?

tgus

____________________________
Families can be together forever...
 
Thanks sleipnir,

I think that will work. However I haven't used $_GET before.

Do I use $_GET in the beginning of "yourscript.php"?

tgus

____________________________
Families can be together forever...
 
I got it working now,

Figuring out the correct syntax was a bit tricky, but this seems to work good;
Code:
echo(&quot;<a href='choose.php?id=&quot; . $row[&quot;famID&quot;] . &quot;' style='text-decoration: none;'>&quot; . $row[&quot;last&quot;] . &quot;</a>&quot;);
And then in choose.php, I used;

Code:
 $_GET[&quot;id&quot;]

to receive the info.

Thanks again sleipnir!

tgus

____________________________
Families can be together forever...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top