Skip to content

Instantly share code, notes, and snippets.

@codingwithsara
Created December 7, 2018 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codingwithsara/fda3163375ea8c1e194fa71e711aa293 to your computer and use it in GitHub Desktop.
Save codingwithsara/fda3163375ea8c1e194fa71e711aa293 to your computer and use it in GitHub Desktop.
PHP お問い合わせフォーム HTML・CSS
<!DOCTYPE html>
<html lang="jp">
<head>
<meta charset="utf-8">
<title>お問い合わせフォーム</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+JP" rel="stylesheet">
<style>
body {
background: #f3f3f3;
}
.container {
font-family: "Noto Sans JP";
margin-top: 60px;
}
h1 {
margin-bottom: 50px;
text-align: center;
}
button {
margin-top: 30px;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-offset-4 col-xs-4">
<h1>お問い合わせ</h1>
<form method="post">
<div class="form-group">
<input type="text" class="form-control" name="name" placeholder="お名前" value="">
</div>
<div class="form-group">
<input type="text" class="form-control" name="email" placeholder="メールアドレス" value="">
</div>
<div class="form-group">
<input type="text" class="form-control" name="subject" placeholder="件名" value="">
</div>
<div class="form-group">
<textarea class="form-control" name="message" rows="5" placeholder="本文"></textarea>
</div>
<button type="submit" class="btn btn-success btn-block">送信</button>
</form>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment