Page 1 of 1

Part 2: In the same file, write a form consisting of a single text field and a submit button. The “action” attribute to

Posted: Sun Jul 03, 2022 10:00 am
by answerhappygod
Part 2: In the same file, write a form consisting of a singletext field and a submit button. The “action” attribute to the formshould be the same page that the form is on (don’t hard code, use$_SERVER[‘PHP_SELF’]). The form should send the contents of thetext field via GET. Upon submitting the form, you should beredirected to the same page, but the URL should contain the stringfrom the text field as a GET request normally behaves. Side Note:Prevent Security Vulnerabilities with $_SERVER['PHP_SELF'].