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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.