Jump to content

ginerjm

Members
  • Posts

    6,906
  • Joined

  • Last visited

  • Days Won

    99

Everything posted by ginerjm

  1. Generally you get content from a page via a POST or GET that sends that page's input elems to the receiving script. That script takes its input and decides what to do with it, such as posting a db or making some decision as to what 'page' to send back to the client. You should really do some reading on how web apps work and how to navigate between the server and the client (user) and back. Forms and their input elements (tags) are a major part of the communication process.
  2. Out of curiosity, why do you need to get something from a page this way? Why not just output the specific value in an <input> tag that is stylized so as to appear as plain text (if necessary) and have the id on that? Wrap the table inside the form tag and let it come to your php script as part of the $_POST array. Then process it. Or write a JS function to process the id contents on submit and let the JS place the data into a hidden input element, to then be picked up again in the $_POST array.
  3. Apparently you don't want to make the effort to learn here, since I've told you exactly what to do. You haven't taken the time to examine what I described, have you? I'll help those who attempt to help themselves. You are just a copier. Sorry. Good Bye.
  4. Yes you can do an echo. As for how to get the $response var to that script I'd have to see how you are getting to it. Show how your pass control to index.php from the login process
  5. Why not do the same thing where you echo $response in the login.php in the index.php script.?
  6. Read thru your code but don't know what you are trying to do. Can you at least describe your goal. And - please define what you mean by page and form, just to be sure we agree.
  7. When you say only so much shows up, do you mean the rest is completely unavailable, or that the size of the image has increase so that one must scroll to view the full contents?
  8. Do we get part of your tuition for teaching you what you are supposed to be learning?
  9. Some very nice choices, but 'twas much more to the point: Bite The Bullet.
  10. Using MySQL_result was a needless resource eater and you should not have been using it in this particular case at all. If you are going to process the whole record you should be grabbing it in one call. How you 'catch' it is easily accommodated by using php's 'list' function which would have given you var names to use and you wouldn't have to have written your code this way. And despite your misgivings about your existing designs, you will have to migrate away from MySQL_* functions in the near future. Time to BTB.
  11. You really don't want to use JS to issue an error message from within your php script. That's why header doesn't work, which you would probably know if you had error checking turned on. Design your script to re-issue your page with an error message area that you can then populate with messages and re-display the page so that the user can make corrections.
  12. This forum helps those who help themselves. Being given already written code does NOT help you learn - it enables you to say you learned. This forum certainly can and does criticize - especially for those who show no inclination of learning how to write php or English. This forum also provides invaluable help for those who show us their code and ask for help with a clear problem. If you ever want to learn php and try and get a job with it, I suggest learning to write a clear sentence with properly spelled complete words - it will help you get that interview.
  13. We were all newbies once. Then we started learning by reading and writing code. THEN we asked for help. You have a client causing you do this thing that you have no idea how to do? You just might want to start learning English if it's your native language.
  14. If you read the manual you'll get a complete understanding of how an & works in front of a variable name in other circumstances as well.
  15. You know - the PHP manual is just great for finding out how to do things. A quick check in there found this: foreach ($r as &$result).... to update the value clause of a foreach statement.
  16. Sounds to me then like you took on a project that you weren't qualified for.
  17. Before you try to do any programming it would be good for you to do some reading and take the time to learn how php works and learn the basic idea of php coding. I'm not going to give you this little tiny piece of help when you obviously will only need more if you don't begin to educate yourself properly.
  18. to WebStyles: - love it! to the slacker: If this is a homework assignment, I suggest that you either go back and read your books and practice on your previous assignments so that you can get to the point where you can keep up with this and future assignments. Either that or just quit the course and take the F.
  19. I already gave you your answer - why do you give us all this code that nobody in their right mind is going to wade through?
  20. You have both php code and plain old html here. Did you want to separate them by closing your php perhaps?
  21. Now I see. But - Mac_Gyver has already answered you.
  22. How about saving us some time and showing us the specific code that typifies your problem? I hate wading thru other's code without understanding anything that is going on.
  23. Probably not. When you can write decent English, then try programming.
  24. Well, camelCase is what got the OP in trouble here. My preference is to keep 'em short and use _ scores. I'm wicked with that 3rd finger.
×
×
  • 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.