HTML-এ ফর্ম সাবমিট হলে ফর্ম-ডেটা কোথায় পাঠানো হবে তা সেট করতে formaction অ্যাট্রিবিউটটি ব্যবহার করুন।
উদাহরণ
নিচের কোডটি চালিয়ে formaction অ্যাট্রিবিউটের ব্যবহার দেখুন:
<!DOCTYPE html> <html> <head> <title>HTML formaction attribute</title> </head> <body> <form action = "/new1.php" method = "get"> Student name: <input type ="text" name = "name"><br> Student Subject: <input type = "text" name = "subject"><br> <button type = "submit">Submit</button><br> <button type = "submit" formaction = "/new2.php">Another page</button> </form> </body> </html>