Submit a form automatically with PHP -
I wanted to submit a form with php with special values, but it did not work here Code is: & lt ;? create the array of data to post php // $ post_data ['username'] = 'some'; $ Post_data ['password'] = 'something!'; // Generate data for Troops array and posting (key 1 = value 1) Forex ($ post_data $ key = & gt; $ value) {$ post_items [] = $ key '=' $ value; } // implode () $ post_string = create the last string to post using implode ('& amp; $, post_items); // Create CRL Connection curl_connection = curl_init ('http://www.parsdata.com/'); // Set option curl_setopt ($ curl_connection, CURLOPT_CONNECTTIMEOUT, 30); Curl_setopt ($ curl_connection, CURLOPT_USERAGENT, "Mozilla / 4.0 (compatible; MSIE 6.0; Windows NT 5.1)"); Curl_setopt ($ curl_connection, CURLOPT_RETURNTRANSFER, true); Curl_setopt ($ curl_connection, CURLOPT_SSL_VERIFYPEER, incorrect); Curl_setopt ($ curl_connection, CURLOPT_FOLLOWLOCATION, 1); ...