Write an HTML document that includes an anchor tag that calls a PHP document. Also, write the

Question:

Write an HTML document that includes an anchor tag that calls a PHP document. Also, write the called PHP script document, which returns a randomly chosen greeting from a list of five different greetings. The greetings must be stored as constant strings in the script. A random number between 0 and 4 can be computed with these lines:
# Set the seed for mtrand with the number of microseconds
# since the last full second of the clock
mt_srand((double)microtime() * 1000000);
$number = mtrand(0, 4); # Computes a random integer 0-4

Write, test, and debug (if necessary) PHP scripts for the specifications that above.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: