Jump to content


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


Form validation Error..

Recommended Posts



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.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.