how to change the texebox properties through php?
plz give syntx or any little example.

Recommended Answers

All 4 Replies

could you explain why through serverside scripting like php? i hope you are aware of changing the textbox properties using a client side script like javascript.

You just write all your textbox properties in css file like:

.class1{
font-weight:normal;
}
.class2{
font-weight:bold;
}

You can change your textbox in php like:

if(something)
{
$style="class1";
}
else
{
$style="class2";
}

then use this class for your text box like:

<input type="textbox" name="test" class="<?=$style;?>" />
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.