You are here: Re: hlp regarding Registration Form « All PHP « IT news, forums, messages
Re: hlp regarding Registration Form

Posted by Mike G. on 08/16/06 13:36

If it's a post method form, you'll need to access the data via the
$_POST array.

<?php

if(empty($_POST)) {
die('Please use a form to access this document.');
}
else {
$username = $_POST['username'];

$sql = "SELECT count(id) WHERE username='$username' ";

// the rest of your code goes here...
}

?>

Cheers,
Mike G.

Danny wrote:
> 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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация