Author |
Message |
D11
Elite Baiter
Joined: 02 Jul 2006
Posts: 1702
|
Posted:
Mon Mar 30, 2009 12:05 pm |
|
This is driving me nuts.
Code: |
if (!preg_match('!^[^a-zA-Z0-9]+$!', $username) == 1 ) {
die('Found something other then a number or letter.');
} |
Quote: |
You asked for the name to be checked = dsagae64£Q%\"£
it is fine |
Code: |
if (preg_match('!^[^a-zA-Z0-9]+$!', $username) == 1 ) {
die('Found something other then a number or letter.');
} |
Quote: |
You asked for the name to be checked = dsagae64£Q%\"£
it is fine
|
Why isnt it doing what its supposed to and checking the string - the first one should trip out at the £ ( if not a-z or 0-9 ) or the second one should trip out at the d
one says if NOT got a-z0-9 the other says if only a-z0-9
But it has to be something im doing wrong, but i cant see where. It should tell me that the name dsagae64£Q%\"£ is invalid |
_________________
1x 0x
Click here to support 419Eater.com
I make software that drives lads crazy. Thats my revenge on lads. (it all helps)
this transaction is 100 percent risk/hitch free - bobo
why no pay me - abum bello
because the cops will know it was you - me
ok this is good - abum bello |
|
|
|
Slightlyoutofit
Baiting Guru
Joined: 13 Feb 2007
Posts: 14310
Location: Foraging for Nuts.
|
Posted:
Mon Mar 30, 2009 1:35 pm |
|
^^ Yeah.
That would piss me off too. |
_________________
God will see you true for all this you have done to me you bastard. - Collins Kalu
MAY THE HAND THAT TYPE ON KEYBORD BECOME STRICKEN AND TRANSMIT VIRUS TO YOU ENTIRE BODY. - Dr Linda Akeem
oh what a mess its time cabbage punks like u will be expose for trully what they are. - David Cole |
|
|
|
Nurse Nasty
Baiting Guru
Joined: 31 Aug 2005
Posts: 7251
Location: Australia, where a dingo stole my eski
|
Posted:
Mon Mar 30, 2009 1:50 pm |
|
|
|
|
Casual Occurrence
Master of Master Baiters
Joined: 25 Dec 2007
Posts: 529
Location: Around here....somewhere.....
|
Posted:
Mon Mar 30, 2009 2:32 pm |
|
Not sure what language you're using there, but in java and similar you would need commas to separate (What I am assuming are) the arguments there:
Ah, the 'joys' of programming, I remember this feeling well. I feel for you. |
_________________ x48; x10 x7; fake checks: $592,854.89 USD ==> Biggest Fake check: $450,000.00
"When I die, I'm leaving my body to science fiction." - Cathartic Kate
IF YOU MEET THIS MAN ON GROUND YOU WILL NOT BE ABLE TO RAIN ABUSES ON HIM...I WOULD ADVICE YOU READ AND TRY TO UNDERSTAND HIS E-MAILS VERY WELL BEFORE YOU START INSULTING HIS PERSONALITY. - Rev. Niklas
Thank you for your Undiluted Assictance and we hope to have a Lasting business relationship with you. - Hou Weijun
YOU ARE A F***ING BASTERD!!! - [Account reported] Dr. John E. Telex/Foreign Remitance Department
<a href="/forum/viewtopic.php?t=159622">Getting into collecting accounts from ASEMs? For a breakdown of a simple example bait: Click Here</a> |
|
|
|
GomerPyle
Baiting Guru
Joined: 04 Jan 2007
Posts: 8875
Location: Wherever I lay my hat
|
Posted:
Mon Mar 30, 2009 4:27 pm |
|
Is it the wrong colour ? |
_________________ Fake sites killed 1 x 9 x 3 x 168 X
- the 'Asparagus Kid' - Accra to Lome - You Must surly Die in The Name Of Jesus Christ
- Steve - Lagos to Accra
- Frank - Lagos to Cotonou - co-bait with the vampire
- Shorty - Lagos to Cotonou - My Agro Base farming where i rearing chicken and other animals was set ablazed overnight and we do not know who is actual behinde all these evils! -
I and my crew was locked up for 3 good days….They wanted to charge us to court but later we are fined an huge amount of money…I asked them why did they arrest the men, they started laughing and saying all sorts mockering words! -
…because now, am left with nothing and remember i told you my Guy (Joe) gave up earlier this morning |
|
|
|
OxygenDeprived
Baiting Guru
Joined: 05 Mar 2007
Posts: 4138
Location: Crushing Lad's spirits, one at a time...
|
Posted:
Mon Mar 30, 2009 4:33 pm |
|
The 'die' makes me think PHP db.
I found this example online of the preg_match
Code: |
preg_match("/^[a-zA-Z0-9]+$/", $str) |
It leads me to think it doesn't like your second "^" in there and that you may need another "/". |
_________________ Premium Membership | Need a Mentor? | Eater University
Kelv1n
Sandra, Owerri to Lagos 18+ months | Oga Mark - Dakar to St. Louis, Senegal
N4ncy & Yeb0ah - Accra to Abidjan | Barrister Stone 13+ months
PD Results: x18
AS Results: x4
x 15
x 3
x 56
138 sites killed |
|
|
|
Dutch
Baiting Guru
Joined: 22 Nov 2007
Posts: 4204
Location: Dislocated
|
Posted:
Mon Mar 30, 2009 5:19 pm |
|
|
|
|
D11
Elite Baiter
Joined: 02 Jul 2006
Posts: 1702
|
Posted:
Tue Mar 31, 2009 11:20 am |
|
Thanks oxy
That works
all for the want of a "/" drove me nuts for hours. |
_________________
1x 0x
Click here to support 419Eater.com
I make software that drives lads crazy. Thats my revenge on lads. (it all helps)
this transaction is 100 percent risk/hitch free - bobo
why no pay me - abum bello
because the cops will know it was you - me
ok this is good - abum bello |
|
|
|
OxygenDeprived
Baiting Guru
Joined: 05 Mar 2007
Posts: 4138
Location: Crushing Lad's spirits, one at a time...
|
Posted:
Tue Mar 31, 2009 3:44 pm |
|
It's always the smallest detail w/ php isn't it |
_________________ Premium Membership | Need a Mentor? | Eater University
Kelv1n
Sandra, Owerri to Lagos 18+ months | Oga Mark - Dakar to St. Louis, Senegal
N4ncy & Yeb0ah - Accra to Abidjan | Barrister Stone 13+ months
PD Results: x18
AS Results: x4
x 15
x 3
x 56
138 sites killed |
|
|
|
larry
Old Telecom Guy
Joined: 07 Mar 2008
Posts: 516
Location: land of mountains plains, lakes, gophers etc etc
|
Posted:
Tue Mar 31, 2009 7:09 pm |
|
Ooooh I am sooo glad I'm not programming any more. |
_________________ <a href="/forum/donate.php">[Click here to donate to 419Eater.com]</a>
"Mimi si yule ninayesema ni mimi" - Larry
"sir i have just told you the gospel truth" - D4n Nkw3rr3
= Group safari - Dan Nkw3rr3: Port Harcourt to Abeche (with a layover in Cameroon)
x 4 x 2 |
|
|
|
GordonBennett
Baiting Guru
Joined: 29 Mar 2007
Posts: 2829
Location: Pedicabo ego vos et irrumabo
|
Posted:
Tue Mar 31, 2009 10:39 pm |
|
Quote: |
Is it the wrong colour ? |
|
|
|
|
|
PsycheDelia_Smith
Baiting Guru
Joined: 30 Oct 2004
Posts: 3577
Location: Devon, UK
|
Posted:
Wed Apr 01, 2009 6:37 am |
|
Try
if (preg_match("!^[^a-zA-Z0-9]+$!", $username) == 1 ) {
die("Found something other then a number or letter.");
}
Notice the double quotes. |
_________________ SATISFIED CLIENTS:
"I was forced to sell off my designers black suit to be able to return back to Ouagadougou and on my coming back here my wife
took me to the cyber cafe and showed me the site where my photographs of circumcision was put on the net."-'Tosser' 0gugu0
"I am now completely twatted and shagged and will obey all your instructions to the fullest."-"Tosser" Oguguo
"Frankily speaking,I wouldn't want to travel to the far east again."-Edward Smith, Lagos-Singapore (14600 miles round trip via Dubai)
9x 4 x Lagos-Accra , 3x Port Harcourt - Ibadan, 1x Lagos-Singapore, 1x Burkina-Bamako
'Ed', 3 yrs 8 mnths 'Oguguo',6 years and 4 months |
|
|
|
|