View Full Version : php hide and unhide form
rhodarose
08-23-2010, 02:09 AM
Good day!
i want to know if it is possible in php code that the form would be hide and unhide?
What shoud be the syntax for that?
Thank you
djr33
08-23-2010, 02:35 AM
Surround it in a conditional (if) statement.
bluewalrus
08-23-2010, 02:37 AM
loading the page as
http://www.site.com/page.php?show=1
will show the form. Loading it as
http://www.site.com/page.php
will not.
<?php
if (isset($_GET['show']) && $_GET['show'] == '1') {
?>
<form>
<input type="text" />
<input type="submit" />
</form>
<?php
} else {
?>
Don't show.
<?php
}
?>
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.