Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Persisting variables across multiple posts to PHP_SELF

  • 02-08-2013 2:15pm
    #1
    Registered Users, Registered Users 2 Posts: 1,456 ✭✭✭


    I am just looking at PHP I want a series of option lists where subsequent lists are filled using the value(s) from the previous lists.

    I am using 'PHP_SELF' in the form action and onChange=this.form.submit in the option lists.

    I don't have a problem filling the second list as $_POST gives me the output from the first option list. However I can't fill the third as $_POST only gives me the output from the second and I've lost the first.

    Is there anyway of achieving this without using separate pages as session variables don't seem to persist across a single page?

    Sorted, I didn't have cookies allowed so the session variables weren't being stored.


Advertisement