NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<!DOCUMENT html>
<html lang="pl">
<head>
<meta charset="utf-8" />
<title>Constructive &amp; Co.</title>
<link rel="stylesheet" type="text/css" href="css/style.css">

</head>
<body>
<h1>Constructive &amp; Co.</h1>
<p name=powitanie>
<script type="text/javascript" src="js/powitanie.js"></script>



<p>Składanie zamówienia i wszelkie informacje są dostępne pod numerem telefonu <em>555-3344</em></p>
<h4 name=formularz>
<script type="text/javascript" src="js/formularz.js"></script>

Zarejestruj się <br><br>
<form method="post" action="php/plik.php" align="center" colspan="2" onsubmit=validate(this) >
Imię &nbsp &nbsp &nbsp <input name="forename" /><br>
Nazwisko &nbsp <input name="surname" /><br>
E-mail &nbsp &nbsp <input name="email" align=right/><br><br>
Czy dodać Cię do newslettera? <br>
Tak <input type=radio name="click" value="tak" /><br>
Nie <input type=radio name="click" value="nie" /><br><br>

<!-- Twoje Zainteresowania <br>
Sport <input type="checkbox" name="check" value="sport" /><br>
Muzyka <input type="checkbox" name="check" value="muzyka" /><br>
Film <input type="checkbox" name="check" value="film" /><br>
Podróże <input type="checkbox" name="check" value="podroze" /><br>
NBK <input type="checkbox" name="check" value="nbk" /><br> -->
<input type="submit" value="Zarejestruj się">
</form>
</h4>
</body>
</html>






/* CSS dla przykładowych fragmentów kodu. */

body {
font-family: "Courier New", Courier, monospace;
background: url("../images/constructive-backdrop.jpg")
no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
margin: 0px;
padding: 0px;
}

h1, p, h3, h4 {
float: left;
clear: left;
width: 320px;
background-color: #fff;
color: #5a514c;
text-align: center;
}

h1 {
margin: 50px 0px 0px 50px;
height: 175px;
background-image: url("../images/constructive-logo.gif");
background-repeat: no-repeat;
text-indent: -9999px;
border-top: 1px solid #bcbdc0;
border-left: 1px solid #bcbdc0;
border-right: 1px solid #bcbdc0;
}

h3 {
margin: 0px 0px 0px 50px;
padding: 25px 0px 0px 0px;
font-family: 'Open Sans', arial, sans-serif;
font-size: 1.8em;
font-style: italic;
font-weight: 800;
line-height: 0.80em;
letter-spacing: -0.02em;
text-transform: uppercase;
border-left: 1px solid #bcbdc0;
border-right: 1px solid #bcbdc0;
}

p {
margin: 0px 0px 0px 50px;
padding: 30px 0px 25px 0px;
font-weight: bold;
text-align: center;
border-right: 1px solid #bcbdc0;
border-bottom: 1px solid #bcbdc0;
border-left: 1px solid #bcbdc0;
}

h4 { margin: 0px 0px 0px 50px;
padding: 30px 0px 25px 0px;
font-weight: bold;
text-align: center;
border-right: 1px solid #bcbdc0;
border-bottom: 1px solid #bcbdc0;
border-left: 1px solid #bcbdc0;
}



function validate(form)
{
fail = validateForename(form.forename.value)
fail += validateSurname(form.surname.value)
fail += validateEmail(form.email.value)
fail += validateClick(form.click.value)


if (fail == "") return true

else { alert(fail); return false }
}

function validateForename(field)
{
return (field == "") ? "Nie wpisano imienia.n" : ""
}

function validateSurname(field)
{
return (field == "") ? "Nie wpisano nazwiska.n" : ""
}
function validateEmail(field)
{
if (field == "") return "Nie podano adresu e-mail.n"
else if (!((field.indexOf(".") > 0) &&
(field.indexOf("@") > 0)) ||
/[^a-zA-Z0-9.@_-]/.test(field))
return "Podany adres e-mail jest nieprawidłowy.n"
return ""
}

function validateClick(field)
{
return (field == "") ? "Zaznacz tak lub nie.n" : ""
}


<?php
$link = mysqli_connect('localhost', 'root', '', 'formularz');

$forename = $_POST ['forename'];
$surname = $_POST ['surname'];
$email = $_POST ['email'];
$click = $_POST ['click'];

$output = "Dodano wartości do tabeli".


mysqli_query($link,"insert into formularz values('".$forename."','".$surname."','".$email."','".$click."')")or die(mysqli_error($link));

echo 'ok';



?>




/* CSS dla przykładowych fragmentów kodu. */

body {
font-family: "Courier New", Courier, monospace;
background: url("../images/constructive-backdrop.jpg")
no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
margin: 0px;
padding: 0px;
}

h1, p, h3, h4 {
float: left;
clear: left;
width: 320px;
background-color: #fff;
color: #5a514c;
text-align: center;
}

h1 {
margin: 50px 0px 0px 50px;
height: 175px;
background-image: url("../images/constructive-logo.gif");
background-repeat: no-repeat;
text-indent: -9999px;
border-top: 1px solid #bcbdc0;
border-left: 1px solid #bcbdc0;
border-right: 1px solid #bcbdc0;
}

h3 {
margin: 0px 0px 0px 50px;
padding: 25px 0px 0px 0px;
font-family: 'Open Sans', arial, sans-serif;
font-size: 1.8em;
font-style: italic;
font-weight: 800;
line-height: 0.80em;
letter-spacing: -0.02em;
text-transform: uppercase;
border-left: 1px solid #bcbdc0;
border-right: 1px solid #bcbdc0;
}

p {
margin: 0px 0px 0px 50px;
padding: 30px 0px 25px 0px;
font-weight: bold;
text-align: center;
border-right: 1px solid #bcbdc0;
border-bottom: 1px solid #bcbdc0;
border-left: 1px solid #bcbdc0;
}

h4 { margin: 0px 0px 0px 50px;
padding: 30px 0px 25px 0px;
font-weight: bold;
text-align: center;
border-right: 1px solid #bcbdc0;
border-bottom: 1px solid #bcbdc0;
border-left: 1px solid #bcbdc0;
}


     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.