How should you develop the form?

Posted by: Pdfprep Category: 70-480 Tags: , ,

HOTSPOT

You are developing a form that captures a user’s email address by using HTML5 and jQuery.

The form must capture the email address and return it as a query string parameter. The query string parameter must display the @ symbol used in the email address.

You need to implement this functionality.

How should you develop the form? (To answer, select the appropriate options from the drop-down lists in the answer area.)

Answer:

Explanation:

* serialize ()

Encode a set of form elements as a string ready for submission.

decodeURIComponent

* To decode the string, PHP offers the urldecode() function.

?

echo urldecode(‘name%40website.com’); //restores "[email protected]"

Reference: JavaScript decodeURIComponent() Function

Leave a Reply

Your email address will not be published.