I have a javascript menu that has this call (and many more similar) in it:
<!-- m --><a class="postlink" href="http://64.179.21.93/cgi-bin/nl/nldemo.bat?request_id=OSTKCAT&SESSION_NO=DDDDDFAD&BEG_CLASS=IAXSHN&END_CLASS=IPHXHN&LOC=WHS&DISP=Y&CLASS_MASK=I???HN">http://64.179.21.93/cgi-bin/nl/nldemo.b ... ASK=I???HN</a><!-- m -->
The SESSION_NO part of the above call gives our software the information it needs to know who the customer is and what their password is. If you have not logged in yet, you don't have a session number.
I would like the menu to check for a session number, and if there isn't one, to direct it to another page instead. That call would be: <!-- m --><a class="postlink" href="http://64.179.21.93/cgi-bin/nl/nldemo.bat?request_id=clogin">http://64.179.21.93/cgi-bin/nl/nldemo.b ... _id=clogin</a><!-- m -->
I was told that I could use PHP. Something like this:
<?
if (session_id=="){do thelogin ;}
?>
but I don't know anything about PHP at all. Even if that was exactly the right command I don't know where to put it.
PS If you try the first link with the session_no, it will probably be timed out.
Anybody have any ideas? THANKS!
<!-- m --><a class="postlink" href="http://64.179.21.93/cgi-bin/nl/nldemo.bat?request_id=OSTKCAT&SESSION_NO=DDDDDFAD&BEG_CLASS=IAXSHN&END_CLASS=IPHXHN&LOC=WHS&DISP=Y&CLASS_MASK=I???HN">http://64.179.21.93/cgi-bin/nl/nldemo.b ... ASK=I???HN</a><!-- m -->
The SESSION_NO part of the above call gives our software the information it needs to know who the customer is and what their password is. If you have not logged in yet, you don't have a session number.
I would like the menu to check for a session number, and if there isn't one, to direct it to another page instead. That call would be: <!-- m --><a class="postlink" href="http://64.179.21.93/cgi-bin/nl/nldemo.bat?request_id=clogin">http://64.179.21.93/cgi-bin/nl/nldemo.b ... _id=clogin</a><!-- m -->
I was told that I could use PHP. Something like this:
<?
if (session_id=="){do thelogin ;}
?>
but I don't know anything about PHP at all. Even if that was exactly the right command I don't know where to put it.
PS If you try the first link with the session_no, it will probably be timed out.
Anybody have any ideas? THANKS!