Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- $postdata = http_build_query(
- array(
- 'sr' => '0',
- 'exam' => 'jsc',
- 'year' => '2013',
- 'roll' => '401505',
- 'board' => 'dinajpur',
- 'button2' => 'submit'
- )
- );
- */
- //"sr=3&et=0&exam=jsc&year=2013&roll=401505&board=dinajpur&button2=submit"
- // post request will be -
- //http://www.educationboardresults.gov.bd/regular/result.php'
- //sr=3&et=0&exam=jsc&year=2013&board=dinajpur&roll=401505&button2=Submit&
- $url = "http://www.educationboardresults.gov.bd/regular/result.php";
- $postdata = http_build_query(
- array(
- 'sr'=>'3',
- 'et'=>'0',
- 'exam'=>'jsc',
- 'year'=>'2013',
- 'board'=>'dinajpur',
- 'roll'=>'401505',
- 'button2'=>'Submit'
- )
- );
- $opts = array('http' =>
- array(
- 'method' => 'POST',
- 'header' => 'Content-type: application/x-www-form-urlencoded',
- 'content' => $postdata
- )
- );
- $context = stream_context_create($opts);
- $result = file_get_contents($url, false, $context);
- echo $result;
Advertisement
Add Comment
Please, Sign In to add comment