TAILIEUCHUNG - Beginning PHP6, Apache, MySQL Web Development- P13

Beginning PHP6, Apache, MySQL Web Development- P13:Welcome to Beginning PHP6, Apache, MySQL Web Development , your new trusty resource for assistance in creating your own dynamic web sites. There are a lot of technologies available that can be used to deliver great web sites, and we ’ re glad you chose the Apache/MySQL/PHP (sometimes referred to simply as AMP) approach. You may or may not have had a taste of these three components in the past, but either way we ’ re confident that you will be impressed with the power that lies within them | Chapter 11 Sending E-mail message TEXT PRIMARY KEY email_id ENGINE MyISAM mysql_query query db or die mysql_error db echo Success 2. Run and you should see the success message displayed. 3. Open up in your editor and replace its content with the following code php require db mysql_connect MYSQL_HOST MYSQL_USER MYSQL_PASSWORD or die Unable to connect. Check your connection parameters. mysql_select_db MYSQL_DB db or die mysql_error db html head title Send Postcard title script type text javascript function assign change_postcard_image to select field var s postcard_select change_postcard_image function change_postcard_image var s postcard_select var i postcard var x update image s src and alt attributes x .value x .text script head body h1 Send Postcard h1 form method post action table tr td Sender s Name td td input type text name from_name size 40 td tr tr td Sender s E-mail td td input type text name from_email size 40 td 331 Part II Comic Book Fan Site tr tr td Recipient s Name td td input type text name to_name size 40 td tr tr td Recipient s E-mail td td input type text name to_email size 40 td tr tr td Choose a Postcard td td select id postcard_select name postcard php query SELECT image_url description FROM pc_image ORDER BY description result mysql_query query db or die mysql_error row mysql_fetch_assoc result extract row mysql_data_seek result 0 while row mysql_fetch_assoc result echo option value . row image_url . . row description . option mysql_free_result result select td tr tr td colspan 2 img id postcard src php echo image_url alt php echo description td tr tr td Subject td td input type text name subject size 80 td tr tr td colspan 2 textarea cols 76 rows 12 name message Enter your message here textarea td tr tr td colspan 2 input type submit .

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
6    4    0    14-08-2020
36    4    0    14-08-2020
TÀI LIỆU XEM NHIỀU
13    6    0
2    6    0
TÀI LIỆU HOT
6    4    0
TÀI LIỆU LIÊN QUAN
4    13    0
11    3    0