shadiadiph Posted December 28, 2008 Share Posted December 28, 2008 How can I make the page reload without using javascript once an item has been selected in a drop down select box on a form? <form name="postad" method="post" action='submidad.php'> <tr><td><h1>EDIT AD Ref <?=$id?></h1></td></tr> <tr><td> <table class="postadmain"> <tr><td> </td></tr> <tr><td><span id="t_cat">CATEGORY</span></td></tr> <tr><td> <? $sql01 = "select * from tblcatdetails"; $run_query = mysql_query($sql01); echo '<select name="category"><option name="category">Select One</option>'; while($row = mysql_fetch_array($run_query)) { echo '<option value="'.$row['intCatID'].'">'.$row['category'].'</option>'; } $selected =$row['intCatID']; header ("location: test.php?subid=$selected"); exit; ?> </td></tr> Quote Link to comment https://forums.phpfreaks.com/topic/138665-solved-can-you-make-the-page-reload-once-an-item-has-been-selected/ Share on other sites More sharing options...
MadTechie Posted December 28, 2008 Share Posted December 28, 2008 Well without javascript your will need another controller, you could create an activex control or flash.. Why the dislike for javascript ? what are you trying to do ? Quote Link to comment https://forums.phpfreaks.com/topic/138665-solved-can-you-make-the-page-reload-once-an-item-has-been-selected/#findComment-724996 Share on other sites More sharing options...
shadiadiph Posted December 28, 2008 Author Share Posted December 28, 2008 somebody advised me not to use javascript for those people who have javascript turned off but if it is necessary then i will but not sure how to? ;( Quote Link to comment https://forums.phpfreaks.com/topic/138665-solved-can-you-make-the-page-reload-once-an-item-has-been-selected/#findComment-725013 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.