PHP Classes

File: modules/userorm/views/edit.php

Recommend this page to a friend!
  Classes of Adrian M   upMVC   modules/userorm/views/edit.php   Download  
File: modules/userorm/views/edit.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: upMVC
Pure PHP web development without other frameworks
Author: By
Last change: noBuildJs

React, Vue Integration without Build Step. PHP, React, Vue - NO Bundle.
up
up
Date: 19 days ago
Size: 1,208 bytes
 

Contents

Class file image Download
<?php //include 'layout/header.php'; ?>

<div class="container mt-4">
    <h2>Edit User</h2>
   
    <form action="<?PHP echo SITEPATH; ?>/usersorm/update/<?= $user[0]['id'] ?>" method="POST" class="mt-4">
        <div class="mb-3">
            <label for="name" class="form-label">Name</label>
            <input type="text" class="form-control" id="name" name="name"
                   value="<?= htmlspecialchars($user[0]['name']) ?>" required>
        </div>
       
        <div class="mb-3">
            <label for="email" class="form-label">Email</label>
            <input type="email" class="form-control" id="email" name="email"
                   value="<?= htmlspecialchars($user[0]['email']) ?>" required>
        </div>
       
        <div class="mb-3">
            <label for="password" class="form-label">Password (leave blank to keep current)</label>
            <input type="password" class="form-control" id="password" name="password">
        </div>
       
        <button type="submit" class="btn btn-primary">Update User</button>
        <a href="<?PHP echo SITEPATH; ?>/usersorm" class="btn btn-secondary">Cancel</a>
    </form>
</div>

<?php //include 'layout/footer.php'; ?>