address. Once you (Cpanel web hosting) get the confirmation, you know
address. Once you get the confirmation, you know the user entered a good e-mail address, and you can go ahead and send the e-mail. This act of achieving confirmation is the first step toward creating a workflow application. Workflow applications are covered in more detail in Chapter 13, but for now just understand that a workflow application is one that requires input from various parties before it reaches its final destination. To accommodate this workflow, your application must undergo a metamorphosis from what it was in the past. The sendmail.php script must be split into two separate processes such that, in between the two processes, you wait for confirmation. Much of the code you have used so far in sendmail.php will be recycled. If you are an experienced developer, we are sure you know very well how to cannibalize your old code! If you are not familiar with cannibalization, now is the time to learn. Sometimes you need to write a function that you have written before in another application. With a couple of modifications, it would work in your new app. So, you copy and paste it into your new application and make the necessary changes. Voila, your first cannibalization! To confirm an e-mail address, the postcard information needs to be temporarily stored in a table, to be retrieved later on, once confirmation has been established: Try It Out Getting Confirmation In this exercise, you ll implement the confirmation e-mail into your application. (You may want to save your old postcard.php and sendmail.php files and start new files from scratch before making this change.) 1. Open your favorite PHP editor and create a new PHP file called db_makeconfirm.php. Make sure you use the correct server, username, and password. confirm created. ?> 340 Chapter 11
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.