In message <[EMAIL PROTECTED]>, sam_sjc_2k4
<[EMAIL PROTECTED]> writes
>Hi all,
>
> I'm working on registration frm..whr i've  a text box  to enter user
>ID and beside tht i put a button to check  the availability of that
>username in my database. My problem is how can i take the text box
>data and submit to the php script. I'm able to access the
>data(username) by using JavaScript but could not able to post
>that(usrname) to the PHP script.
>
>Pls hlp in this regard.
>
>thanks,
>Danny. 

Use this idea:

<FORM ACTION="checkname.php" METHOD="post">
text box here
submit button
</form>

The contents of your text box will appear in checkname.php
$_POST['textboxname']

If you check using javascript, what happens if the user switches
javascript?  

-- 
Pete Clark

My life in Spain
http://www.hotcosta.com/blog



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to