how to $_REQUEST[''string'$var'];

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
ismail
Forum Newbie
Posts: 10
Joined: Thu Jun 05, 2008 11:51 pm

how to $_REQUEST[''string'$var'];

Post by ismail »

Hello all,
here i m getting parameter string and a concatinated numerical value dynamically
/******$_REQUEST[''Author'.$a'];
pls help the syntax of it.
<html>
<head>
<title>Response</title>

</head>

<body>
Ur favourite author is
<?php
$a = 1;
$Author = $_REQUEST[''Author'.$a'];
echo $Author;
?>
</body>
</html>
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: how to $_REQUEST[''string'$var'];

Post by VladSun »

Quotes issue:

Code: Select all

$Author = $_REQUEST['Author'.$a];
There are 10 types of people in this world, those who understand binary and those who don't
ismail
Forum Newbie
Posts: 10
Joined: Thu Jun 05, 2008 11:51 pm

Re: how to $_REQUEST[''string'$var'];

Post by ismail »

VladSun wrote:Quotes issue:

Code: Select all

$Author = $_REQUEST['Author'.$a];
Thank you for ur kind reply
Post Reply