سمة تنسيق HTML <input>

❮ HTML علامة <input>

مثال

نموذج HTML به زري إرسال ، بإجراءات مختلفة:

<form action="/action_page.php">
  <label for="fname">First name:</label>
  <input type="text" id="fname" name="fname"><br><br>
  <label for="lname">Last name:</label>
  <input type="text" id="lname" name="lname"><br><br>
  <input type="submit" value="Submit">
  <input type="submit" formaction="/action_page2.php" value="Submit to another page">
</form>

التعريف والاستخدام

تحدد السمة formactionعنوان URL للملف الذي سيعالج عنصر تحكم الإدخال عند إرسال النموذج.

formactionتتجاوز السمة actionسمة <form>العنصر.

ملاحظة: يتم formactionاستخدام السمة مع type="submit"و type="image".


دعم المتصفح

تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم السمة بشكل كامل.

Attribute
formaction Yes 10.0 Yes 5.1 10.6

بناء الجملة

<input formaction="URL">

قيم السمات

Value Description
URL Specifies the URL of the file that will process the input control when the form is submitted.

Possible values:

  • An absolute URL - the full address of a page (like href="http://www.example.com/formresult.asp")
  • A relative URL - points to a file within the current site (like href="formresult.asp")

❮ HTML علامة <input>