pfp test
This commit is contained in:
parent
34d322e0c0
commit
b1936f4d3a
10 changed files with 322 additions and 25 deletions
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
function form($title, $form_message, $inputs) { ?>
|
||||
<form class='form' enctype="multipart/form-data" method="POST">
|
||||
function form($title, $form_message, $inputs, $action = '') { ?>
|
||||
<form class='form' enctype="multipart/form-data" method="POST" action="<?php echo $action ?>">
|
||||
<h1 class="form-heading">
|
||||
<?php echo $title ?>
|
||||
</h1>
|
||||
|
@ -17,8 +17,8 @@
|
|||
class='form-input'
|
||||
type="<?php echo $kv['type'] ?>"
|
||||
name="<?php echo $kv['name'] ?>"
|
||||
value="<?php echo $kv['default'] ?>"
|
||||
>
|
||||
value="<?php echo ($kv['type'] == 'textarea') ? '' : $kv['default'] ?>"
|
||||
><?php echo (($kv['type'] == 'textarea') ? $kv['default'] . '</textarea>' : '') ?>
|
||||
<?php }
|
||||
?>
|
||||
<input class='form-button' type="Submit" name="Submit">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue