Our website uses online software from a company called the DecoNetwork. It allows our customers to log in and keep track of their orders yadda yadda. I was able to use their code for a login form and use it on our custom website.
<form action="http://cheapcustomtees.deco-apparel.com/user/login?mobi=0" method="post">
<input type="hidden" name="_pc_session_id" value="7eb5d16ed18b074967ee0cf333d24417"/>
<input type="hidden" name="_pc_skey" value="wynkunatrixikuquunetycyxomynkozatrivozichardaru"/>
Login: <input type="textbox" name="user[login]"/>
Password: <input type="password" name="user[password]"/>
Remember me: <input type="checkbox" name="remember_me" value="1" checked="true" class="auto" />
<input type="submit" value="Login" class="bigbutton" style="font-size:10pt; font-family:Museo700; cursor:pointer;" />
</form>
If possible, I would like to display content based on if the user is logged in or out. If logged out, show the login form. Otherwise, show something else.
Is something like this possible with someone else's sessions? If so, can you give me an example as I am still new with PHP?