Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

login session id problems


emoment

Recommended Posts

Posted

hey, i just manage to configure my site so i can use forms on the mail page to insert the login details insteed of them going to the login page, but i am having problems with the session id. how do i inbeded it or what not so it creates the session id please help the script is bellow

 

<table><TR class="infoBoxContents"><Td>

 

<form name="login" method="post" action="http://playadvance.co.uk/store/login.php?action=process">

 

Email Address:</Td><Td> <input type="text" name="email_address" maxlength="96" size="19" value=""></Td>    <Td>Password:</Td><Td><input type="password" name="password" maxlength="40" size="19" value=""></Td><Td> <input type="image" src="http://www.playadvance.co.uk/store/includes/languages/english/images/buttons/login.jpg" border="0" alt="Sign In" title=" Sign In " SSL>

 

 

 

 

</form></TR></td></table>

 

please please please help

 

cheers,

Devan

Posted

by the action field

 

instead of the hard-code url you use the tep_href_link function that will take care of the session.

 

That's the line you need to change in your script

<form name="login" method="post" action="http://playadvance.co.uk/store/login.php?action=process">

 

use the tep_draw_form and tep_href_link functions. See how the core osc code does it with other forms.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...