Categories > TinyButStrong general >

another quick question

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Mankiy
Date: 2003-07-11
Time: 04:32

another quick question

i got another quick question, and this one will be quick, trust me ;)

how do i change this PHP code:
if (!isset(username)) {
echo("<input type="text" name="username" maxlength="20">")
}

into the tbs code?

By: Skrol29
Date: 2003-07-14
Time: 18:20

Re: another quick question

Hello Mankiy,

There is no isset() possible check with TBS.
In stead you can use this ;

PHP:
if (!isset($username)) $username='' ;

HTML:
<input type="text" name="[var.username;friendb=input]" maxlength="20">

Or:
[tbs_check.usern;if username!='';begin]
<input type="text" name="[var.username]" maxlength="20"
[tbs_check.usern;end]