Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Pass checked checkbox values to session variable?

Explorer ,
Aug 11, 2011 Aug 11, 2011

Copy link to clipboard

Copied

I've just got to grips with passing form textField inputs to session variables, and displaying the values on the next page.  I am now trying to pass checkbox values but having some problems.  I followed a tutorial that set the form to post to self with a bunch of PHP that I couldn't get working, it just reloaded the page.  I've since read that I don't need to bother with posting the form to itself.  Anyone know the best way to do this or is there a tutorial for beginners?  Thanks guys

TOPICS
Server side applications

Views

804
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 11, 2011 Aug 11, 2011

Copy link to clipboard

Copied

LATEST

It depends on what exactly you're trying to do. If you performing an insert or iodate record to a database, the form will post back to the same page, perform thenfnstion, then redirect,mif all you want to dois make the values available to the next page, set your redirect page in the form action and it will pass the variable value pairs to that page which you can retrieve, if you're just going to use the values on that page, you don't need to place them into session variables. Nut if you do, just DES ore the session variable and assign the value from the checkbox from the previous page.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines