How do I check a string for it to only contain numbers?
>>
if(!ereg("([0-9]+)",$string)){
print "It contains characters other than numbers";
}else{
print "Only numbers";
}
<<
Can anyone give some feedback...
regards,
Bart
--
PHP General Mailing List (http://www.php.net
What Mod does it need?
-Oorspronkelijk bericht-
Van: Anna Gintere [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 8 februari 2002 2:08
Aan: [EMAIL PROTECTED]
Onderwerp: RE: [PHP] Images
Does dir have aprpriate mod (permisions)?
-Original Message-
From: B. Verbeek [mailto:[EMAIL
Seem to have a problem...
I'm creating a form to upload a image to a dir on the webserver.
When I fill out the form and submit it (method=post) the variable in the
-field doesn't get sent.
I also use enctype multipart/form-data.
Does anyone have any suggestions?
regards
Bart
--
PHP Genera
Hello,
What's the difference between:
1.- $row[column_name];
2.- $row['column_name'];
3.- $row["column_name"];
?
ragards Bart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Question:
Is it possible to validate an e-mailaddress by opening a socket-connection
to the specified domein (@domain.com) and then search for username
([EMAIL PROTECTED]) to validate an e-mailaddress?
I know how to set up a socket-connection, but how do I search for the user
in the given domain
($var);
Niklas
-Original Message-
From: B. Verbeek [mailto:[EMAIL PROTECTED]]
Sent: 31. tammikuuta 2002 13:33
To: [EMAIL PROTECTED]
Subject: RE: [PHP] question reg trim-strlen
I want to trim it then check and the new var must stay trimmed!
-Oorspronkelijk bericht-
Van: Niklas L
Does this work?
>>if(strlen($cust_adres = trim($cust_adres)) > 50){ /*code here*/ }
I mean that the new $cust_adres is trimmed when nessecary?
regards
Bart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
Hello,
I want to check the data from a form-field if it excists only of digits
(0-9) and nothing else.
How do I use the ereg()-function for this?
>> ereg("[0-9]",$cust_tel, $cust_tel); <<
It is also to turn it around but then the pattern will get larger because it
has to contain:
/ "'.,-)
8 matches
Mail list logo