Jump to content

Click Submit - Updates DB and Refreshes IFrame??


markvaughn2006

Recommended Posts

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

I'm don't really understand that.. :confused:

 

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

 

Archived

This topic is now archived and is closed to further replies.

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