dongatuna
-
Posts
2 -
Joined
-
Last visited
Posts posted by dongatuna
-
-
Would like to create a function for text input and text area. I have the following code that generates the text field but it isn't sticky.
<?phpfunction create_text_field ($label, $name, $value){echo '<label>'.$label .': </label>';echo '<input type = "text" name ="'.$name.'" value = "'.$value.'"';if(isset($_POST[$name])&&($_POST[$name]==$value)){echo $_POST[$name];}echo '/><br><br>';}?>The data doesn't stick...
Sticky Form Functions
in PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
Posted
Not quite yet but close. The value attribute code is inside <?php?> tags.
Please comment