All pastes #430054 Raw Edit

Something

public php v1 · immutable
·published 2007-04-08 18:07 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>  <title>Hello!</title></head><body><?$sands=array("entry level job 1","entry level job II","entry level job III","asistant manager","manager", "case worker");$cod=array("ASP ASP.Net Acess", "PhP Mysql", "Ruby Sql/Oracale", "code manager" ,"project manager");$results=0;$counter=0;echo "Your search query results are below<br /><br /><hr>";echo "<h3>Sales and Shipping Department</h3><br />";while ((list ($index, $content)=each($sands))){$check=strpos($content, $_POST['query']);if ($check>-1){$counter++;$con[$counter]=$content;echo "<b> $content </b>";print "<form method=\"POST\" action=\"job.php\">\n";print "<input type='hidden' name='job' value='$con[counter]'>" ;print "<input type=\"submit\" value=\"apply\" />\n";print "</form> -please click apply to check eligibility and porceed<br /><br />";}}if($counter<1){echo "no job found in sales and shipping department<br />";}else{$results=$counter;$counter=0;}echo "<br /><br /><hr />";echo "<h3>Software Development Department</h3><br /><br />";while (list($index, $content)=each ($cod)){$check=strpos($content, $_POST['query']);if ($check>-1){$counter++;$con[$counter]=$content;echo "<br /><b> $content </b>";print "<form method=\"POST\" action=\"job.php\">\n";print "<input type='hidden' name='job' value='$con[$counter]'>";print "<input type=\"submit\" value=\"apply\" />\n";print "</form> -please click apply to check eligibility and porceed<br />";}}if($counter<1){echo "No jobs found in Software Development department<br />";echo "<br /><br /><font allign=\"right\"><i>total search results=".$results."</i></font> ";}else{$results=$results+$counter;echo "<p align=\"right\"><br /><br /><i>total search results=".$results."</i></p>";}?></body></html>----------here $_POST['query'] is a text field from another file . actually where i wanna show variables value is below... in <input---> jobs name>,, it is the same file where i got $_POST['query'] (at the bottom)......................................................................<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>  <title>Hello!</title></head><body><center><h2>job application form</h2></center><form method="POST" action="jprocess.php">Job <select name="job"><option>sales and shipping</option><option>developers</option></select>   <br />Job name (not required untill you are redirected from search)<br /><?phpif (isset($_POST['job'])){$a=$_POST['job'];echo "<input type='text' name='job' value='$a' />";}elseecho "<input type=\"text\" name=\"jname\" />   ";?><br />Work experience<input type="text" name="exp" />years<br />education (don't eve  have a collage degree select nun.)<br /><select name="edu"><option>collage degree</option><option>phd.</option><option>others</option><option>nun</option></select>                                                     <br /><input name="sub" value="Check Elegibility" type="submit" /></form><br /><hr /><?echo "<h3> search for jobs below</h3><br />";echo "<form method=\"POST\" action=\"jsearch.php\">\n";echo "search job by name\n";echo "<input type=\"text\" name=\"query\" />\n";echo "<input type=\"submit\" name=\"sub\" value=\"search\">";echo "</form>";?></body></html>