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>