Documentations: Youplay HTML

Contact Form

To configure contact form you should change variables in file php/ajax-contact-form.php:

    • $address_destination – destination address (email), where will send a message;
    • $message_subject – the subject of the message;
    • $strings – array with strings to change/translate it;
    • $demo – demo mode. Set it to false on production;

HTML Example:

<form action="php/ajax-contact-form.php" method="POST" role="form" class="youplay-form-ajax" data-toggle="validator">
    <div class="row">
        <div class="col-md-6">
            <div class="youplay-input form-group">
                <input type="text" name="name" placeholder="Name" required>
            </div>
        </div>
        <div class="col-md-6">
            <div class="youplay-input form-group">
                <input type="email" name="email" placeholder="Email" required>
            </div>
        </div>
    </div>
    <div class="youplay-textarea form-group">
        <textarea name="message" placeholder="Message" rows="5" required></textarea>
    </div>
    <button type="submit" class="btn btn-default">Submit</button>
</form>
Was this page helpful?