The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 871 - File: showthread.php PHP 7.4.12 (Linux)
File Line Function
/showthread.php 871 errorHandler->error



FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Default Value for Fields
#1
Hi, can anyone tell me how I set a field to have a default value?

Usually I would do this by writing value="myvalue" but I am already using this 'value' to make the form sticky eg as follows:

Code:
<input type="text" name="myfield" size="10" maxlength="15" value="<?=@$fields['myfield']?>"/>

Thanks in advance!
Reply


Messages In This Thread
Default Value for Fields - by spenny - Jun 24th, 2009, 3:02 PM
RE: Default Value for Fields - by Ben - Jun 26th, 2009, 9:04 PM
RE: Default Value for Fields - by spenny - Jul 25th, 2009, 11:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)