Jump to content

AyKay47

Members
  • Posts

    3,281
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by AyKay47

  1. they work fine for me in I.E. what version are you using to view your website?
  2. AyKay47

    Hello

    welcome to phpf
  3. If you refresh a page with post variables most modern browsers will ask if you want to repost the page. and the average user does not know what that means and will cancel
  4. $sql = "SELECT * FROM users WHERE hub='2' AND status IN ('1','2','3','4') ORDER BY pilotid ASC"; would be my preferred method here
  5. you can use $_POST values...however that method is not full-proof and will rely on the user not refreshing the page by accident or something along those lines..
  6. really it will have no effect since your if statement is based upon the condition of the mail function resulting in TRUE...perhaps just a coincidence.. EDIT: As Thorpe said before me
  7. i myself prefer the functionality of DewPlayer
  8. AyKay47

    help

    have you tried googling for this? there are hundreds of resources on this topic..
  9. you can set the user info to sessions and set the input values to the sessions...so if the user has not filled out any info..the value will be empty...however if they have filled out info, the input value will be set to that info...that way if they are redirected back the the form, their info will remain intact..however make sure that you unset the sessions upon form completion
  10. from the actual URL you wont be alble to display an image using the url as the source.. however if you know that actual path to the image..you can use CURL
  11. well what exactly is happening here, i'm assuming that you aren't receiving any errors? I also assume that your error_reporting is set to E_ALL offhand I would think that it has something to do with your connection if your queries are not working properly...however an error would be triggered if that were the case...
  12. AyKay47

    delete

    $pilotid was probably empty or something..
  13. this made me
  14. its really up to you as to what you want to change and what you don't want to change.. function doSomethingElse extends doSomething() { piblic $firstline = "<p>Hello</p>"; $second_line = parent::secondline}
  15. okay here is what I came up with for you... as far as your search engine regex is concerned..all you really need to do is search for the words google, yahoo, bing etc... all of the other regex code is not really necessary... Now to your keywords issue, here is the code that I came up with that will isolate the p or q value $pattern = '~&[q|p]=([^&]*)~' hope this helps
  16. most likely because there are spaces and newlines that will break your expression... the " . " character will not match spaces or newlines by default, so a modifier is needed to allow it to match these cases.. $pattern = '/^(.*?)\$(.*?)\[(.*?)\](.*)/s'; //adding the s modifier will allow .* to capture spaces and new lines as well
  17. no problem...
  18. if you do not receive an error then you should be receiving the email, check you junk/spam folder as well
  19. Gizmo, I think that the OP was trying to distinguish that that is the start of line 7. if you look to the left the numbers go from 6. to 8... just a guess though.. you will want something like this.. $pattern = '~src=\s*http://www\.[a-zA-Z0-9_-]+\.[a-zA-Z]{2,4}/[a-zA-Z0-9_-]+\.[a-zA-Z]{3,4}~'; $subject = '<![CDATA[<p>blah blah blah blah blah</p><a href=http://link.com><img 7.src= http://www.linktoimage.com/link.jpg/></a>'; preg_match($pattern,$subject,$matches); print $matches[0]; will contain your img source
  20. id's are unique, you cannot give multiple anchors the same id and expect this to work, I suggest giving them a specific class and grouping them that way
  21. if you change to the code that I have provided, what errors do you receive in your error.log? If this is a mail() error, something will be sent to the error.log about it..
  22. hey guys, just a quick comment about something I have just noticed.. On the homepage of this website, the search text is displayed a bit lower than the actual input field...I am using google chrome..
  23. then at the top of the file that you are using the function you will need to insert.. <?php session_name("treats"); session_start(); include 'path/to/functions.php'; ?>
  24. mail($to,$subject,$message,$headers) or die("An error has occured. Please contact the webmaster with the following error: " . mysql_error()); the mail() function would not report a mysql_error...you can do something like this instead.. if(!mail($to,$subject,$message,$headers)){ trigger_error("An error has occurred in the mailing process",E_USER_ERROR); } also, I do not see a forgotPass1.php in the code you provided
×
×
  • 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.