here is my function.when i click on the readp button,it will show undefined variable,but still can show out the string in txt file.
<?php
if(isset($_GET['readp'])){
readinfo($fname,$lname,$phone,$email,$mname,$gender,$city,$country,$fax,$exp);
}
?>
<?php
function readinfo($fname,$lname,$phone,$email,$mname,$gender,$city,$country,$fax,$exp){
$info=file('log.txt');
for($i=count($info)-1;$i>=0;--$i){
echo cleanOutputData($info[$i])."<br>";
}
}
?>