Re: A question about mysql

From: Date: Fri, 01 Jul 2011 03:30:47 +0000
Subject: Re: A question about mysql
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-47891@lists.php.net to get a copy of this message
Hi Guru, You could disable the input field or set it to readonly after it has been filled in... <input type="text" name="name1" value="persons name" disabled="disabled" /> or <input type="text" name="name1" value="persons name" readonly="readonly" /> but you will have to do that client side with some javascript. Unless you have the page refresh after each field is filled in, then you could disable/readonly it via PHP. HTH, Best, Karl On Jun 30, 2011, at 9:57 PM, Guru™ wrote:
Hi All, I have a question about php-mysql. Is it possible that I can have 2 different fields in a mysql table, and when a user fill out the form for the first time the input goes to first field and when the second user fill out the form the input goes to 2nd field. For example: Lets say I have 2 fields called $name1 and $name2. Now when 1st user input the data it goes to $name1 and then when the second user input the data it should check if the $name2 is NULL and if yes then the data goes to $name2 otherwise it should again start with $name1. --*Best, * *Guru™*
Karl DeSaulniers Design Drumm http://designdrumm.com

« previous php.db (#47891) next »