i saw ur code first of all see the correct code, and try it.
<?php
Session_start();
if ($_SESSION['auth'] != "yes")
{
echo "<p><a href=''>Login /
Signup</a></p>";
echo "<p><a href=''>Signout</a></p>";
exit();
}
?>
above is the correct that should be written.
here are the code errors in your code
1. @ should not be used with $_SESSION variables.
2. = !'yes' not correct, the correct code is !='yes'.
3. page should be saved as .php extention like abc.php, i think u r using the php code in HTML page that's why it's not giving u any output.
try above option, i m sure it will solve ur probs.
in case still u face any problem, i would live to see ur actual code what is written on ur page.
BABAL
[email protected] wrote: ------------------------ Yahoo! Groups Sponsor --------------------~-->
You can search right from your browser? It's easy and it's free. See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/CefplB/TM--------------------------------------------------------------------~->
There are 13 messages in this issue.
Topics in this digest:
1. Re: Question for PHP Experts
From: "kray blue" [EMAIL PROTECTED]
2. opinion on web serving
From: "kray blue" [EMAIL PROTECTED]
3. Re: PHP & MySQL Courses
From: "nathan" [EMAIL PROTECTED]
4. Question for PHP/Xml Expert
From: "imran shafiq" [EMAIL PROTECTED]
5. Re: opinion on web serving
From: "Workshop Alex" [EMAIL PROTECTED]
6. Question about Login / Signout...
From: "jnoelcook" [EMAIL PROTECTED]
7. Re: Question about Login / Signout...
From: "Mark Wheeler" [EMAIL PROTECTED]
8. Re: Question about Login / Signout...
From: "Mike Brandonisio" [EMAIL PROTECTED]
9. Re: Question about Login / Signout...
From: "Gerry Danen" [EMAIL PROTECTED]
10. Re: Question about Login / Signout...
From: "Jeffrey Cook" [EMAIL PROTECTED]
11. Re: Question about Login / Signout...
From: "Jeffrey Cook" [EMAIL PROTECTED]
12. Re: Question about Login / Signout...
From: "Ray" [EMAIL PROTECTED]
13. Re: Question about Login / Signout...
From: "Gerry Danen" [EMAIL PROTECTED]
________________________________________________________________________
________________________________________________________________________
Message 1
From: "kray blue" [EMAIL PROTECTED]
Date: Mon May 29, 2006 7:14pm(PDT)
Subject: Re: Question for PHP Experts
One reason can be *nix/linux is case sensitive try giving your var name similar name/case. Also try to print_r all your post data if that's possible.
Can we take a peek in your code?
Regards,
~kray
imran shafiq wrote:
Dear Experts
Programs which run correctly on LINUX having following error on Windows on line which contain some thing like this: $_POST['VariableName'];
Undefine variable index/name VariableName.
What is the solution of this promlem
<|_|_| | Hafiz
Imran Shafiq Khan
Send instant messages to your online friends http://uk.messenger.yahoo.com
[Non-text portions of this message have been removed]
The php_mysql group is dedicated to learn more about the PHP/MySQL web database possibilities through group learning.
SPONSORED LINKS
American general life and accident insurance company American general life insurance company American general life American general mortgage American general life insurance Computer internet security
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "php_mysql" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
__ _
____ | |(_)
/ || | __ _ ,_ _______
| -- | || |> \/'\/ || __ |
\ \ | || || +-+-+ || ___/
/+__\ \| || || | | | | \ \
< > copyryt 2003 (r)
---------------------------------
All New Yahoo! Mail – Tired of [EMAIL PROTECTED]@! come-ons? Let our SpamGuard protect you.
[Non-text portions of this message have been removed]
________________________________________________________________________
________________________________________________________________________
Message 2
From: "kray blue" [EMAIL PROTECTED]
Date: Mon May 29, 2006 7:22pm(PDT)
Subject: opinion on web serving
gurus,
i want to learn how to setup a linux web server will fedora core 5 ok?
thanks,
~kray
__ _
____ | |(_)
/ || | __ _ ,_ _______
| -- | || |> \/'\/ || __ |
\ \ | || || +-+-+ || ___/
/+__\ \| || || | | | | \ \
< > copyryt 2003 (r)
---------------------------------
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
[Non-text portions of this message have been removed]
________________________________________________________________________
________________________________________________________________________
Message 3
From: "nathan" [EMAIL PROTECTED]
Date: Tue May 30, 2006 3:25am(PDT)
Subject: Re: PHP & MySQL Courses
I just wanted to thank the people that replied to my email.
I managed to get hold of a copy of the book suggested and it is
exactly what I was looking for.
So now its time to get dirty with it!
Vez.
--- In [email protected], Mark Wheeler wrote:
>
> A good book I've found VERY helpful is Larry Ullman's "PHP and
MySQL
> for Dynamic Web Sites". It's a visual QuickPro guide. It's how I
> started. Mix that with online help/tutorials and you'd be in
pretty
> good shape.
>
> Mark
>
> ----------
>
> On May 23, 2006, at 6:04 AM, cdg1111us wrote:
>
> You might browse over the courses offered directly through MySQL.
> They won't cover as much PHP, but you'll learn a lot about the
> database. I've also taken courses at New Horizons, which here in
> Kansas City at least are pretty good. Otherwise, it's reading
books
> and online tutorials. You might try the library in your area for
> programming books, too.
>
> Best of luck,
>
> Ken
>
>
>
>
>
> --- In [email protected], "nathan"
> wrote:
> >
> > Hi,
> >
> > I'm new here and new to php & mysql but I have a couple of
> > applications that I would like to progress from concept to full
> > working models. I am based in the southeast of the UK.
> >
> > I wondering whether anyone would be able to suggest any courses
on
> > php & mysql. I have books on the subjects but I think I need
> > somebody to go through it with. I would like to develop some
> > programming skills, I do have some HTML skills, but I need more
> > skills to match the ideas I have!
> >
> > Does anyone have any experience with further education courses or
> > any online courses? Can anyone suggest somewhere I could research
> > further?
> >
> > Many thanks in advance!
> >
> > Vez.
> >
>
>
>
>
>
>
>
> The php_mysql group is dedicated to learn more about the
PHP/MySQL
> web database possibilities through group learning.
> Yahoo! Groups Links
>
________________________________________________________________________
________________________________________________________________________
Message 4
From: "imran shafiq" [EMAIL PROTECTED]
Date: Tue May 30, 2006 5:20am(PDT)
Subject: Question for PHP/Xml Expert
Dear Experts
When I use following Xml Line:
e.g. $xml_Name=<<
Parse Error occurs. What is the solution of this problem.
Thanks
<|_|_| | Hafiz
Imran Shafiq Khan
---------------------------------
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
[Non-text portions of this message have been removed]
________________________________________________________________________
________________________________________________________________________
Message 5
From: "Workshop Alex" [EMAIL PROTECTED]
Date: Tue May 30, 2006 9:10am(PDT)
Subject: Re: opinion on web serving
Well, you don't have to ask my permission. Sounds fine by me. :-)
Remember, if you have any questions, don't hesitate to ask them. You get no
answer to questions you don't ask... :-)
--
With kind regards,
\/\//\ Wim,
W.A. ten Brink
On 5/30/06, kray blue wrote:
>
> gurus,
>
> i want to learn how to setup a linux web server will fedora core 5 ok?
>
> thanks,
> ~kray
>
>
>
> __ _
> ____ | |(_)
> / || | __ _ ,_ _______
> | -- | || |> \/'\/ || __ |
> \ \ | || || +-+-+ || ___/
> /+__\ \| || || | | | | \ \
> < > copyryt 2003 (r)
>
>
>
> ---------------------------------
> All new Yahoo! Mail "The new Interface is stunning in its simplicity and
> ease of use." - PC Magazine
>
> [Non-text portions of this message have been removed]
>
>
>
>
> The php_mysql group is dedicated to learn more about the PHP/MySQL web
> database possibilities through group learning.
> Yahoo! Groups Links
>
>
>
>
>
>
>
[Non-text portions of this message have been removed]
________________________________________________________________________
________________________________________________________________________
Message 6
From: "jnoelcook" [EMAIL PROTECTED]
Date: Tue May 30, 2006 9:12am(PDT)
Subject: Question about Login / Signout...
All,
I am a newbie to php, and have many questions.
I am trying to create a link to appear on an HTML page that
shows: "Login / Signup" when not logged in, and: "Signout" when one
IS logged in.
I placed the following lines of code in my HTML text in the place
where I want the link to be.
if (@$_SESSION['auth'] = !"yes")
{
echo = "Login /
Signup
";
echo = "Signout
";
exit();
}
?>
However, when I go to this page, no link whatsoever appears. Could
someone provide the correct code for this command?
Thanks much!!!
Jeff
________________________________________________________________________
________________________________________________________________________
Message 7
From: "Mark Wheeler" [EMAIL PROTECTED]
Date: Tue May 30, 2006 9:33am(PDT)
Subject: Re: Question about Login / Signout...
Well, I'm no expert, but I would first take out the equal sign ("=")
that is between the echo and quotes parts of your echo statements. As
well, I'm not sure if you need the "@" symbol before the $_SESSION.
Again, I'm no expert, but you might try it see if it works.
Mark
-----
On May 29, 2006, at 12:39 PM, jnoelcook wrote:
All,
I am a newbie to php, and have many questions.
I am trying to create a link to appear on an HTML page that
shows: "Login / Signup" when not logged in, and: "Signout" when one
IS logged in.
I placed the following lines of code in my HTML text in the place
where I want the link to be.
if (@$_SESSION['auth'] = !"yes")
{
echo = "Login /
Signup
";
echo = "Signout
";
exit();
}
?>
However, when I go to this page, no link whatsoever appears. Could
someone provide the correct code for this command?
Thanks much!!!
Jeff
The php_mysql group is dedicated to learn more about the PHP/MySQL
web database possibilities through group learning.
Yahoo! Groups Links
________________________________________________________________________
________________________________________________________________________
Message 8
From: "Mike Brandonisio" [EMAIL PROTECTED]
Date: Tue May 30, 2006 9:41am(PDT)
Subject: Re: Question about Login / Signout...
Hi,
I'd try something like this. Testing for not equals is '!=' and not
'=' on echo.
if ($_SESSION['auth'] != "yes") {
echo("Login / Signup
");
echo("Signout
");
exit();
}
?>
Sincerely,
Mike
--
Mike Brandonisio * Web Hosting
Tech One Illustration * Internet Marketing
tel (630) 759-9283 * e-Commerce
[EMAIL PROTECTED] * http://www.jikometrix.net
JIKOmetrix - Reliable web hosting
On May 29, 2006, at 2:39 PM, jnoelcook wrote:
> >
> if (@$_SESSION['auth'] = !"yes")
> {
> echo = "Login /
> Signup
";
> echo = "Signout
";
> exit();
> }
> ?>
________________________________________________________________________
________________________________________________________________________
Message 9
From: "Gerry Danen" [EMAIL PROTECTED]
Date: Tue May 30, 2006 9:52am(PDT)
Subject: Re: Question about Login / Signout...
Your syntax is wrong:
if (@$_SESSION['auth'] = !"yes")
should be
if ($_SESSION['auth'] != "yes")
assuming that session variable is set.
More than likely, you have entries in your error log.
Gerry
http://dev.danen.org/forum/
On 5/29/06, jnoelcook wrote:
>
> All,
>
> I am a newbie to php, and have many questions.
>
> I am trying to create a link to appear on an HTML page that
> shows: "Login / Signup" when not logged in, and: "Signout" when one
> IS logged in.
>
> I placed the following lines of code in my HTML text in the place
> where I want the link to be.
>
> >
> if (@$_SESSION['auth'] = !"yes")
> {
> echo = "Login /
> Signup
";
> echo = "Signout
";
> exit();
> }
> ?>
>
> However, when I go to this page, no link whatsoever appears. Could
> someone provide the correct code for this command?
>
> Thanks much!!!
>
> Jeff
>
>
>
>
>
>
>
>
> The php_mysql group is dedicated to learn more about the PHP/MySQL web
> database possibilities through group learning.
>
>
>
> SPONSORED LINKS
> American general life and accident insurance company American
> general life insurance company American
> general life American
> general mortgage American
> general life insurance Computer
> internet security
> ------------------------------
> YAHOO! GROUPS LINKS
>
>
> - Visit your group "php_mysql"
> on the web.
>
> - To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service .
>
>
> ------------------------------
>
--
Gerry
http://dev.danen.org/
[Non-text portions of this message have been removed]
________________________________________________________________________
________________________________________________________________________
Message 10
From: "Jeffrey Cook" [EMAIL PROTECTED]
Date: Tue May 30, 2006 11:29am(PDT)
Subject: Re: Question about Login / Signout...
All,
Thanks for all your suggestions. I took out the @ symbol, but that didn't change anything. I placed the ! in front of the =, which was a typo. Unfortunately, that still didn't help.
I decided to try many other things on my own. In the end, I decided to place an include on the HTML page and created a PHP page for the code of this feature.
It is still not working. The include command on the HTML is such:
include("login_signout.php");
?>
The PHP page is as such:
/* File: login_signout.php
* Desc: Displays Login / Signup link when not logged in
* Desc: And the Signout link when you are logged in.
*/
session_start();
if ($_SESSION['auth'] != "yes")
{
echo = "
Login / Signup
";
include("index.htm");
}
else
{
echo = "Signout
";
include("index.htm");
}
?>
Again, after uploading these updated pages and visiting the index page when logged out, I still see neither link. Are there any other ideas you may have?
Again, I greatly appreciate any help with this.
Jeff
jnoelcook wrote:
All,
I am a newbie to php, and have many questions.
I am trying to create a link to appear on an HTML page that
shows: "Login / Signup" when not logged in, and: "Signout" when one
IS logged in.
I placed the following lines of code in my HTML text in the place
where I want the link to be.
if (@$_SESSION['auth'] = !"yes")
{
echo = "Login /
Signup
";
echo = "Signout
";
exit();
}
?>
However, when I go to this page, no link whatsoever appears. Could
someone provide the correct code for this command?
Thanks much!!!
Jeff
The php_mysql group is dedicated to learn more about the PHP/MySQL web database possibilities through group learning.
SPONSORED LINKS
American general life and accident insurance company American general life insurance company American general life American general mortgage American general life insurance Computer internet security
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "php_mysql" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
How low will we go? Check out Yahoo! MessengerÂ’s low PC-to-Phone call rates.
[Non-text portions of this message have been removed]
________________________________________________________________________
________________________________________________________________________
Message 11
From: "Jeffrey Cook" [EMAIL PROTECTED]
Date: Tue May 30, 2006 11:29am(PDT)
Subject: Re: Question about Login / Signout...
Gerry,
I made these changes. Didn't seem to help.
Any other ideas?
Jeff
Gerry Danen wrote:
Your syntax is wrong:
if (@$_SESSION['auth'] = !"yes")
should be
if ($_SESSION['auth'] != "yes")
assuming that session variable is set.
More than likely, you have entries in your error log.
Gerry
http://dev.danen.org/forum/
On 5/29/06, jnoelcook wrote:
>
> All,
>
> I am a newbie to php, and have many questions.
>
> I am trying to create a link to appear on an HTML page that
> shows: "Login / Signup" when not logged in, and: "Signout" when one
> IS logged in.
>
> I placed the following lines of code in my HTML text in the place
> where I want the link to be.
>
> >
> if (@$_SESSION['auth'] = !"yes")
> {
> echo = "Login /
> Signup
";
=== message truncated ===
---------------------------------
Yahoo! India Answers: Share what you know. Learn something new Click here
Send free SMS to your Friends on Mobile from your Yahoo! Messenger Download now
[Non-text portions of this message have been removed]
The php_mysql group is dedicated to learn more about the PHP/MySQL web database possibilities through group learning.
SPONSORED LINKS
| American general life and accident insurance company | American general life insurance company | American general life |
| American general mortgage | American general life insurance | Computer internet security |
YAHOO! GROUPS LINKS
- Visit your group "php_mysql" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
