Jump to content
Larry Ullman's Book Forums

Radio Buttons And Checkboxes Validating Together


Recommended Posts

Hello..

 

I have two php form and one has categories and their subjects. In there, users can select category and relevant subjects to that category. Likewise users can select upto 3 categories and their subjects in first form. when those select and after submitting those should handle in my second page.

 

But I have made so frustrated here when Im going to handle those in my second page.

 

Please Can anybody help me to do this.

 

I use this, but......

 

if ( ( isset($_POST['submitted2'])) && ( isset($_SESSION['category'])) && (isset( $_SESSION['subjects'])) && sizeof( $_SESSION['category']) == 1) {

 //$_SESSION['category'] = $_POST['category'];

 print_r ( $_SESSION['category']);

 echo 'good';


} elseif ( ( isset($_POST['submitted2'])) && ( isset($_SESSION['category'])) &&
 (isset( $_POST['main_category'] ))) {

 print_r ( $_SESSION );


 echo 'very good';

}

 

 

Thanks in advance.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...