pick the fights Posted November 18, 2011 Share Posted November 18, 2011 somebody wrote this script for me. it allows my users to submit some text that shows kinda like a forum post. problem is, when they submit it, it uploads to the database, but does not show on the webpage unless i manually refresh the page after it is submitted. i would like it to show once the submit button is clicked just like it does on forum replies and such. Here is the code he wrote, i'm hoping someone can tell me what to add to it or take away from it or what to change to make it work. thanks, <iframe src="http://pickthefights.com/smack/?id=<?php echo $idvar; ?>&smack=yes" width="300" height="100">;Your browser does not support iframes.</iframe> <form name="smack" method="post" action="http://pickthefights.com/smack-reg/" target="_blank" name="smack" > <input type="hidden" value="<?php echo $_SESSION[uid] ?>" name="session" > <input type="hidden" value="<?php echo $idvar ?>" name="idvar" > Smack Talk : <input type="text" name="comment" > <input value="Smack" type="submit" name="smack"> </form> this is also part of the code: $_SESSION[uid]=$uid; $pool_id = mysql_insert_id(); $idvar = $_REQUEST["id"]; $smackvar = $_REQUEST["smack"]; $allvar = $_REQUEST["all"]; $event_id = $_POST['event_id']; $fight_id = $_POST['fight_id']; $fighter = $_POST['fighter']; $game_type = $_POST['game_type']; $end_event = $_POST['end_event']; $game_type = $_POST['game_type']; $roundpicks = $_POST['roundpicks']; $methodpicks = $_POST['methodpicks']; Link to comment https://forums.phpfreaks.com/topic/251394-help-with-making-a-submit-butto-autorefresh-a-page/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.