?> </div> <div class="input-field col s12"> <input id="price" name="price" type="text" class="validate" value="<?php echo strIfSet($price); ?> "> <label for="price">Price</label> </div> <div><?php echo errorMessageForField($errors, 'store'); ?> </div> <div class="input-field col s12"> <input id="store" name="store" type="text" class="validate" value="<?php echo strIfSet($store); ?> "> <label for="store">Store</label> </div> <div class="input-field col s1"> <button name="submit" class="btn-floating btn-large waves-effect waves-light purple darken-2"><i class="material-icons">add</i></button> </div> </div> </form> </div> <?php } else { header('Location: /formsInPhp/session/edit.php/'); ?>
<label for="first_name">First Name</label> </div> <div class="input-field col s12"> <input id="last_name" name="last_name" type="text" class="validate" value="<?php echo strIfSet($last_name); ?> "> <label for="last_name">Last Name</label> </div> <div><?php echo errorMessageForField($errors, 'email'); ?> </div> <div class="input-field col s12"> <input id="email" name="email" type="email" class="validate" value="<?php echo strIfSet($email); ?> "> <label for="email">Email</label> </div> <div><?php echo errorMessageForField($errors, 'password'); ?> </div> <div class="input-field col s12"> <input id="password" name="password" type="password" class="validate"> <label for="password">Password</label> </div> <div><?php echo errorMessageForField($errors, 'retype_password'); ?>