Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Session Variable Not Passed


Guest

Recommended Posts

Hi,

 

Take a look at www.homefarmfoods.com/questionnaire.php

 

 

 

It will redirect you to login, login using: u: [email protected] p: test1

 

It takes you to the form. It pre-populates the email and postcode fields, so, fill in the form and submit it.

 

 

 

OK you are still logged in now so add something to your cart then enter checkout

 

Problem is no account details are in session?

 

Any help very much appreciated.

 

Rich

Link to comment
Share on other sites

I see. Ok its because the form does not inlcude the session with the link

 

generate html code

		<form id="Questionnaire" action="questionnaire_submit.php" method="post" name="Questionnaire">

So you do not use hard-coded links with forms. And you should use the osc tep_draw_form function to create the form.

 

Another problem I see is that the "New Year Pack" box link does not include the session perhaps you have a hard-coded link there too.

Link to comment
Share on other sites

I see. Ok its because the form does not inlcude the session with the link

 

generate html code

		<form id="Questionnaire" action="questionnaire_submit.php" method="post" name="Questionnaire">

So you do not use hard-coded links with forms. And you should use the osc tep_draw_form function to create the form.

 

Another problem I see is that the "New Year Pack" box link does not include the session perhaps you have a hard-coded link there too.

 

Thank you for that.

 

Is there an example I could follow to get me started with the tep_draw_form function? I take it that adopting this approach will solve the session id issue and not require the session id to be hard coded?

Link to comment
Share on other sites

Thank you for that.

 

Is there an example I could follow to get me started with the tep_draw_form function? I take it that adopting this approach will solve the session id issue and not require the session id to be hard coded?

 

yes check the catalog\contact_us.php file.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...