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 #177905 is a reply to message #177903] Thu, 26 April 2012 09:39 Go to previous messageGo to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma:
Senior Member
Am 26.04.2012 11:34, schrieb xs2karan3190(at)gmail(dot)com:
> 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>

If you want us to find errors, you must show your code EXACTLY how it is.

You have an unbalanced quote here. It should give you an error message.

/Str.
[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: Fri Nov 22 20:46:55 GMT 2024

Total time taken to generate the page: 0.04406 seconds