Echo block of HTML that contains PHP functions -


I have a simple if-else statement - if true, then I want to resize this content:

  & lt; Div id = "login" & gt; & Lt; H2 & gt; Login & lt; / H2 & gt; & Lt; Div class = "box" & gt; & Lt; Form method = "POST" verb = "index.php / login" & gt; Username / Email: & lt; Br / & gt; & Lt; Input type = "text" name = "username" value = "& lt ;? phcho echo set_value (" user name ") ;? gt; Size = "50" square = "form" /> & Lt ;? Php echo form_error ("username"); ? & Gt; Password: & lt; Br / & gt; & Lt; Input type = "password" name = "password" value = "& lt ;? php echo set_value (" password ") ;? & gt;" Size = "50" square = "form" /> & Lt ;? Php echo form_error ("password"); ? & Gt; & Lt; Input type = "submit" value = "login" name = "login" /> & Lt; / Form & gt; & Lt; / Div & gt; & Lt; / Div & gt;  

And if lies do something like that.

How should I reach it? I'm a PHP noob (and I'm annoying the community here!) - so I'm just standing on the echo function - I think I can define the variable, but it's about it.

Just like you are doing:

  & lt ;? Php if some_condition {? & Gt; & Lt; P> I'm in a true situation: & lt ;? Php echo "true on condition"?> & Lt; / P> & lt;? } And {?> & Lt; P> I am due to false status:  & Lt / p> & lt;? }?>  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -