Search found 5 matches

by studley
Sun Jan 22, 2006 7:49 am
Forum: PHP - Code
Topic: Splitting a name field into firstname/surname
Replies: 2
Views: 373

Thanks very much - the field is within an admin system which only one user is accessing, so all names will be in the same format, this is good enough for him.
by studley
Sun Jan 22, 2006 3:58 am
Forum: PHP - Code
Topic: Splitting a name field into firstname/surname
Replies: 2
Views: 373

Splitting a name field into firstname/surname

Hi there, I have a single "name" input field, and when submitted I want to look for the first space in the name, put anything before it into a "firstname" field, and anything after it into "surname". At the moment I'm doing it like this (because its the only way I know ...
by studley
Sun Jan 02, 2005 2:18 pm
Forum: PHP - Code
Topic: Custom message for people browsing from Google
Replies: 8
Views: 761

That works a treat, thanks! :) Now to figure out for myself exactly why it works. I guess the "explode" thing is the key, I've not seen or used that before.

Cheers,
Neil
by studley
Sun Jan 02, 2005 1:47 pm
Forum: PHP - Code
Topic: Custom message for people browsing from Google
Replies: 8
Views: 761

Thanks guys! All it took was a little experimentation and I soon found that this worked: if (isset($_SERVER['HTTP_REFERER']) && strpos(strtolower($_SERVER['HTTP_REFERER']), 'google')) { *** message here *** } And while I haven't worked out how to do #2, I easily managed to put a link back to...
by studley
Fri Dec 31, 2004 5:17 am
Forum: PHP - Code
Topic: Custom message for people browsing from Google
Replies: 8
Views: 761

Custom message for people browsing from Google

Hi, I'm new in these parts (and fairly new to PHP) so go easy on me :) I've started to notice that my website is receiving a lot more "random" visitors from Google; i.e people typing in peculiar searches and my site ranking highly in the search results. #1 What I would like to do is put so...