[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] CGI Script Question



Already given one to them, to late :o)

Regards,

Mark Baker
Dark Marketing Ltd
http://www.yoursitehere.co.uk

------------------------------------------------------------------
Your Site Here - The Total Internet Solution!
http://www.yoursitehere.co.uk | info@xxxxxxxxxxxxxxxxxx
Hosting: £40/year | Domains £10/year!
------------------------------------------------------------------
This e-mail, and any attachment, is confidential. If you have received
it in error, please delete it from your system, do not use or disclose
the information in any way, and notify us immediately.
Tel: 01428 727437 | Fax: 01428 725525 | E-mail: admin@xxxxxxxxxxxxxxxxxx
------------------------------------------------------------------
----- Original Message -----
From: Sales - Way to the Web <sales@xxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Sunday, August 13, 2000 12:22 PM
Subject: RE: [cobalt-users] CGI Script Question


> Hello,
>
> > I am making s sign up page for customers and I was wordering
> > if any of you
> > know how to make a script (.pl or .cgi) that can check to see
> > if a username
> > is taken by any of the virtual sites?
>
> If you just need to know the syntax, you need to use the getpwnam(3)
> structure like this (perl code, where $name is a string holding the name
> entered in the form):
>
> if (getpwnam($name)) {
> print "$name exists\n";
> } else {
> print "$name does not exist\n";
> }
>
> If you need an actualy CGI script written around this, we can write one
for
> you.
>
> Regards,
> Jonathan Michaelson
>
> Way to the Web Ltd
> Commercial CGI Scripting, Web Hosting
> http://www.waytotheweb.com
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users