problem $_GET

my coding in User.php
$strname =Trim($_POST[‘Username’]);

in profile.php i code:
$strUsrName =$_GET[‘name’];

when i echo $strUsrName it displayed ‘$strUsrName’. Suppose it display username. why it happened. can somebody help me?

You need some <?php and ?> tags in there. In user.php, something like this would work, either:

<?php $strname = trim($_POST['Username']); echo ""; ?>


<?php $strname = trim($_POST['Username']); ?>

Sponsor our Newsletter | Privacy Policy | Terms of Service