FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Session variables..
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Session variables.. [message #177916 is a reply to message #177903] Fri, 27 April 2012 00:37 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 4/26/2012 5:34 AM, xs2karan3190(at)gmail(dot)com wrote:
> I know there is some problem regarding session variables but I am not able to get what it is.. Kindly help.
> my code is in 2 files...
>
>
> test0.php--->
>
> <html>
> <body>
> <?php
>
> session_start();
> $_SESSION['id']="1";
> $_SESSION['psid']="admin";
>
> echo $_SESSION['id']." ".$_SESSION['psid'];
>
> ?>
> <form method="get" action="test1.php">
> <div id="id" name="name">Hello mr.</div>
>
> <input type="submit" name="click" />
> </form>
> </body>
> </html>
>
>
>
> test1.php--->
>
> <html>
> <body>
> <?php
> session_start();
> echo $_SESSION['id']." ".$_SESSION['psid'];
> $a=$_GET['id'];
> echo $a;
> ?>
> <br/>
> <a href=test0.php">Back</a>
> </body>
> </html>
> --------------------------------------------------------------------------- -----
>
> At start I open the test0.php on my localhost and click on submit button,test1.php loads perfectly.But when I click on back buton in test1.php the url is "localhost\test0.php%22"...
> and error msg is access forbidden..
> where does this extra %22 come.???
>
> PLZ HELP..

In addition to what the others have said, your php.ini file on your
development system should ALWAYS have:

display_errors = on
error_reporting = E_ALL

If you had these you would have received an error message telling you
(pretty much) exactly what the error was.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: const var, self:: or static::
Next Topic: Removing specific array items
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 16:00:07 GMT 2024

Total time taken to generate the page: 0.04484 seconds