Jump to content

ginerjm

Members
  • Posts

    6,906
  • Joined

  • Last visited

  • Days Won

    99

Everything posted by ginerjm

  1. Maybe I'm looking at your code wrong. Can you post line 91 here?
  2. Half you site disappears? Or half of your current page? Line 91 is telling you that you have no input element named 'service' in the form that you submitted.
  3. I thought he meant it was too hard to read the manual....
  4. Well, keep scratching.
  5. We can solve your problem right now but then when you have another problem, where will you be? Read the manual where it discusses how to use the mail function and you will be as smart as us when it comes to using mail().. Where will that put you? You make it sound like such hard work.....
  6. So why not just check for ''?
  7. It would help if you posted some code since that's what we do here - help people fix their code, not write their systems. Hopefully you write code better than you write English. I counted 4 spelling errors, and a half dozen punctuation errors (important not to do with PHP) and a slew of grammatical errors.
  8. ok - so what do you want to do? Look for stop words in the input and echo them back to the user? Why?
  9. huh? wassa a stop word?
  10. Or maybe the OP could modify his own code now that someone debugged it for him?
  11. As Mac_gyver aptly pointed out you are confusing yourself with your coding practices. Separate the php from your presentation code (html) and handle the inputs and functions to run the query upon receiving the proper submit from the form. What you have shown us is impossible to understand and I'm sure it is not making much sense to you as you try to figure out what is wrong. As for your execution problem, I think your confusion is that you have created a button to trigger the query but you don't have two things: 1 - a form to contain the inputs and to trigger the script to do your query 2 - a submit element to trigger the form. You are using a type='button' element expecting something to happen in php which won't occur until you submit the data via a form element. Unless you are planning on doing this thru JS and Ajax, which I highly doubt.
  12. Am I hearing that you want us to help you pull an email address out of the body of some text from the form? Basically, that the 'other' email address is not coming to your script as a distinct element that you can simply add to your headers? UPON FURTHER REVIEW: I see now that you are posting the other email value($Email) to the body of your mail. Assuming that this is after you have processed the form and are preparing to send the mail, you REALLY need to read the manual as I suggested to see where you ought to be placing that variable, assuming that you have properly vetted it as valid input.
  13. Could not the problems be the existence of <p>...</p> tags inside of table elements? Even more likely, the lines that include ONLY a </p> tag in a <td> element could be a problem. What is the point in using a p tag inside a td one? Seems like a lot of needless html, but of course the specs probably say it is much needed and that still confuses me.
  14. The php manual is pretty clear on how to send CC and BCC of your mail. Why not read it and get a handle on using mail() ? Example #2 is especially detailed regarding your needs.
  15. explode the string on the dots then compare the first element to a value and then the second element and so on. 168.192.12.21 would end up as array[0] = 168 array[1] = 192 array[2[ = 12 array[3] = 21 If you wanted to eliminate ips that look like "168.192.22.xxxx" you would compare the 0 element to 168, the 1 element to 192 and so on.
  16. And why is that? IF you are comfortable with trusting the address you are getting and wish to base your decision on it, then checking it against a list of 4 digit or 8 digit or 12 digit prefixes shouldn't be a problem.
  17. If you don't want certain ip s to be voting, then simply check before tallying the vote and send them back a nice message.
  18. you know - if you want help you have to show us the code.
  19. Just because YOU want to add a new piece of data to your email does not mean you can alter the syntax of the function call. The manual will show you what the arguements of a function are and that's the way it is. To add a piece of information to your email you probably want to put it into your message area. Think about it.
  20. So that means your setting is not taking effect. Have to bring it up with your host. It's not godaddy, is it?
  21. Can't hurt to check your attempt to set it correctly. You can also try this: After the date_default_..... command insert these lines. print_r(phpinfo()); exit(); I would then save this entire script under a new name (in new folder?) and test it out before deleting it. (You don't want the world to see the output of this) Once you have the output onscreen, do a find for 'timezone' and see if your setting appears.
  22. My point was: You should check the outcome of the timezone set command to see if it worked or not. That could explain why your time is off by an hour. The default is UTC (or GMT) and that is probably one hour behind you in Belgium, no?
  23. That setting returns a Boolean value. Test it and be sure it's happening. Does your host allow you to modify the .ini file or are you hosting yourself?
  24. HTH! For future reference (and learning) - you need to study the manual (or some php language reference) and pick up on the syntax errors that were pretty pervasive in your code. The PHP manual is your best reference for looking up on how to use each function in PHP so you should make that link a shortcut cause you will find a need for it constantly. (I still do after almost 4 years of using php.) And most importantly - get rid of any reference to 'MySQL*' functions in your mind. Everything needs to be "mysqlI" or "pdo" now. Good luck in your future devl projects
  25. This is all a guess. But if that is truly the problem (did you installation recently do a major upgrade?), then each file will have to be edited by hand unless you have a tool that will do this for you.
×
×
  • 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.