1

hi im trying to write an enquiry form in php where it gets values from a session array.. but ive cant think how to start.. what im thinking is say for example ive got a page with items on and i click add to enquiry list it will then post it to the enquiry page using ajax? can anyone give me a push start?

cheers

1
  • The best push ever: make it without AJAX first. Commented Sep 7, 2010 at 21:22

1 Answer 1

1

You shall pass sessions variables to your AJAX requests in the form of (javascript code):

enquiry.php?' + session_name + '='  + session_id + '&add=whaevere_you_want&foo=bar

Where session_name and session_id are javascript local variables obtained via AJAX initalizer to fetch them from a php script which is capable of providing them via PHP functions:

session_name()
session_id()

respectively

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.