kev wood Posted November 21, 2008 Author Share Posted November 21, 2008 well am i not listening now that is nice is it. if i wasnt listening how i have ended up posting answers to your questions so often. at the top of my page i have this code echo "$id"; and guess what it echo's out at the top of the page when it first loads as i have said. the id number which is sent from the previous page whci on the occasion was the number 2. it process the image upload and and the ver id then become null. Quote Link to comment https://forums.phpfreaks.com/topic/133651-will-not-update/page/3/#findComment-695517 Share on other sites More sharing options...
kev wood Posted November 21, 2008 Author Share Posted November 21, 2008 here is where id2 comes from echo "<h2>Edite the image</h2>"; echo "<form action=\"$page\" method=\"post\">"; echo "<input type=\"hidden\" name=\"dropdown2\" value=\"$db\" />"; echo "<input type=\"hidden\" name=\"radio2\" value=\"$table\" />"; echo "<input type=\"hidden\" name=\"id2\" value=\"$id\" />"; echo "<input name=\"Submit\" type=\"submit\" value=\"Update Image\" />"; echo "</form>"; Quote Link to comment https://forums.phpfreaks.com/topic/133651-will-not-update/page/3/#findComment-695520 Share on other sites More sharing options...
Maq Posted November 21, 2008 Share Posted November 21, 2008 I didn't understand half of what you just said. You need to have: $id = $_POST['id2']; at the top of your page before you submit. Quote Link to comment https://forums.phpfreaks.com/topic/133651-will-not-update/page/3/#findComment-695522 Share on other sites More sharing options...
xangelo Posted November 21, 2008 Share Posted November 21, 2008 Are you're sure id2 has a value? would you mind echoing $id AFTER setting $id = $_POST['id2']? Quote Link to comment https://forums.phpfreaks.com/topic/133651-will-not-update/page/3/#findComment-695523 Share on other sites More sharing options...
gevans Posted November 21, 2008 Share Posted November 21, 2008 I'm sorry kev, but that can't be true, it's a new page and you have to assign that variable, it won't just be there. put $id = 2; at the top of the page and it will work, once you believe what I'm telling you we can go on and fix the rest of it. Quote Link to comment https://forums.phpfreaks.com/topic/133651-will-not-update/page/3/#findComment-695525 Share on other sites More sharing options...
kev wood Posted November 21, 2008 Author Share Posted November 21, 2008 i will come back to it monday i should have left work over an hour ago my manger is looking at getting off himself now. thanks for all your help on this even if some of you started to get frustrated with the lack of an answer to this question which i feel was uncalled for. please remember patience is a virtue that not all of us have. Quote Link to comment https://forums.phpfreaks.com/topic/133651-will-not-update/page/3/#findComment-695538 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.