<?php if($_POST['submit']) { $username = "Username"; $password = "password"; $link = "index.php"; <-- More code not relevant to Q --> ?> Blah blah blah <?php } else { ?> <form action="<?=$link;?>" method="post"> <input type="hidden" name="username" value="<?=$username;?>" /> <input type="hidden" name="password" value="<?=$password;?>" /> <textarea name="message" cols="10" rows="3"></textarea> <input type="submit" name="submit" value="Submit" /> </div> <?php } ?>
Hi there,No PHP is viewable from the client. View the source yourself, all you will see is "Blah blah blah". For php code to be viewable it will require the 'echo' or 'print' method.