Re: Forms service

From: Date: Thu, 16 Nov 2000 04:24:01 +0000
Subject: Re: Forms service
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25777@lists.php.net to get a copy of this message
<? $uname[] = "chris"; $uname[] = "ryan"; $uname[] = "lee"; $new_uname = "chris"; if ( in_array($new_uname, $uname) ) echo "User name taken<br>\n"; else echo "Good username, its still avalible<br>\n"; ?> Is this what you mean? this will check if the new_username is allready taken. for mor information about in_array check out. http://www.php.net/manual/function.in-array.php Chris Lee Mediawaveonline.com In article <NEBBLAFPGLIOALLNJHFFOEANCBAA.steve@stevesdomain.net>, steve@stevesdomain.net wrote: > I'm fairly new to PHP, so perhaps some of you can lend a hand. On my > website, I'm creating a service where I provide free HTML form > processing using PHP to customers. The actual mail command is not what > my problem is. What I'd like to do is have a page with a bunch of > pre-made form templates on it with radio buttons next to each template. > So, for this page, all the customer needs to do is select one template, > provide a username/password and an e-mail address, and press the submit > button. What I'd like to have happen afterwards is have a new directory > automatically created, using their username as the directory name, and > have their form choice appear on the ensuing page within the > directory...if this is too complicated, I'm not against the idea of > having the modified pages appear in the same directory. > > Also, is there a way that I can save each username to an array, and each > time a new user fills out the form, PHP will search the array to make > sure that username is not taken already? MySQL is not an option here. > > Again, I know the mail function for PHP just fine, just not the afore > mentioned issues. Thanks for any help you can give me. > > Steve - Webmaster http://www.stevesdomain.net AIM: nikkoruser > ICQ: > 91016151 > >

« previous php.general (#25777) next »