For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > December 2004 > Re: [PHP-DB] how to set submit.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] how to set submit.
Zareef Ahmed

2004-12-29, 3:56 am

HI,
Plesase search for post in last some days this issue has been
discussed several time in the list.
BTW double check the name of form submit button and register_global position.

zareef ahmed

>On Mon, 27 Dec 2004 04:45:58 -0800 (PST), amol patil

<ajp_3077@yahoo.com> wrote:
> hallo,
>
> clicking on submit entered info. is not entering in database.
>
> how to set submit , so that query wll execute correctly.
>
> ?php
>
> if($submit)
> {
>
> $dbh=mysql_connect ("localhost", "root") or die ('I cannot connect
> to
> the database because: ' . mysql_error());
> mysql_select_db ("dollar1_allinfo");
>
> mysql_query("INSERT INTO totalinfo (Username,Password) VALUES
> ('$loginusername','$loginpassword')")or die (mysql_error());
>
> }
> ?>
>
> thank you.
>
>
> ---------------------------------
> Do you Yahoo!?
> Send a seasonal email greeting and help others. Do good.
>



--
Zareef Ahmed :: A PHP Developer in India ( Delhi )
Homepage :: http://www.zareef.net
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com