Sometimes the simplest way is to create separate pages, rather than cram it
all in a single script. With proper planning it should in theory be
possible. I'm doing it on http://www.lily-gallery.com/ but I use a lot of
"requires" and a lot of "if usertype" statements. I'm prepared to help get
you there, but let's take the discussion off-line. It's now a matter of
design, not php code.
Gerry
On 6/3/06, Jeffrey Cook <[EMAIL PROTECTED]> wrote:
>
> Gary and all,
>
> I gave up trying to have one page fully interactive. See, the problem
> is, I have four different membership types at my website, and need it to
> behave differently for each membership. I found it a whole lot simpler to
> give up on exactly what I was doing before and simply made four environments
> in php plus an htm environment for members when they are not signed in or
> non members. I have some simple code now where the user signs in as the
> membership he registers with and it takes him into that environment. I was
> tedious to copy and paste each page into the five different environments,
> but it was worth it. Now I can freely add several different pages to each
> environment depending on the nature of their membership.
>
> In any case, thank you guys so much for all your help. I will
> definitely post again if I run into any new problems.
>
> Jeff
>
>
> [EMAIL PROTECTED] wrote:
> How about something like this?
>
> <?php
> echo ($_SESSION['auth'] != "yes" ?
> "<p><a href="" / Signup</a></p>" :
> "<p><a href=""> > exit();
> ?>
>
> Gary
> www.posi7.com
>
> ----- Original Message -----
> From: "jnoelcook" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, May 29, 2006 01:39 PM
> Subject: [webdev] [php_mysql] 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.
>
> <?php
>
> if (@$_SESSION['auth'] = !"yes")
> {
> echo = "<p><a href=''>Login /
> Signup</a></p>";
> echo = "<p><a href=''>Signout</a></p>";
> 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.
>
>
> ---------------------------------
>
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Get on board. You're invited to try the new Yahoo! Mail Beta.
>
> [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<http://groups.yahoo.com/gads?t=ms&k=American+general+life+and+accident+insurance+company&w1=American+general+life+and+accident+insurance+company&w2=American+general+life+insurance+company&w3=American+general+life&w4=American+general+mortgage&w5=American+general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=Kzn1J6ZDdsfc3f-9JZ-bKQ> American
> general life insurance company<http://groups.yahoo.com/gads?t=ms&k=American+general+life+insurance+company&w1=American+general+life+and+accident+insurance+company&w2=American+general+life+insurance+company&w3=American+general+life&w4=American+general+mortgage&w5=American+general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=q5Z_Gheyyf5dB3KHCkTGOw> American
> general life<http://groups.yahoo.com/gads?t=ms&k=American+general+life&w1=American+general+life+and+accident+insurance+company&w2=American+general+life+insurance+company&w3=American+general+life&w4=American+general+mortgage&w5=American+general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=1O42IK5r5LJ1BBWLyTAAKA> American
> general mortgage<http://groups.yahoo.com/gads?t=ms&k=American+general+mortgage&w1=American+general+life+and+accident+insurance+company&w2=American+general+life+insurance+company&w3=American+general+life&w4=American+general+mortgage&w5=American+general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=AC-EcyrN2MPgqHTxt6lmKg> American
> general life insurance<http://groups.yahoo.com/gads?t=ms&k=American+general+life+insurance&w1=American+general+life+and+accident+insurance+company&w2=American+general+life+insurance+company&w3=American+general+life&w4=American+general+mortgage&w5=American+general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=P8vNlXr7QopQQ3tGIepE4Q> Computer
> internet security<http://groups.yahoo.com/gads?t=ms&k=Computer+internet+security&w1=American+general+life+and+accident+insurance+company&w2=American+general+life+insurance+company&w3=American+general+life&w4=American+general+mortgage&w5=American+general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=OCFX-MPv3cQROoYDEaexxA>
> ------------------------------
> YAHOO! GROUPS LINKS
>
>
> - Visit your group "php_mysql<http://groups.yahoo.com/group/php_mysql>"
> on the web.
>
> - To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]<[EMAIL PROTECTED]>
>
> - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------
>
--
Gerry
http://dev.danen.org/
[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.
