SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 93 | Next

Nirav Mehta

"Mobile Web Development"


On POTR, once the side dishes are selected, we take the delivery address. We use CSS
classes to constrain the input for address fields, zip, and phone. Here's an example:

Zip: "/>
Single-Step Registration and Order
Placement on POTR
In the checkout process, we also allow the user to login so that the address can be
pulled from the registration information. If the user is not registered, she or he can
tick a checkbox to register with the entered address. The following code shows how
we register the user during checkout. Most of the work is done by two methods
provided in the BaseModel??”PopulateFromArray() and Save().
// Save the order and register the user if opted for
Chapter 3
[ 67 ]
if ($_REQUEST["toRegister"] == 1)
{
// Register the user
$userObj = new User();
$userObj->PopulateFromArray($_POST);
if ($userObj->Save())
{
$msg = "Registered successfully.";
$_SESSION["userId"] = $userObj->id;
}
else
{
echo '

Could not register.


Pages:
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105

hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6