correct way to write this

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
stickman373
Forum Commoner
Posts: 30
Joined: Mon Jul 22, 2002 10:26 am

correct way to write this

Post by stickman373 »

I'm trying to make a link using some info i am getting from a post and mysql query but i am writing it wrong. How should this look?

Code: Select all

<p align="center"><b><a href="<?php $_REQUEST&#1111;'cats'] . 'view.php?' . echo $record&#1111;'id']?>"><BR><?php echo $record&#1111;'title']; ?></a></b></p>
$_REQUEST['cats'] is from a POST from a form

'view.php?' is plain text

echo $record['id'] is from a mysql query

echo $record['title']; will be how you see the link

how do i put them how i have htem above but written correctly because i get an error how i have it above.
fatalcure
Forum Contributor
Posts: 141
Joined: Thu Jul 04, 2002 12:57 pm
Contact:

Post by fatalcure »

Code: Select all

<p align="center"><b><a href="<?php echo $_REQUEST&#1111;'cats'] . "view.php?" . $record&#1111;'id']; ?>"><BR><?php echo $record&#1111;'title']; ?></a></b></p>
stickman373
Forum Commoner
Posts: 30
Joined: Mon Jul 22, 2002 10:26 am

Post by stickman373 »

thanks
Post Reply