<form action="results.php" name="Search" method="post">
<label>Search by Last Name:</label> <input class="inputbox" type="text" name='lastname'>
<input class="button" type="submit" value="Search" name="lastnamesearch" />
</form><?php
$conn = oci_connect ('TBEETS', '********', 'oradev');
$curs = oci_new_cursor($conn);
$sql = "begin :output :=TBEETS.USER_PKG.SELECT_LAST_NAME(:VAR_LAST_NAME); end;";
$stmt = oci_parse($conn, $sql);
$LAST_NAME="BEETS";
oci_bind_by_name($stmt, ":output", $curs, -1, OCI_B_CURSOR);
oci_bind_by_name($stmt, ":VAR_LAST_NAME", $LAST_NAME);
oci_execute($stmt);
oci_execute($curs);
while ($row = oci_fetch_array($curs, OCI_ASSOC + OCI_RETURN_NULLS)){
$output[] = $row;
}
oci_free_statement($stmt);
oci_free_cursor($curs);
oci_close($conn);
I need help with results.php to display a row with the last name that is being searched. Not sure how to get the 'lastname' to match the variable LAST_NAME