markvaughn2006 Posted September 20, 2009 Share Posted September 20, 2009 How would I go about making an IFrame named Action refresh when a submit button is pressed?? Here is the code in question <?php if ($item1 == "empty") { echo "Empty"; } else { echo '<form target="actions" method="post" action="equip.php"><input type="submit" value="Equip" />'.$row['item1'].'<input type="hidden" name="equip" value="'.$row['user_name'].'" /></form>'; } ?> Thanks!! Link to comment https://forums.phpfreaks.com/topic/174937-click-submit-updates-db-and-refreshes-iframe/ Share on other sites More sharing options...
redarrow Posted September 20, 2009 Share Posted September 20, 2009 action="equip.php?go=refresh" <?php if($_GET['go']=="refresh"){ echo "<meta http-equiv='refresh' content='0;url=what_ever_page_you_like.php'>"; } ?> Link to comment https://forums.phpfreaks.com/topic/174937-click-submit-updates-db-and-refreshes-iframe/#findComment-921945 Share on other sites More sharing options...
markvaughn2006 Posted September 21, 2009 Author Share Posted September 21, 2009 I'm don't really understand that.. Is there a simple refresh command? Ideally I would want to do it like this (assuming there is a refresh command named REFRESH) If there is an actual refresh command it would replace REFRESH in the example below.. <?php if ($item1 == "empty") { echo "Empty"; } else { echo '<form target="actions" method="post" action="equip.php"><input type="submit" value="Equip" />'.$row['item1'].'<input type="hidden" name="equip" value="'.$row['user_name'].'" /></form>'; REFRESH; } ?> Any idea?? Thanks!! Link to comment https://forums.phpfreaks.com/topic/174937-click-submit-updates-db-and-refreshes-iframe/#findComment-922366 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.