MDanz Posted September 27, 2009 Share Posted September 27, 2009 <?php $id = $_GET['id']; $change = "<form enctype='multipart/form-data' action='insert10.php' method='post' name='changer'> <font color=#FF6600 font face=Arial font size=2>Change background</font><br> <input type='text' name='change' value='' size='20'> <input type='hidden' name='id' value='$id' size='20'> <input type='submit' name='background' value='Submit' style='font-size:10px'></form>"; echo "$change"; ?> the form is working but the below isn't.. $username1 = $_SESSION['username']; $change = mysql_real_escape_string($_POST['change']); $id = mysql_real_escape_string($_POST['id']); $query= mysql_query("UPDATE suscribed SET image='$change' WHERE username='$username1' AND id='$id'") or die (mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/175714-solved-help-with-form/ Share on other sites More sharing options...
Alex Posted September 27, 2009 Share Posted September 27, 2009 What do you mean by 'not working'? You should try to be more specific; it'll help us help you more effectively. Quote Link to comment https://forums.phpfreaks.com/topic/175714-solved-help-with-form/#findComment-925930 Share on other sites More sharing options...
redarrow Posted September 27, 2009 Share Posted September 27, 2009 Also when you fix something, please show us, we also like to learn? Quote Link to comment https://forums.phpfreaks.com/topic/175714-solved-help-with-form/#findComment-926014 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.