Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <section class="bg0 p-t-104 p-b-116">
		<div class="container">
			<div class="flex-w flex-tr">
				<div class="size-210 bor10 p-lr-70 p-t-55 p-b-70 p-lr-15-lg w-full-md">
					 <form class="form" id="contactForm" method="post" novalidate action="/send-script.php">
    <div class="form-row">
	<span class="form-row honey-row">
    <label for="honey">Jeżeli jesteś człowiekiem, nie wypełniaj tego pola</label>
    <input type="text" name="honey">

        <input type="text" placeholder="Wpisz swoje imię" name="name" required id="field-name" data-error="Wypełnij to pole" pattern="[a-zA-ZąĄććę곣ńŃóÓśŚżŻŹŹ ]+">
    <div class="form-row">

        <input type="email" placeholder="Wpisz swój adres email" name="email" required id="field-email" data-error="Wpisz poprawny email" pattern="[^@\s]+@[^@\s]+\.[^@\s]+">
	<div class="form-row">

        <!-- <label for="field-email">Numer kontaktowy*</label> -->
       <input name="phone" placeholder="Wpisz swój numer kontaktowy" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Numer kontaktowy'" class="common-input mb-20 form-control" required="" type="number">
    <div class="form-row">

        <textarea name="message" placeholder="Treść wiadomości" required data-error="Musisz wypełnić pole" id="field-message" pattern=".+"></textarea>
    <div class="form-row">
        <label class="checkbox-cnt">
            <input type="checkbox" required data-error="Musisz wypełnić pole" name="regulation">
            <i class="state" aria-hidden="true"></i>
            <span>Wyrażam zgodę na skontaktowanie się ze mną w celu przedstawienia oferty.</span>
		<!-- <div class="g-recaptcha" data-sitekey="6Lf7zpkUAAAAACpn98e6vwbCMXJkK65iHrx6pf9D"></div> -->
    <div class="form-row">
       <br><br> <button type="submit" class="submit-btn">
            Wyślij wiadomość




$mailToSend = '';
if ( $_SERVER['REQUEST_METHOD'] === 'POST' ) {
	$name       = $_POST['name'];
	$email      = $_POST['email'];
	$phone		= $_POST['phone'];
	$message    = $_POST['message'];
	$antiSpam = $_POST['honey'];
	$regulation = $_POST['regulation'];
	$errors     = Array();
	$return     = Array();
	 if (empty($antiSpam)) { 
	 if ( empty( $name ) ) {
		array_push( $errors, 'name' );
	if ( ! filter_var( $email, FILTER_VALIDATE_EMAIL ) ) {
		array_push( $errors, 'email' );
	if ( empty( $message ) ) {
		array_push( $errors, 'message' );
	if ( empty( $regulation ) ) {
		array_push( $errors, 'regulation' );	
	if ( count( $errors ) > 0 ) {
		$return['errors'] = $errors;	 
	 } else {
		$headers = 'MIME-Version: 1.0' . "\r\n";
		$headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
		$headers .= 'From: ' . $email . "\r\n";
		$headers .= 'Reply-to: ' . $email;
		$message = "
			<meta charset=\"utf-8\">
			<style type='text/css'>
				body {font-family:sans-serif; color:#222; padding:20px;}
				div {margin-bottom:10px;}
				.msg-title {margin-top:30px;}
			<div>Imię: <strong>$name</strong></div>
			<div>Email: <a href=\"mailto:$email\">$email</a></div>
			<div>Numer: <strong>$phone</strong></div>
			<div class=\"msg-title\"> <strong>Wiadomość:</strong></div>

		if ( mail( $mailToSend, 'Wiadomość ze strony - ' . date( "d-m-Y" ), $message, $headers ) ) {
			$return['status'] = 'ok';
		} else {
			$return['status'] = 'error';

	header( 'Content-Type: application/json' );
	echo json_encode( $return );