FW: [Zope] Newbie DTML: Checking a variable
I have the following code in my zope page and its just not working for me.
<td width=""><input name="ssn_call" width=30 value= <dtml-if "REQUEST.value('ssn_call', ' ')"> "" <dtml-else> "<dtml-var SSN>" </dtml-if> ></td>
I am trying to clear a Blank for the empty condition.
-Bryan
<td width=""><input name="ssn_call" ^^ that's not good HTML ;-) Try this for your input: <input name="ssn_call" width=30 value="<dtml-if "REQUEST['ssn_call']"><dtml-var SSN></dtml-if>"> Chris
Chris Withers wrote:
<td width=""><input name="ssn_call" ^^ that's not good HTML ;-)
Try this for your input:
<input name="ssn_call" width=30 value="<dtml-if "REQUEST['ssn_call']"><dtml-var SSN></dtml-if>">
Why not replace the if with this? <dtml-var ssn_call missing=''> -- In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900
participants (3)
-
Bill Anderson -
Chris Withers -
Coleman, Bryan