848Part VCase StudiesListing 44-10(continued) strlen($_POST[ gender ]) == 1 && (Photography web hosting)
848Part VCase StudiesListing 44-10(continued) strlen($_POST[ gender ]) == 1 && strlen($_POST[ priv_profile ]) == 1) { // Send data to db// I m not bothering to check the stringlength of these// because I m URL-encoding them$as_photo_url = addslashes($_POST[ photo_url ]); $ue_photo_url = urlencode($as_photo_url); $as_homepage_url = addslashes($_POST[ homepage_url ]); $ue_homepage_url = urlencode($as_homepage_url); $as_fav_link1 = addslashes($_POST[ fav_link1 ]); $ue_fav_link1 = urlencode($as_fav_link1); $as_fav_link2 = addslashes($_POST[ fav_link2 ]); $ue_fav_link2 = urlencode($as_fav_link2); $as_fav_link3 = addslashes($_POST[ fav_link3 ]); $ue_fav_link3 = urlencode($as_fav_link3); $as_location = addslashes($location); $query = UPDATE userSET photo = $ue_photo_url , homepage = $ue_homepage_url , link1 = $ue_fav_link1 , link2 = $ue_fav_link2 , link3 = $ue_fav_link3 , location = $as_location , country = $country , gender = $gender , priv_profile = $priv_profileWHERE user_name = $user_name ; $result = mysql_query($query); if (!$result) { $status_message = Problem with user data entry ; } else { $status_message = Successfully edited user data ; } } elseif (strlen($_POST[ gender ]) > 1 && strlen($_POST[ priv_profile ]) > 1) { // Bad user, smack on wrist$status_message = You re trying to do something very . odd with this form. Stop it now. ; } // Get previously-existing data$query = SELECT photo, homepage, link1, link2, link3, . location, country, gender, priv_profileFROM userWHERE user_name = $user_name ; $result = mysql_query($query); // Shall we have an error message if no data comes back? $user_array = mysql_fetch_array($result);
You want to have a cheap webhost for your apache application, then check apache web hosting services.