Web

How form submission works

Në shqip: Si dërgohet një formular

ShpjegimiSQ

Një <form> me action="/regjistrohu" dhe method="post" ia dërgon fushat serverit kur shtypet butoni, dhe faqja rifreskohet. Me JavaScript (fetch + preventDefault) e dërgon pa rifreskim.

EnglishEN

A <form> with action="/signup" and method="post" sends its fields to the server when the button is pressed, and the page reloads. With JavaScript (fetch + preventDefault) you send it without reloading.

Si ta mendosh

Si të hedhësh një formular në kutinë postare të zyrës.

Lexoje në anglisht

Like dropping a form into the office letterbox.

Shembull kodihtml

<form action="/regjistrohu" method="post">
  <input name="email" type="email" required>
  <button>Regjistrohu</button>
</form>

Terma të lidhur