Jump to content

Solved. Something Stupid, I'm sure


thomasw_lrd

Recommended Posts

I'm sure this is just a stupid mistake, but can someone please help me figure it out? 

 

I have one page with a dropdown that is populated from our database, I have submit to pull through to the next page but nothing shows up on the next page (app/approval).  I've tried adding some echo statments, but they all show up blank. 

 

<?
require ('includes/getconfig.inc');
require ('includes/auth.inc');
require ('includes/dbfunctions.inc');
include (dirname(__FILE__).'/../includes/menuhead.inc');
include ('apptable_functions.inc');

$sql="SELECT pol_id, pol_policy_number FROM policies";
$result=myload($sql);
$items = count($result);
$options="";

for($x=0; $x<=$items; $x++) 
{
$id=$result[$x]['pol_id'];
$thing=$result[$x]['pol_policy_number'];
    	$options.="<OPTION VALUE=\"$id\">".$thing;



}
?>

Select a case number to see the payout approval.
<br>
<form action="app/approval.php" method='post'>
<SELECT NAME=pol_policy_number>
<?=$options?>
</SELECT> 
<input name="Submit" type="submit" Value="Submit Policy Number"/>
</form>
<br>

<?
require ('includes/getconfig.inc');
require ('includes/auth.inc');
require ('includes/dbfunctions.inc');

$pol_number = $_POST['pol_policy_number'];

echo "$pol_number";
?>


Link to comment
https://forums.phpfreaks.com/topic/249284-solved-something-stupid-im-sure/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.