Jump to content

punith

Members
  • Content count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About punith

  • Rank
    Newbie
  1. can anyone explain how to use fpdf to coonvert fetched html format into pdf
  2. how to add option choice

    @birbal private $FLAG_REGULAR_RESULT='http://results.vtu.ac.in/vitavi.php'; private $FLAG_REVAL_RESULT='http://results.vtu.ac.in/vitavireval.php'; function __construct($resultFlag) { $this->resultFlag=$resultFlag; $this->errorValue=-1; $this->proxy=""; if($resultFlag==0) $this->url=$this->FLAG_REGULAR_RESULT; else $this->url=$this->FLAG_REVAL_RESULT; } is it correct code i'm very confuse of coding this part can u help me out by giving complete code
  3. how to add download link

    hi i'm trying to fetch result from other website i'm able to fetch from other website but i'm willing to give a option for user to have pdf download link . how can i convert html data to pdf link while it fetch result from other website itself ex: i'm trying to fetch result from one of the univ website where results will be announced.i'm trying to fetch result sheet from that website http://www.result.vtu.ac.in/vitavi.php but i'm willing to give download link to user but i'm unable to do it plz help out
  4. how to add option choice

    hi i'm trying to give option choice to my coding but i'm unable to do this in php each option should redirect to 2 different link 1st choice is result it must redirect to http://results.vtu.ac.in/vitavi.php 2nd choice is revaluation result it must redirect is http://results.vtu.ac.in/vitavireval.php either one choice should be selected can any one code to this and where should i place in below code <html><head><title>Online PHP Script Execution</title></head><body><?phpecho '<form name="new" action="vitavi.php" method="POST"> <p>Enter the University Seat No: <input type="TEXT" name="rid" size="20" maxlength="50"><br><br><br><br> <input type="SUBMIT" name="submit" value="SUBMIT" align="center"><br></p><form>'; if(isset($_POST['submit']) && isset($_POST['rid']) && !empty($_POST['rid'])){ $location = 'http://results.vtu.ac.in/vitavi.php'; $userAgent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)'; $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_VERBOSE, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_URL, $location ); $post_array = array( "rid" => $_POST['rid'], "submit" => "SUBMIT" ); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_array); $response = curl_exec($ch);//change this to whatever...$extract = array("start" =>'<TD width="513">', "end"=>'<b>REGISTRAR(EVALUATION)</b>');$start = stripos($response, $extract['start']);$end = stripos($response, $extract['end']);$response = substr($response, $start, $end);echo $response."<br/>"; $start = '<TD width="513">'; $end = '<br>'; $response = strstr($response, $start); $end = stripos($response, $end); $response = substr($response, strlen($start), $end - strlen($start)); echo $response."<br/>";} ?></body></html>
  5. @ the scientist & Don jojo plz follow this link http://stackoverflow.com/questions/13899643/to-fetch-the-form-results-from-an-external-website-on-the-same-page
  6. @ thescientist while explainig the problem i hv left out some lines now i've completed it coming to problem topic i haev copied & pasted the code on online php complier (http://phpfiddle.org/) when i enter usn no/roll no(eg:1db13cs005) its just showing the student name but i need the complete result copy to be displayed on my website
  7. hii'm new to php but i tried to make my own edu website but i'm facing lot of problem bu using phpwhen the students enter their usn no(eg:1db11cs001) when user hit submit button it must fetch result from external website(eg:fastvturesults,vtualerts) and it must display result on my website i'm new to php so plz help me by giving complete codei got this from some website but it's not working properly <?phpecho '<form action="' . $_SERVER[PHP_SELF] . '" method="post"><input type="text" name="rid"><input type="submit" name="submit" value="submit"></form>';if(isset($_POST['submit'])&&(!empty($_…{$location = 'http://results.vtu.ac.in/vitavi.php';$userAgent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)';$ch = curl_init();curl_setopt($ch, CURLOPT_HEADER, 0);curl_setopt($ch, CURLOPT_VERBOSE, 0);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_URL, $location );$post_array = array("rid" => $_POST['rid'],"submit" => "submit");curl_setopt($ch, CURLOPT_POSTFIELDS, $post_array);$response = curl_exec($ch);$start = '<TD width="513">';$end = '<br>';$response = strstr($response, $start);$end = stripos($response, $end);$response = substr($response, strlen($start), $end - strlen($start));echo $response."<br/>";}?>
×