فرم ثبت نام
فرمی طراحی کنید که اطلاعات زیر را با استفاده از بهترین عناصر از کاربر دریافت کند و به صفحه register/ به روش post ارسال کند
نام
نام خانوادگی
جنسیت
سن
شهر
رنگ مورد علاقه
تاریخ تولد
شماره موبایل
آدرس
فرمی طراحی کنید که اطلاعات زیر را با استفاده از بهترین عناصر از کاربر دریافت کند و به صفحه register/ به روش post ارسال کند
نام
نام خانوادگی
جنسیت
سن
شهر
رنگ مورد علاقه
تاریخ تولد
شماره موبایل
آدرس
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>form</title> </head> <style> .form{ width: 100%; max-width: 600px; font-size: 20px; background-color: aqua; color: black; border: 2px solid black; border-radius: 20px; box-shadow: 0 0 5px black; padding: 10px; margin: 5px; } .form input{ border-radius: 10px; font-size: 20px; } #btn{ border-radius:10px ; background-color: black; color: aqua; } </style> <body> <form action="/regester " method="post" class="form"> <label for="fname">fname</label> <input type="text" id="fname" placeholder="name"> <br> <label for="lname">lname</label> <input type="text" id="lname" placeholder="lname"> <br> <label for="woman">woman</label> <input type="checkbox" id="woman" > <br> <label for="man">man</label> <input type="checkbox" id="man" > <br> <label for="age">age</label> <input type="number" id="age" placeholder="age"> <br> <label for="city">city</label> <input type="text" id="city" placeholder="city"> <br> <label for="color">color</label> <input type="text" id="color" placeholder="color"> <br> <label for="birthday">birthday date</label> <input type="date" id="birthday" placeholder="birthday"> <br> <label for="p-number">p-number</label> <input type="tel" id="p-number" placeholder="p-number"> <br> <label for="addres">addres</label> <input type="text" id="addres" placeholder="addres"> <br> <button id="btn">forward</button> </form> </body> </html>
<!DOCTYPE html> <html lang="fa"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>فرم ثبت نام</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; padding: 20px; } form { background: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } input, select, textarea { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 4px; } button { background-color: #5cb85c; color: white; padding: 10px; border: none; border-radius: 4px; cursor: pointer; } button:hover { background-color: #4cae4c; } </style> </head> <body> <h2>فرم ثبت نام</h2> <form action="/register/" method="POST"> <label for="first_name">نام:</label> <input type="text" id="first_name" name="first_name" required> <label for="last_name">نام خانوادگی:</label> <input type="text" id="last_name" name="last_name" required> <label for="gender">جنسیت:</label> <select id="gender" name="gender" required> <option value="مرد">مرد</option> <option value="زن">زن</option> <option value="دیگر">دیگر</option> </select> <label for="age">سن:</label> <input type="number" id="age" name="age" min="1" required> <label for="city">شهر:</label> <input type="text" id="city" name="city" required> <label for="favorite_color">رنگ مورد علاقه:</label> <input type="text" id="favorite_color" name="favorite_color" required> <label for="birth_date">تاریخ تولد:</label> <input type="date" id="birth_date" name="birth_date" required> <label for="phone">شماره موبایل:</label> <input type="tel" id="phone" name="phone" pattern="[0-9]{10}" required placeholder="10 رقم بدون صفر اول"> <label for="address">آدرس:</label> <textarea id="address" name="address" rows="4" required></textarea> <button type="submit">ثبت نام</button> </form> </body> </html>
تابعی بنویسید که 2 عدد به عنوان پارامتر (a و b) دریافت کند و a را به توان b برساند و برگرداند
برنامه ای بنویسید که سن کاربر را از ورودی دریافت کند و بررسی کند که اگر سن کاربر کمتر از ۲۰ بود خطایی throw/raise کند و در غیر این صورت پیغام خوش آمد گویی چاپ کند
کلاسی به اسم Vehicle بنویسید که دارای ویژگی های model و color باشد و متدی به اسم get_info داشته باشد که همه ویژگی های آن را به عنوان یک استرینگ برگرداند سپس کلاسی به اسم Car بنویسید که از Vehicle ا...
برنامه ای بنویسید که نمرات دروس یک دانشجو و تعداد واحد هرکدام از آنها را دریافت کند (دریافت نمره و تعداد واحد تا وارد شدن عدد 0 ادامه پیدا کند) در نهایت معدل دانشجو طبق فرمول زیر در خروجی چاپ شودنم...
کد css بنویسید که همه المان های زیر را یکباره انتخاب کند و رنگ پس زمینه آنها را به زرد تغییر دهد <div id="box" class="yellow"></div><div class="yellow"></div><div class="yellow mybox"></div>
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام
اگه متوجه تمرین نمیشی یا به هر دلیلی نمیتونی حلش کنی، کاملا طبیعیه، اشکالی نداره؛ ناراحت نشو
😊
سعی کن تمرینات آسون تر رو ببینی و جواب های مختلفی که دیگران ارسال کرده اند رو بررسی کنی و
یواش یواش به سراغ تمرینات سخت تر بری.
همچنین ممکنه جوابت درست باشه ولی با سایر جواب ها متفاوت باشه
اگه برنامه نویسی رو هنوز شروع نکردی یا خوب یاد نگرفتی، میتونی از طریق لینک زیر یاد بگیری