Jump to content

Recommended Posts

yes tryed that no luck same errors

 

You really need to stop and take a look at the process.  There is no id value.  You have:

 

<input name="id" type="hidden" value="<?php echo 'id'; ?>" />

 

Which if you look closely, will simply echo the word 'id'.  This is probably not what you want, and is most likely a typo.

 

That typo aside, you still wouldn't have an id value because you never set one in your code before the form is displayed.

 

You need to slow down and map the process you're trying to create by hand before attempting to code it.  Pen/pencil and paper.  Really.  You have a glaring logic error you need to fix.  You also clearly need to learn about POST, GET, and what their differences are, as the lack of that fundamental understanding is part of your problem here.

Hi i now that and you mite think im mad but followed tut from youtube all the rest of it worked apart from this its not as if im not trying to fix it so i understand but with comments like that how do's that help.

 

Many thanks Daz..

 

I'm trying to help you by steering you in the right direction to learn what the code actually means.  Copying code isn't going to teach you how to program.  You need to be able to know what it is you want to do, and then figure out the code necessary to do it.  I've gone just about as far as I can short of writing your code for you.  Maq and I have explained exactly why you're getting an error, and what you should learn in order to fix it. 

 

Your issue is larger than something that can be solved by changing a line of code.  Your script has a fundamental logic error.  This error has been explained.  It's up to you to take that explanation and figure out how to apply it to your script.  We can't do it because we don't know what your id is supposed to represent nor how it's supposed to be generated.

 

Finally, if you're going to learn PHP, the best free resource is the online manual: http://www.php.net/manual/en/langref.php

If English isn't your native language, you can pick which locale is best for you: http://www.php.net/docs.php

 

That said, you should still probably invest in a good book or two, just to see different ways to go about solving common problems, and to reinforce what you learn.

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.