hey all,
sorry for the newb question but my host has global_variables OFF and for the life of me i cannot get a form to submit
can anyone see anything wrong with that and tell me why it wont submit??PHP Code:<?
if(isset($_POST['submit'])):
$info = isset($_REQUEST['info']) ? $_REQUEST['info'] : '';
$sql = "UPDATE tourney_admin SET tourney_info='" . addslashes($info) . "'";
$result = mysql_query($sql)
or die("Update failed.\n");
echo "Tournament info has been added/updated.\n";
else:
?>
<center><b>View/Edit Tourney Info</b>
<form method="post" action="index.php?action=info">
<textarea rows="15" name="info" cols="63" value="<?= $row['tourney_info'] ?>"></textarea><br>
<input type="image" src="/images/buttons/submit.gif" value="Submit!" alt="Submit!" name="submit">
</form>
</center>
<?
endif;
?>
when i click the submit button, all it does is refresh the page, but nothing goes to the database.
thanks for the help





Reply With Quote