![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 58 Pomógł: 0 Dołączył: 3.03.2012 Skąd: Polska Ostrzeżenie: (30%) ![]() ![]() |
Witam pomożecie w dokończeniu formularza żeby wysyłalo mi na mojego e-maila?
Kod <h1>Form field hints</h1>
<form> <p>Tab or click through the fields to reveal the hints. <span style="padding:2px;border:1px solid red;background:#ffffcc;">Only <strong>Username</strong> and <strong>Password</strong> show hints in this example!</span></p> <dl> <dt> <label for="firstname">First Name:</label> </dt> <dd> <input name="firstname" id="firstname" type="text" /> </dd> <dt> <label for="lastname">Last Name:</label> </dt> <dd> <input name="lastname" id="lastname" type="text" /> </dd> <dt><label for="year">Birth Year:</label></dt> <dd> <select id="year" name="year"> <option value="">YYYY</option> <option value="1066">1066</option> <option value="1492">1492</option> <option value="1776">1776</option> <option value="1812">1812</option> <option value="1917">1917</option> <option value="1942">1942</option> <option value="1999">1999</option> </select> </dd> <dt> <label for="username">Username:</label> </dt> <dd> <input name="username" id="username" type="text" /> <span class="hint">Between 4-12 characters.<span class="hint-pointer"> </span></span> </dd> <dt> <label for="password">Password:</label> </dt> <dd> <input name="password" id="password" type="password" /> <span class="hint">Between 5-13 characters, but not 7. Never 7.<span class="hint-pointer"> </span></span> </dd> <dt class="button"> </dt> <dd class="button"> <input type="submit" class="button" value="Submit" /> </dd> </dl> </form> <br style="clear: left" /> |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 118 Pomógł: 2 Dołączył: 25.02.2011 Ostrzeżenie: (0%) ![]() ![]() |
Pewnie chcesz gotowca ale nie ma tak łatwo (IMG:style_emoticons/default/biggrin.gif)
1. W <form> musisz wybrać metode GET lub POST oraz ścieżke wykonania(action) wystarczy nazwa skryptu + rozszerzenie 2. Daj warunek czy wszystkie pola są wypełnione, jeśli tak to użyj funkcji mail http://php.net/manual/en/function.mail.php i wyświetl pozytywny komunikat , jeśli nie to wyświetl komunikat o błędzie Tyle ci wystarczy, jak dalej sobie nie poradzisz to wpisz w google: Prosty formularz kontaktowy php Ten post edytował artekp999 27.07.2012, 21:33:01 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 22:30 |