Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

How to get the value of this Variable

Links for php scripts

Moderators: macek, egami, gesf

How to get the value of this Variable

Postby micky » Fri Sep 14, 2012 1:07 am

Dear All,
I have these following 2 scripts.
1st one it opens the session for the particular log in user
if(!session_is_registered($acc_name)){
header("location:myprofile.php");
}
=======
2nd one is the file that is being called by the 1st one
In that myprofile.php the variable $acc_name is not visible.
<?php
$name1 = $_POST['$acc_name'];
echo $name1;
?>
=======
I'm getting the following error
Undefined index: $acc_name
Please assist.
Thanks & Regards,
Micky
micky
New php-forum User
New php-forum User
 
Posts: 1
Joined: Thu Sep 13, 2012 9:40 pm

Return to PHP Scripts

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron