Re: Ajax please....
| From: | Carlin Bingham | Date: | Sat, 08 Apr 2006 04:58:13 +0000 |
| Subject: | Re: Ajax please.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233523@lists.php.net to get a copy of this message | ||
Just use PHP to do it.
To check if an account with that username exsists just use the
mysql_num_rows function and a 'die' statement.
Then use SQL/PHP code to log the information in a database and just echo
the success text at the bottom of your code.
Simple.
On 3:21:47 am 08/04/2006 "Ryan A" <Ryan@eZee.se> wrote:
> Hey,
>
> Just been googleing and trying out different AJAX frameworks..:
> From PEAR HTML_AJAX
> Gauva
> My-Bic
> AjaxAC
> and quite a few more....and it happened, I confused myself :-(
>
> For some reason HTML_AJAX is not working on my local machine (windows
> based, I am getting runtime errors with the examples) and it seems
> quite bulky. I have even tried the YAHOO one, which Rasmus suggested
> to another guy some time back (found it
> after looking in the archives) unfortunatly could not find much
> documentation that I could understand...
>
> Hopefully after reading about my requirment(s) someone can suggest
> something thats really simple (or really well
> documented with examples)
>
> Requirements:
> Write little or no JS
> When i submit the form, it should simply call my script and print out
> the answer inbetween the DIV tags
>
>
> This is what i want to use it for:
> Client comes to site, wants to make an account, I check if the
> username he entered is not already in use, if already in use I print
> out a failute message in red on the screen if not in use....i make
> his account and print out a success text or redirect him to a success
> page. THATS IT, nothing too fancy.
>
> Thanks in advance.
>
> Cheers,
> Ryan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>