Results 1 to 5 of 5

Thread: anyone any good at php?

  1. #1
    Join Date
    Oct 2006
    Location
    kinross, Perth, WA
    Posts
    1,573
    Total Downloaded
    0

    anyone any good at php?

    Hi guys

    Just need a bit of a hand with a php script... its basically a form mailer.. everything is setup it just appears that when using multiline text in a textarea box on the form the validation fails saying invalid characters... even though it is meant to ignore them....

    Any help would be appreciated!

    Thanks

    Steve

  2. #2
    dmdigital's Avatar
    dmdigital is offline OldBushie Vendor

    Gold Subscriber
    Join Date
    Jun 2006
    Location
    Arnhem Land, NT
    Posts
    8,492
    Total Downloaded
    0
    First thing I'd check is you have all the (, ), " & ' closed. Sounds like a syntax error. My php is fairly rusty.
    MY15 Discovery 4 SE SDV6

    Past: 97 D1 Tdi, 03 D2a Td5, 08 Kimberley Kamper, 08 Defender 110 TDCi, 99 Defender 110 300Tdi[/SIZE]

  3. #3
    Join Date
    Oct 2006
    Location
    kinross, Perth, WA
    Posts
    1,573
    Total Downloaded
    0
    Hi DM

    I have got round it by removing the \n \r out of the validation checks.. unfortunately i would like to get them back... as im sure they are there to stop spam usage of the script...

    is your php rustier than my complete incompetence at code? im new to all this and am bumbling my way through!

    Thanks

    Steve

  4. #4
    Join Date
    Apr 2009
    Posts
    68
    Total Downloaded
    0
    \n and \r are control characters that tell what ever displays the text to add in a new line. Depending on how your script looks at your text as to weather it sees them as escape characters or as string charaters. try changing your validation script from looking for escape charaters:

    '\n' = newline (LF)
    '\r' = carriage return (CR)

    to looking for a \ character and a letter with '\\n' and '\\r' the leading backslash (\) cancels out the slash as a start of a escape character and makes it a regular backslash.

    Hope that helps.

  5. #5
    miky Guest
    Better off on a php forum...

    Either way, you are going to have to post up some code. Bit hard to figure out if it is a syntax error or something else without seeing the code.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search AULRO.com ONLY!
Search All the Web!