PHP Classes

File: app/Views/Posts/add.php

Recommend this page to a friend!
  Classes of Faris AL-Otabi   PHP GuestBook with Database   app/Views/Posts/add.php   Download  
File: app/Views/Posts/add.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP GuestBook with Database
GuestBook application using MySQL to store posts
Author: By
Last change:
Date: 1 year ago
Size: 916 bytes
 

Contents

Class file image Download
<?= $this->extend("base"); ?>

<?= $this->section("title") ?>Add a Message<?= $this->endSection() ?>

<?= $this->section("content"); ?>

<?= form_open("/post/create", ['class' => "mt-3"]); ?>

<div class="form-group">
    <input type="text" name="full_name" value="<?= old("full_name"); ?>" class="form-control" placeholder="Full Name" required>
</div>

<div class="form-group">
    <input type="email" name="email_address" value="<?= old("email_address"); ?>" class="form-control" placeholder="Email Address" required>
</div>

<div class="form-group">
    <textarea name="comment" rows="5" placeholder="Please enter a message" class="form-control"><?= old("comment"); ?></textarea>
</div>

<?= reCaptcha2('reCaptcha2', ['id' => 'recaptcha_v2']); ?>

<div class="form-group text-center">
    <button type="submit" class="btn btn-info"> Post Message </button>
</div>

<?= form_close() ?>

<?= $this->endSection(); ?>