if you're string is a variabe $address, then
eregi(http://,$address) will tell you if they've put in the http part, and
$address = substr($address,7);
will slice off and store the text after the http://
you'll find lots of different ways to do this...whatever suits you, go for
it...
-jack
-Original Message-
From: Kyle Mathews [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 06, 2001 4:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Trim a string
Hello:
I have a signup form that asks for a website address.
I don't need them to put in the http://, but I'm thinking that
Thanks, that worked great.
- Kyle
Jack Dempsey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
if you're string is a variabe $address, then
eregi(http://,$address) will tell you if they've put in the http part,
and
$address = substr($address,7);
will slice
3 matches
Mail list logo