Page 1 of 1

correct way to write this

Posted: Thu Aug 15, 2002 1:42 pm
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.

Posted: Thu Aug 15, 2002 2:16 pm
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>

Posted: Thu Aug 15, 2002 2:51 pm
by stickman373
thanks