thomasw_lrd Posted October 17, 2011 Share Posted October 17, 2011 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 More sharing options...
xyph Posted October 17, 2011 Share Posted October 17, 2011 Perhaps a fatal error in one of your includes that's not being displayed? ini_set('display_errors',1); error_reporting(-1); Link to comment https://forums.phpfreaks.com/topic/249284-solved-something-stupid-im-sure/#findComment-1280058 Share on other sites More sharing options...
thomasw_lrd Posted October 17, 2011 Author Share Posted October 17, 2011 You sir are a genius. That was it. Thank you so much. What's the best way to mark a thread as solved? Link to comment https://forums.phpfreaks.com/topic/249284-solved-something-stupid-im-sure/#findComment-1280061 Share on other sites More sharing options...
xyph Posted October 17, 2011 Share Posted October 17, 2011 There's a button at the bottom (I think) to do it. Link to comment https://forums.phpfreaks.com/topic/249284-solved-something-stupid-im-sure/#findComment-1280063 Share on other sites More sharing options...
jcbones Posted October 17, 2011 Share Posted October 17, 2011 Bottom right of the thread, there is a button to mark it solved. Link to comment https://forums.phpfreaks.com/topic/249284-solved-something-stupid-im-sure/#findComment-1280069 Share on other sites More sharing options...
Pikachu2000 Posted October 17, 2011 Share Posted October 17, 2011 Since it's too much trouble, I'll click the button for you, thomasw_lrd. Link to comment https://forums.phpfreaks.com/topic/249284-solved-something-stupid-im-sure/#findComment-1280078 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.