You are here: Re: using forms to add records to mysql database - block submit on entering « PHP Programming Language « IT news, forums, messages
Re: using forms to add records to mysql database - block submit on entering

Posted by Rik Wasmus on 09/06/07 14:11

On Thu, 06 Sep 2007 16:08:35 +0200, dirk <dirkheld@gmail.com> wrote:

> On 6 sep, 15:40, Captain Paralytic <paul_laut...@yahoo.com> wrote:
>> On 6 Sep, 14:19, dirk <dirkh...@gmail.com> wrote:
>>
>> > Hey,
>>
>> > I'm new to php and I'm trying to write some php code so that I can
>> > insert data into a mysql database using html forms.
>>
>> > I've got two text forms and a submit button. When entering data and
>> > selecting 'submit' a new record in my database is created. So far so
>> > good... But when I enter data in only one content and hit the enter
>> > key a new record is created with one empty field. And that something I
>> > don't want to happen.
>>
>> > Is there a way to block the text-forms so only a record is added when
>> > I hit the 'submit' button?
>>
>> This is an HTML forms question. Nothing to do with PHP.
>
> Could be.

Is so :P

> Does this mean that you don't have the answer to this?

Nobody HAS to, it's just far more likely you'll get a correct, speedy, and
friendly answer in alt.html for instance (or possibly comp.lang.javascript
in case user side scripting is needed).
--
Rik Wasmus

 

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

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