Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PHP: Using forms, global variables, and GET method. Thanks so much for anyone who can help. I feel bad I posted this before but the
PHP: Using forms, global variables, and GET method.
Thanks so much for anyone who can help. I feel bad I posted this before but the code I was given didn't work at all. Sorry I'm posting it again but I'm really stuck.
The first section of exercise 2 need to be using something like "echo "Data sent using" + $SERVE[im not sure what it is] + "method";" etc etc. Unless that's where the GET method would be, I'm just really lost. Thanks again for the help. If you open the image in its own tab it'll be easier to read too.
Programming Exercises Exercise 1 Write a PHP script that uses the appropriate super global variable to print the following: the protocol used in the request the method used in the request the IP address of the user (hint: use this documentation to find the correct elements of the array to which you should refer) Exercise 2 Build an HTML form that uses the GET method and includes the following inputs: at least 2 text fields at least 2 radio buttons Write a PHP script that can retrieve and display all the information submitted by the user. If the user did not provide all the information, your script should also show again the form pre- filled with the information they already submitted (see image below for example). You should use 2 php scripts to solve this exercise! localhost/CST257/forms/form_X + localhost/CST257/forms/form_process2.php Apps Amazon AWS APIs bash A CS101-semester-... data sc Data sent by the POST method Your first name is Sandra I like chocolate ice cream Make sure to fill out all the fields First Name: Sandra Last Name: What ice cream do you like chocolate vanilla Ostrawberry other Submit
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started