Jump to content

Help with making a submit butto autorefresh a page


pick the fights

Recommended Posts

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