Re: Ajax please....

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

 



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@xxxxxxx> 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
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux