baseportal | ||
Start | ||
baseportal message board | |
Welcome to the baseportal message board... Please read the FAQ.
|
Selected message: | To the list |
Message from Christoph Bergmann on 11/29 2003, 18:57 +01:00 EMail: info@baseportal.com Re: ...Is IT POSSIBLE? - everything is possible with baseportal ;-)1. Insert before your <do action=all ...>:
To limit the possible number of chars in the field "Fieldname" to 123. 2. Really "locking" would only be possible with some javascript code which isn't a real 100% waterproof solution, because the user doesnt necessarily use javascript. What you can do is compare the entry which should be added with the last entry. Looks like this:
if($_put{Fieldname1} eq $Fieldname1 && $_put{Fieldname2} eq $Fieldname2) { out "Your entry is already in the database... Pls do not send it again..."; $_get{cmd}=""; }
You should insert this before your <do action=all> on the page... 3. You can check the new entry before it is added to the database with the following code:
if($_put{Fieldname2} eq "") { out "Fieldname2 is empty. Pls insert something!<br>"; $_get{cmd}=""; }
ok? ;-) |
|
All messages from this thread: | To the list |
Message from MIKE on 11/29 2003, 12:21 +08:00 EMail: amboy.mep@eudoramail.com ...Is IT POSSIBLE?Dear Master Chris, iS it possible to limit the number of characters in a textbox to prevent the user to paste millions of characters or letters? Is it also possible to lock the send button after the clicked it? I mean, he cant send again...just lock it. When I tried to click the send button even without filling the entries it is still added in the database...empty!..Can we restrict the user that he should fill all te entry required? tanks and more power.This portal is really a great help to us all...keep up the good service. Mike |
|
Message from MIKE on 12/2 2003, 12:04 +00:00Re: ...Is IT POSSIBLE?I TRIED TO USE THIS CODE,BUT NO ENTRY WAS ADDED INTO MY DATABASE..<perl>
out "Your entry is already in the database... Pls do not send it again..."; $_get{cmd}=""; }
Please enter your last name: <input type="text" name="lastname:="><p>
|
Messages from 3000 to 3150: | To the input form |
> ...Is IT POSSIBLE? from MIKE on 11/29 2003, 12:21 +08:00 |
Re: ...Is IT POSSIBLE? - everything is possible with baseportal ;-) from Christoph Bergmann on 11/29 2003, 18:57 +01:00 |
Re: ...Is IT POSSIBLE? from MIKE on 12/2 2003, 12:04 +00:00 |
<< Newest messages | < Newer messages | To the input form | Older messages > | Oldest messages >> |
© baseportal.com. All rights reserved. Terms of use |