Then use that e-mail address as the default (Space web hosting)

Then use that e-mail address as the default value for the e-mail field on the form. (How clever is that?) Email Address:
/> The following code is very similar to the code used on the admin.php page. It loops through the existing mailing lists in the database and formats them on the page as options for the select field.

The rest of user.php is boring HTML. Let s take a look at the meat and potatoes of the user side of things next. user_transact.php This is where the action happens, for the most part. Let s take a look, shall we? First, make the connection to the server, and select the database: $conn = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS) or die( Could not connect to MySQL database. . mysql_error()); mysql_select_db(SQL_DB, $conn); You will be building the e-mail message later. The parameter $headers will be the fourth parameter of the mail() function, and will insert a From address in the e-mail. $headers = From: . ADMIN_EMAIL . rn ; For more information about headers, see Chapter 11. When loading user_transact.php, you either clicked a button named action (POST), or action is in the URL as ?action=xyz (GET). Because it can come across as a POST or a GET, you use $_REQUEST to grab the value. The variable $_REQUEST is your catch-all predefined variable, which contains an associative array of all $_GET, $_POST, and $_COOKIE variables. if (isset($_REQUEST[ action ])) { switch ($_REQUEST[ action ]) { 505 Mailing Lists
We would like to recommend you tested and proved virtual web hosting services, which you will surely find to be of great quality.

Leave a Reply