Jump to content

SetLar8

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

SetLar8's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I have just been playing around with this and have come up with this statement which seems to work: eregi("([a-z0-9-]+)$", $domain) Can someone tell me how the "()", "[]", "+" and "$" are affecting this. Thanks.
  2. Hi, I currently have a form that requires the user to enter a domain and then select the extension from a list. e.g. domain = phpfreaks extension = .com I have been trying for over a day to create an ereg statement for this but just cannot do it. I need the ereg statment to check for following in the domain variable 1. A Domain Name can contain only English letters "a-z", numbers "0-9" and a hyphen "-". 2. The domain name must start and end with a letter or a number. Hyphens can not be located at the end or the beginning of a name. 3. You can not use spaces. 4. A domain name is not case sensitive. If anyone can help me with this i would be very greatful, also if you can point me to a site for beginners of ereg statements. I would say my general php programming level is advanced but i cannot get my head around ereg. Thanks.
  3. Hi, Does anyone know of a site that will show me how the directi php api works with examples. I have used the examples included in the api download its self but these are to complicated to understand. I would be really greatful for some help with this. I have seen this site with a live example but am unable to get access to the php file: http://nubknacker.com/test/directi/directi2.php?customerid=534801
  4. Hi, Following the above i have found the following: When i submit the message first time there is only 1 backslash "\'" But when i pass the variable to another page 2 more are added. You can check this out here: [a href=\"http://www.maxiehost.com/uk/support.htm\" target=\"_blank\"]http://www.maxiehost.com/uk/support.htm[/a] When entering the message click send, on the next screen you can see the message with only one backslash for each single quote. when you enter the verification code and submit there are then 2 more added to each single quote.
  5. Hi, I thought of that but it doesnt work. It will accept "\\" but not "\\\", try it in dreamweaver. I really cannot understand it, any more help will be really apreciated.
  6. no, that didnt help. Any other ideas? Thanks for your help anyway
  7. Hi, I have this same problem and am using the nl2br function. But if someone sends a message with one or more single quotes in it i get the following: typed in textarea: foo isn't bar displayed in HTML: foo isn\\\'t bar For some reason 3 backslashes are added before the quote every time and this happends to every quote in the message. e.g. He's it's she's = He\\\'s it\\\'s she\\\'s How can i stop this properly? Thanks.
×
×
  • 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.