Jump to content

ginerjm

Members
  • Posts

    6,906
  • Joined

  • Last visited

  • Days Won

    99

Everything posted by ginerjm

  1. Where do declare the object that you created when you connected to the db? Each of these calls needs to be attached to something. RT(F)M. You should be showing the connection call as well as the prepare call.
  2. Then maybe you need to find a forum that pertains to that product. I never heard of it much less no how to program around it.
  3. Plus - your script is confused as to where it is. You begin by outputting your form (with problems) and then you ask if the POST has been created. Obviously it has not so you won't see any echo there. The PHP code should always be at the beginning of your scripts and your html at the end after all of your logic has had a chance to execute. In your case if no POST has been received yet then you need to send out the blank form and exit. If it has, that's when you check what has been sent back and send out your echos or whatever results you generate and then exit.
  4. I don't know what "runner_mail" is, but the code itself seems pretty ok. Be sure that your "from" email is using your domain name so that your mail doesn't look like spam
  5. You set up what errors you wanted to see but you didn't actually turn it on to see in your client. error_reporting(E_ALL); ini_set('display_errors', '1');
  6. Don't know what code you are referring to. Would be nice if you posted that block so we all know what you are looking at.
  7. The better way to "style HTML tags" (not php ones) is to use formal css code placed into the HTML <style> tag section of your html code. That way you don't have to place attributes into multiple places in your html. You can style similar things by defining CSS code for a tag name (ie, td, tr, p, span, whatever) and then referencing that css id name like this: in the head tag section add <style type='text/css'> #style1 { padding: 4px 6px; margin:1%; } and then in the html: <div id='style1'>
  8. Build the message while looping thru your query results. THEN fill out the email and send it. Simple, huh?
  9. How about "echo $obj2"; ??
  10. IF you are not planning on having the server do the work for you and then re-displaying the page, then you definitely will be using JS.
  11. I am telling you the solution. Use prepared queries. What? You are going to give your friend a half-solution because you don't want to make some changes? Whether he is handicapped or not is the problem. You have told us the problem. I do think we are telling you how to solve it.
  12. And that is one great reason for using prepared queries. Look it up in the manual and change your 'save' queries to use prepared statements. That will solve half your problems. You will then have to handle the output features
  13. You have a function that does not much but call another function which apparently returns this link of yours. What a waste of two functions. Why not just write the link in your code and remove those two functions? Or Show Us This 'L' function's code? (what a horrible name for a function!)
  14. so does that mean you aren't going to share your problem code with us? Clicking on links is not something that everyone likes to do, that's why we have the handy link (<>) to place pasted code into here. And again - only that portion that you can't figure out, not the whole thing.
  15. Are you really trying to code using your phone? Seems like you are adding an extra degree of difficulty to your already-difficult situation.
  16. ARe you using a POST or GET in your form? Whichever it is, change all of your references from $_REQUEST to the PROPER one. That will be a good start. And then show us some of your code so that we can do your work for you.
  17. So - have you added some debugging code to the script to find out what exactly it is accomplishing? Some echos to track the progress of the script? How far it gets? AND - do you have any error checking turned on and any checks of results of your queries perhaps? This is why people code in error checking so they can see right away where a script is going wrong. Obviously you haven't done this or you would be seeing some of your messages. BTW - usually people post code here. Not all of it, but the parts that seem to be the trouble areas.
  18. HTH! And - switching to phpmailer is a very smart move. The old PHP mail() function didn't really give you a good result when there were errors. PHPmailer is much better and much easier to use when you want to do different things with emails like adding attachments.
  19. If the 'from' address from the same domain as your site is running on? IIRC you can't use a 'foreign' from address outside of your domain.
  20. As long as you code that strange path in a single place that is reachable from every script that needs it. You wouldn't want to have to go looking for all occurrences of it if it needed to be altered. And if your string "relative path pointer" is simply a substitute for whatever path you are going to place there. If not, it needs a $ sign
  21. As Kicken says..... Just remember that any modifications you make to fields in form A will be lost if the user submits form B. Those inputs (from the A form) will not be sent to the server as part of the submit normally. Nor should they be. Of course - each of your multiple forms should have the very same field 'names' so that your logic will handle each form properly.
  22. And are his mocks the kind of tests that a hacker would be doing? Black box testing is something that everyone does just to ensure that the algorithm is correct and that the code is doing what the designer wanted it to be doing. A basic necessity of writing code. What your expert is doing is the hard work of protecting your site/files/dbs/etc. from truly malicious happenings and I understand how it could seem different to you, but it is a true necessity.
  23. So you are saying that all of your 'files-to-be-included' exist elsewhere and not on the domain server that you are running on? An odd situation it seems to me.
  24. Where is $person_web_twitter coming from? I don't see it getting any value here. Plus - you probably don't want to burden your class methods with direct output like your echo of a message. You should design the method to return a value and then use a different method to do your insert.
×
×
  • 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.