$post_fields =”profile_firstname=test&mail=test@test.com&pass[pass1]=test123&pass[pass2]=test123&profile_lastname=tests&conf_mail=test@test.com&validateage_dob[month]=jan&validateage_dob[day]=2&validateage_dob[year]=1991&profile_sex=Male&decision=1&form_id=user_register&op=yes&profile_debit=0&profile_telephone=67567876″;
$url=”your site url”; //where you want to submit data
$ch = curl_init(); // Initialize a CURL session.
curl_setopt($ch, CURLOPT_URL, $url); // Pass URL as parameter.
curl_setopt($ch, CURLOPT_POST, 1); // use this option to Post a form
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields); // Pass form Fields.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Return Page contents.
$result = curl_exec($ch); // grab URL and pass it to the variable.
curl_close($ch); // close curl resource, and free up system resources.