sending saved id

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Goofan
Forum Contributor
Posts: 305
Joined: Wed Nov 04, 2009 2:11 pm
Location: Sweden

sending saved id

Post by Goofan »

Hi i have a dtatable with a cell called saved_id which contains a number that number is special for every "User"
however i cant get my code to work....

how can i modifie this to work outside php code within a Html coding...

Code: Select all

 
  <a href="sidor/Infanteries.php?saved_id='.$row[saved_id]" target="main">Infanteries</a><br>       <!-- link to go to page Infanteries and send the saved_id alongside with it-->
 
thanks in advance for the help
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Post by Jonah Bron »

I think it should be:

Code: Select all

<a href="sidor/Infanteries.php?saved_id=<?php echo $row[saved_id]; ?>" target="main">Infanteries</a><br>
User avatar
Goofan
Forum Contributor
Posts: 305
Joined: Wed Nov 04, 2009 2:11 pm
Location: Sweden

Re: sending saved id

Post by Goofan »

ok thanks that made it
Post Reply