Senin, 27 September 2010

komentar



Tujuan dari Bab ini

By the end of this chapter, you will have accomplished the following: Pada akhir bab ini, Anda akan memiliki dicapai sebagai berikut:
  • You will have a working feedback form on your site. Anda akan memiliki formulir umpan balik yang bekerja di situs Anda.
  • You will have completed your website and have a fully functional multi-page website. Anda akan memiliki website anda selesai dan memiliki situs web multi-halaman yang berfungsi penuh.
  • You will have learnt most of the commonly-needed skills needed to create a website using Dreamweaver CS4 and have the knowledge and ability to create other websites if you wish. Anda akan belajar sebagian besar dibutuhkan keterampilan umum yang diperlukan untuk membuat website menggunakan Dreamweaver CS4 dan memiliki pengetahuan dan kemampuan untuk menciptakan situs-situs lain jika Anda inginkan.

Introduction to Forms and Scripts Pengenalan Bentuk dan Script

In the previous chapters, you created web pages that essentially displayed some combination of text and pictures, albeit designed in a nice way with fancy navigation menu bar buttons that reacted to you when you moved your mouse over them. Dalam bab-bab sebelumnya, Anda menciptakan halaman web yang ditampilkan pada dasarnya beberapa kombinasi dari teks dan gambar, meskipun dirancang dengan cara yang menyenangkan dengan menu bar mewah tombol navigasi yang bereaksi untuk anda ketika anda menggerakkan mouse anda ke atas mereka. Such pages were complete in themselves in that once you finished creating them in Dreamweaver and published them, they immediately worked. halaman tersebut telah lengkap dalam diri bahwa setelah Anda selesai membuat mereka dalam Dreamweaver dan diterbitkan mereka, mereka segera bekerja.
Web pages that have forms are a different story. halaman Web yang memiliki bentuk adalah cerita yang berbeda. While you may be able to design a form in Dreamweaver, the form in itself will do nothing. Meskipun Anda mungkin dapat merancang suatu bentuk dalam Dreamweaver, bentuk itu sendiri akan melakukan apa-apa. Your visitor, encountering such a form, can click the "Submit" button till they are blue, and nothing will happen. pengunjung Anda, menghadapi seperti bentuk, bisa klik tombol "Kirim" sampai mereka biru, dan tidak akan terjadi. This is because web pages are essentially just documents that live on the web. Hal ini karena halaman web pada dasarnya hanya dokumen yang hidup di web. They can't send email, save data, or do anything except display information. Mereka tidak bisa mengirim email, menyimpan data, atau melakukan apa pun kecuali menampilkan informasi.
The job of doing things like sending email is left to a computer program which must run on the same computer that your website is on. Tugas melakukan hal-hal seperti mengirim email yang tersisa untuk sebuah program komputer yang harus dijalankan pada komputer yang sama bahwa website Anda berada di. That is, the program must run on your web host's computer, which is known as a web server, since it serves web pages to your visitors. Artinya, program harus berjalan pada's web host komputer anda, yang dikenal sebagai web server, karena berfungsi halaman web ke pengunjung Anda. Such programs running on web servers are commonly called "scripts" in webmaster jargon. Program-program tersebut berjalan pada server web ini biasa disebut "script" dalam jargon webmaster.
The process of sending email via a web form works this way: Proses pengiriman email melalui formulir web bekerja dengan cara ini:
  1. Your visitors complete a form on your website. Pengunjung Anda mengisi formulir di website Anda. This form is known as your feedback form (or contact form). Formulir ini dikenal sebagai bentuk tanggapan Anda (atau form kontak). They then click the "Send" button on the form, in their browser. Mereka kemudian klik "Kirim" tombol di formulir, di browser mereka.
  2. The web browser sends the information to a script (program) residing on your website's server. Web browser mengirimkan informasi ke script (program) yang berada pada server situs Web Anda.
  3. The script takes the information, formats it in a way that is appropriate for an email message, and sends it by email to your mail box. Script mengambil informasi, format dengan cara yang sesuai untuk pesan email, dan mengirimkannya melalui email ke kotak surat Anda.
  4. The script then displays an acknowledgement page, or "thank you" page, so that your visitors know that their message has been successfully sent. Script kemudian menampilkan sebuah halaman pengakuan, atau "terima kasih" halaman, sehingga pengunjung Anda tahu bahwa pesan mereka telah berhasil dikirim.
  5. If there are errors in the message (for example, your visitors forgot to enter their email address), instead of displaying the "thank you" page, the script may display an "error" page so that the visitors will know that the message has not been sent. They can then fix the error and try again, if they wish. Jika ada kesalahan dalam pesan (misalnya, pengunjung Anda lupa untuk memasukkan alamat email mereka), bukan menampilkan "terima kasih", script akan menampilkan sebuah "kesalahan" halaman sehingga pengunjung akan mengetahui bahwa pesan tersebut telah belum dikirim. Mereka kemudian dapat memperbaiki kesalahan dan coba lagi, jika mereka menginginkannya.
In other words, adding a feedback form to your website is not simply a matter of designing a web page with a form. Dengan kata lain, menambahkan formulir umpan balik ke website Anda bukan hanya masalah merancang sebuah halaman web dengan formulir. You will need the following things before the form will work: Anda akan membutuhkan hal-hal berikut ini sebelum bentuk akan bekerja:
  1. You need a web page containing the feedback form itself. Anda perlu halaman web yang mengandung umpan balik bentuk itu sendiri. You will design most of this page using Dreamweaver. Anda akan merancang sebagian besar halaman ini menggunakan Dreamweaver.
  2. Another thing you will need is a "thank you" web page. Hal lain yang Anda akan butuhkan adalah "terima kasih" halaman web. This is also a simple web page which can be designed using Dreamweaver. Ini juga merupakan halaman web sederhana yang dapat dirancang dengan menggunakan Dreamweaver.
  3. And then you will need an "error" web page. Dan kemudian Anda akan memerlukan sebuah "kesalahan" halaman web. Again, this can be easily created with Dreamweaver. Sekali lagi, ini dapat dengan mudah dibuat dengan Dreamweaver.
  4. The engine behind your feedback form is the feedback form script, the computer program that knows what to do when a web browser sends it the information submitted by your visitor. Mesin di belakang formulir umpan balik Anda adalah bentuk umpan balik script, program komputer yang tahu apa yang harus dilakukan ketika sebuah web browser mengirimkannya informasi yang disampaikan oleh pengunjung Anda. You will be using thesitewizard.com's Feedback Form Wizard to create a customized program for your site. Anda akan menggunakan 's thesitewizard.com Formulir Tanggapan Wizard untuk membuat program yang disesuaikan untuk situs Anda. Don't worry, it's free. Jangan khawatir, gratis.
  5. Finally, you will need a web host that will allow you to run PHP scripts (which are a type of computer program) that send email. Not all web hosts allow this, especially free web hosts. Akhirnya, Anda akan memerlukan web host yang akan memungkinkan Anda untuk menjalankan skrip PHP (yang merupakan jenis program komputer) yang mengirim email. Tidak semua web host memungkinkan ini, terutama web host gratis. When I say free web hosts, I include the free hosting that comes with your broadband or dial-up account as well as that which you may get when you register a domain name with some registrars (sometimes called a "starter web page" or the like). Ketika saya mengatakan web host gratis, saya termasuk hosting gratis yang datang dengan broadband atau dial-up account serta yang mungkin Anda dapatkan ketika anda mendaftarkan nama domain dengan beberapa registrar (kadang-kadang disebut "starter halaman web" atau seperti). Even if the free web host says you can run PHP scripts, they often don't allow the scripts to send email. Bahkan jika web host gratis mengatakan bahwa Anda dapat menjalankan skrip PHP, mereka sering tidak membolehkan script untuk mengirim email.
    In view of this, you will probably find that you need a commercial web host before you can successfully use a feedback form script. If you're looking for one, see the Budget Web Hosts page for a list of such hosts or visit my web hosting FAQ for the host that I'm currently using for thesitewizard.com. Dalam pandangan ini, Anda mungkin akan menemukan bahwa Anda memerlukan web host komersial sebelum Anda berhasil dapat menggunakan script formulir umpan balik,. Jika Anda mencari satu melihat Anggaran Web Host halaman untuk daftar host atau kunjungan saya web FAQ hosting untuk host yang saya gunakan saat ini untuk thesitewizard.com.

How to Add a Contact Form to Your Website with Dreamweaver CS4 Bagaimana Tambah Formulir Kontak untuk Website Anda dengan Dreamweaver CS4

If you have skipped the above section, because you thought it was unnecessary, please go back and read it, especially the part about getting a web host that allows you to run scripts. Jika Anda telah melewatkan bagian atas, karena Anda pikir itu tidak perlu, silakan kembali dan membacanya, terutama bagian tentang mendapatkan web host yang memungkinkan Anda untuk menjalankan script. Without such a web host, your feedback form will not work. Tanpa web host, formulir tanggapan Anda tidak akan bekerja.
  1. Generate the Feedback Form Script Menghasilkan Script Formulir Tanggapan

    • Go to the Free Feedback Form Wizard to generate a customized feedback form script. Pergi ke Formulir Komentar Bebas Wizard untuk menghasilkan script Komentar formulir disesuaikan. The wizard can be found at http://www.thesitewizard.com/wizards/feedbackform.shtml Wizard ini dapat ditemukan di http://www.thesitewizard.com/wizards/feedbackform.shtml
    • Read through the Wizard's introductory page, choose the option to create a PHP feedback form script and click "Go to Step 2". Baca melalui halaman pengantar Wizard itu, memilih pilihan untuk membuat script PHP umpan balik bentuk dan klik "Pergi ke Langkah 2".
    • In Step 2, enter the information required by the form: Pada Langkah 2, masukkan informasi yang diperlukan oleh berupa:
      • Email: (Enter your email address) Email: (Masukkan alamat email anda)
      • URL of Feedback Form: http://www.example.com/feedback.html URL Formulir Komentar: http://www.example.com/feedback.html
      • URL of "Thank You" Page: http://www.example.com/thankyou.html URL dari "Thank You" Page: http://www.example.com/thankyou.html
      • URL of "Error" Page: http://www.example.com/error.html URL dari "Error" Page: http://www.example.com/error.html
      You should, of course, replace the "www.example.com" with your actual domain name. Anda harus, tentu saja, ganti "www.example.com" dengan nama domain yang sebenarnya. However, do not change the file name portions, especially "feedback.html" since you have used this filename in your navigation menu bar and site map in the previous chapters. If you change the filename now, all your old links will break. Namun, jangan mengubah bagian nama file, terutama "feedback.html" karena Anda telah menggunakan nama file pada menu bar navigasi Anda dan peta situs pada bab-bab sebelumnya. Jika Anda mengubah nama file sekarang, semua link lama Anda akan pecah.
    • Read the licence agreement. Bacalah perjanjian lisensi. If you agree to the terms, indicate it in the form and click the "Generate script" button to continue. Jika Anda setuju dengan persyaratan, menunjukkan dalam bentuk dan klik "script Hasilkan" tombol untuk melanjutkan.
    • A new page will load. Sebuah halaman baru akan terbuka. Do NOT close this page. JANGAN tutup halaman ini. Leave it open while you work through the next few steps. Biarkan terbuka sementara Anda bekerja melalui beberapa langkah berikutnya. We'll be extracting the code generated on this page section by section in the paragraphs that follow. Kami akan mengekstrak kode yang dihasilkan pada bagian halaman dengan bagian dalam paragraf selanjutnya.
  2. Saving the Script Script yang Menyimpan

    • Start up Dreamweaver. Start up Dreamweaver. Select "File | New..." Pilih "File | New ..." from the menu. dari menu.
    • Click "Blank Page" (yes, "Blank Page" and not your template) in the leftmost column. Klik "Blank Page" (ya, "Blank Page" dan bukan template anda) di kolom paling kiri.
    • In the "Page Type" column, click "PHP". Dalam kolom "Type Halaman", klik "PHP". Click the "Create" button. Klik "Buat" tombol.
    • A blank page should appear. Sebuah halaman kosong akan muncul. Unfortunately, this page is not really blank, and we have to delete the rubbish that Dreamweaver inserted when it created the page. Sayangnya, halaman ini tidak benar-benar kosong, dan kita harus menghapus sampah bahwa Dreamweaver dimasukkan ketika menciptakan halaman.
    • VERY IMPORTANT : click "View | Code" from the menu. SANGAT PENTING: klik "View | Code" dari menu. You should now see the miscellaneous HTML code that Dreamweaver inserted into your php page. Sekarang Anda akan melihat kode HTML lain-lain bahwa Dreamweaver dimasukkan ke dalam halaman php anda. Select everything on the page. Pilih semuanya di halaman. You can do this by using your mouse to drag over everything, or, more simply, hitting Ctrl+A, that is, holding down the Ctrl key and type "a". Anda dapat melakukan ini dengan menggunakan mouse anda untuk menarik atas segala sesuatu, atau, lebih sederhana, menekan Ctrl + A, yaitu menekan tombol Ctrl dan ketik "a". Then hit the DEL key. Kemudian tekan tombol DEL. (Note: Mac users may need to use Command+A rather than Ctrl+A.) (Catatan: Mac pengguna mungkin perlu menggunakan Command + A daripada Ctrl + A.)
      Your window should now be blank. jendela Anda sekarang harus kosong.
    • Switch back to your web browser (without quitting Dreamweaver) and look for the section entitled "Feedback Form Script". It should be the first section in the results page. Beralih kembali ke browser web Anda (tanpa berhenti Dreamweaver) dan mencari bagian yang berjudul "Formulir Tanggapan Script". Ini harus menjadi bagian pertama di halaman hasil. Notice that there is a box under that section. Perhatikan bahwa ada kotak di bawah bagian tersebut. That box contains the feedback form script (program). kotak itu berisi formulir script Komentar (program).
      Select everything in that box. Pilih segala sesuatu dalam kotak itu. For Windows users, one way to do this is to click your mouse somewhere in that box to put your cursor inside it. Untuk pengguna Windows, salah satu cara untuk melakukannya adalah dengan mengklik mouse anda di suatu tempat di kotak untuk menempatkan kursor Anda di dalamnya. Then hit Ctrl+A (hold down the Ctrl key and type "a"). Kemudian tekan Ctrl + A (tahan tombol Ctrl dan ketik "a").
      Copy the selected text to the clipboard. Copy teks yang dipilih ke clipboard. The easy way is to type Ctrl+C (hold down the Ctrl key and type "c") in Windows. Alternatively, you can click the right mouse button and select "Copy" from the menu that appears. Cara mudah adalah dengan mengetikkan Ctrl + C (tahan tombol Ctrl dan ketik "c") pada Windows,. Atau Anda dapat mengklik tombol kanan mouse dan pilih "Copy" dari menu yang muncul.
    • Switch back to Dreamweaver. Kembali ke Dreamweaver. Again, do NOT close your web browser. Sekali lagi, jangan menutup browser web Anda. We're not done with it. Kami tidak dilakukan dengan hal itu.
    • Select "Edit | Paste" from the menu. Pilih "Edit | Paste" dari menu. The entire script generated by the Feedback Form Wizard should appear in your Dreamweaver window. Seluruh script yang dihasilkan oleh Formulir Komentar Wizard akan muncul di jendela Dreamweaver Anda. The last line should show " ?> " in red. Baris terakhir harus menunjukkan " ?> "dalam warna merah. There should be lines above in blue, red and black. If your screen is very large, you may also see lines in orange (or maybe it's yellow). Harus ada garis di atas dengan warna biru, merah dan hitam.. Anda Jika layar sangat besar, mungkin Anda juga akan melihat garis dalam oranye (atau mungkin itu kuning)
      If you do not see this multicoloured text, close the Dreamweaver window without saving anything, and restart this entire step (the "Saving the Script" step). Jika Anda tidak melihat teks ini warna-warni, tutup jendela Dreamweaver tanpa menyimpan apa pun, dan restart langkah ini (yang "Menyimpan Script" langkah).
      Do NOT add, subtract or change anything in the window. JANGAN menambah, mengurangi atau mengubah apa pun di jendela. Leave everything exactly as it is. Biarkan segala sesuatu persis seperti itu. There is nothing you should be customizing in this screen. Tidak ada Anda harus menyesuaikan di layar ini. This is a computer program that you're looking at, not a web page. Ini adalah program komputer yang Anda lihat, bukan halaman web. It is not displayed to your visitors. If you modify anything at all, the program will fail to work correctly. Hal ini tidak ditampilkan kepada pengunjung Anda. Jika Anda mengubah apa-apa, program ini akan gagal untuk bekerja dengan benar.
    • Click "File | Save As..." Klik "File | Save As ..." from the menu. dari menu. Type "feedback.php" (without the quotes) into the "File name" box. Ketik "feedback.php" (tanpa tanda kutip) ke dalam kotak "File name". Do not use any other name. Jangan menggunakan nama lain. Do not add spaces to the name. Jangan menambahkan spasi pada nama. Do not use capital (uppercase) letters. Jangan menggunakan modal (huruf besar) huruf. The name must be exactly as I said. Nama harus persis seperti yang saya katakan. Click the "Save" button. Klik tombol "Simpan".
    • Select "View | Design" from the menu. Pilih "View | Design" dari menu. You should see a blank page. Anda akan melihat halaman kosong. Do NOT type anything here. JANGAN mengetikkan apapun di sini. You're still in the program. Click "File | Close" from the menu to close the window. Kau masih dalam program Klik. "File | Close" dari menu untuk menutup jendela.
  3. Create the Feedback Form Web Page Buat Web Page Formulir Tanggapan

    The feedback form page is just an ordinary web page with a form for your visitors to complete. Halaman formulir umpan balik hanya sebuah halaman web biasa dengan bentuk bagi pengunjung Anda untuk menyelesaikan. As such, you should create it the normal way you create new pages on your website. Dengan demikian, Anda harus membuat dengan cara biasa Anda membuat halaman baru pada website Anda.
    • Select "File | New..." Pilih "File | New ..." from the menu. dari menu. Since you have already created a template for your site in the previous chapter, select "Page from Template" in the first column. Karena Anda telah membuat template untuk situs Anda dalam bab sebelumnya, pilih "Page dari Template" di kolom pertama. Make sure that the preview window shows the template that you've been using and that the "Update page when template changes" checkbox has a tick in it. Click the "Create" button. Pastikan bahwa jendela pratinjau menunjukkan template yang Anda telah menggunakan dan bahwa "Update halaman ketika template perubahan" checkbox memiliki centang di dalamnya. Klik tombol "Buat" tombol.
    • You should be back in familiar territory. Anda akan kembali di wilayah akrab. Change the "Title" field above your web page to "Feedback Form" (or "Contact Form" or "Contact Us" or whatever you prefer). Mengubah "Judul" lapangan atas halaman web Anda ke "Formulir Komentar" (atau "Contact Form" atau "Hubungi Kami" atau apapun yang Anda suka). Use the same text for the "Page Title" editable region. Gunakan teks yang sama untuk wilayah "Judul Halaman" diedit.
    • Select everything in the "Page Content" section and delete it. segala sesuatu Pilih pada bagian "Konten Halaman" dan menghapusnya. You will be replacing it with the form code. Anda akan menggantinya dengan kode formulir.
    • Switch back to your web browser, and locate the section entitled "HTML Code". Beralih kembali ke browser web Anda, dan cari bagian yang berjudul "HTML Code". Notice that there is a box in that section as well. Perhatikan bahwa ada kotak di bagian itu juga. Select everything in that box and copy it to the clipboard as before. segala sesuatu Pilih dalam kotak itu dan menyalinnya ke clipboard seperti sebelumnya. (See above section if you've forgotten how to do this.) (Lihat di atas bagian tersebut, jika Anda lupa bagaimana untuk melakukan hal ini.)
    • Switch to Dreamweaver. Beralih ke Dreamweaver. Make sure that your text cursor is in your "Page Content" editable region. Pastikan bahwa kursor teks Anda dalam "Content Page" Anda wilayah diedit. Specifically, it should be at the position where you want to insert the form code. Secara khusus, harus berada di posisi mana Anda ingin menyisipkan kode formulir.
    • Click "View | Code" from the menu. Klik "View | Code" dari menu. Dreamweaver will now display the underlying HTML code of your web page. Dreamweaver sekarang akan menampilkan kode HTML yang mendasari halaman web Anda.
    • Look for your blinking text cursor on the page. Cari kursor berkedip teks Anda pada halaman. It should be sandwiched between characters in a line that says " <p>&nbsp;</p> ". Ini harus terjepit di antara karakter dalam baris yang mengatakan " <p>&nbsp;</p> ". In particular, it should be just after the " <p> " tag and before " &nbsp;</p> ". Secara khusus, itu harus hanya setelah " <p> tag "dan sebelum" &nbsp;</p> ".
    • Use the arrow keys on your keyboard and move the cursor to the end of the line, that is, to immediately after " <p>&nbsp;</p> " on the same line. Gunakan tombol panah pada keyboard Anda dan memindahkan kursor ke akhir baris, yaitu segera setelah " <p>&nbsp;</p> "pada baris yang sama.
    • Click "Edit | Paste" from the menu to paste the code you copied from the browser earlier. Klik "Edit | Paste" dari menu untuk menyisipkan kode Anda menyalin dari browser sebelumnya.
    • Click "View | Design" from the menu to switch back to the "Design" mode that you normally use. Klik "View | Design" dari menu untuk beralih kembali ke mode "Design" yang biasa Anda gunakan. You should now be able to see the form. Anda sekarang harus mampu melihat formulir.
  4. Customizing the Feedback Form Page Menyesuaikan Formulir Komentar

    The visual appearance of the feedback form can be customized. Tampilan visual bentuk umpan balik dapat disesuaikan. You already know how to do things like change the colour of the text from previous chapters, so I shall merely describe how you can change the size of the various fields in the form. Anda sudah tahu bagaimana melakukan hal-hal seperti mengubah warna teks dari bab-bab sebelumnya, jadi saya hanya akan menjelaskan bagaimana Anda dapat mengubah ukuran dari berbagai bidang dalam formulir.
    • How to Widen the Name and Email fields Bagaimana Memperluas bidang Nama dan Email

      Before you start changing the sizes of the various fields, you should probably know that the visible sizes of the fields do not control how much information your visitor can enter into them. Sebelum Anda mulai mengubah ukuran dari berbagai bidang, Anda mungkin harus tahu bahwa ukuran terlihat bidang tidak mengontrol berapa banyak informasi pengunjung Anda dapat masuk ke dalamnya. That is, even if you give a very narrow box for your (say) "Name" field, your visitors can still enter extremely long names into them. Artinya, bahkan jika Anda memberikan kotak yang sangat sempit untuk) Anda (misalnya Nama "lapangan", pengunjung masih dapat memasukkan nama yang sangat panjang ke dalamnya. The web browser will simply scroll to allow the visitor to continue entering information. Web browser hanya akan gulir ke memungkinkan pengunjung untuk terus memasukkan informasi.
      Having said that, it's still useful to be able to change the sizes of the fields so that the form fits better into your website's decor. Setelah mengatakan itu, masih berguna untuk dapat mengubah ukuran bidang sehingga membentuk cocok lebih baik ke dalam situs internet dekorasi Anda.
      To increase the width of the "Name" field, click somewhere in the box next to "Name". Untuk meningkatkan lebar kolom "Nama", klik di suatu tempat di kotak di samping "Nama". Dreamweaver will display the box with a dotted outline to show that it has been selected. Dreamweaver akan menampilkan kotak dengan garis putus-putus untuk menunjukkan bahwa ia telah dipilih. In the PROPERTIES panel at the bottom of the Dreamweaver window, change the "Char width" field to some other number than the default "25". Pada panel PROPERTI di bagian bawah jendela Dreamweaver, mengubah "lebar Char" lapangan untuk beberapa nomor selain default "25". For example, if you want the field to be wider, try entering "30" (without the quotation marks) followed by the ENTER key, and see if the result is acceptable to you in the window above. Sebagai contoh, jika Anda ingin lapangan menjadi semakin luas, coba masukkan "30" (tanpa tanda kutip) diikuti dengan tombol ENTER, dan lihat apakah hasilnya dapat diterima oleh anda di jendela di atas. If not, just change the number until the field has a width that is suitable. Jika tidak, hanya mengubah nomor sampai lapangan memiliki lebar yang sesuai.
      The same method applies to the "Email" field. Metode yang sama berlaku untuk kolom "Email".
      You can also change the text appearing in the web page next to the fields. Anda juga dapat mengubah teks yang muncul di halaman web sebelah ladang. That is, if you prefer something other than "Name:", "Email address:" and "Comments" being displayed on your web page, feel free to change them. Artinya, jika Anda lebih suka sesuatu selain "Nama:", "Email address:" dan "Komentar" yang ditampilkan pada halaman web Anda, jangan ragu untuk mengubahnya. (For example, you may want to translate it to the same language as the rest of your site, if your site is not in English.) (Sebagai contoh, Anda mungkin ingin menerjemahkannya ke dalam bahasa yang sama sebagai bagian dari situs Anda, jika situs Anda tidak dalam bahasa Inggris.)

      Caution Hati-hati

      You should not modify anything in the PROPERTIES panel other than the "Char width" field and the "Class" field, which is basically the same as the "Class" field you met in chapter 3's How to Change Font Typefaces, Weight, Style, Colour and Sizes in Dreamweaver CS4 . Anda tidak harus memodifikasi apa pun di panel PROPERTI selain Char lebar "lapangan" dan "Kelas" lapangan, yang pada dasarnya adalah sama dengan Class "lapangan" Anda bertemu pada bab 3's Bagaimana Mengubah Font tipografi, Berat, Gaya, Warna dan Ukuran dalam Dreamweaver CS4 .
      While you may freely modify things that affect the appearance of your web page (such as the "Char width" and "Class" fields), the other values appearing in the PROPERTIES panel may be used by the feedback form script to obtain the information it needs to send you the email. Meskipun Anda dapat dengan bebas memodifikasi hal-hal yang mempengaruhi tampilan halaman web Anda (seperti "lebar Char" dan "Kelas" field), nilai-nilai lainnya yang muncul dalam panel PROPERTI dapat digunakan oleh script formulir feedback untuk memperoleh informasi yang perlu mengirimkan email. Modifying them may break the functionality of your form. Memodifikasi mereka bisa pecah fungsi formulir Anda.
      In particular, do not change the words "fullname", "email" and "comments" appearing in the PROPERTIES panel, not even to translate them. Secara khusus, jangan mengubah kata-kata "nama lengkap", "email" dan "komentar" muncul pada panel PROPERTI, bahkan untuk menerjemahkannya. Those are internal information used by the script and will not be displayed to your visitors, so there's no need to touch them. Mereka adalah informasi internal yang digunakan oleh script dan tidak akan ditampilkan kepada pengunjung Anda, jadi tidak perlu menyentuh mereka.
      The form is actually designed to work out-of-the-box, so if you can't think of anything to change, don't feel obliged to do so. These sections are meant for the compulsive customizers. Bentuknya yang sebenarnya dirancang untuk bekerja out-of-the-box, jadi jika Anda tidak bisa memikirkan apa pun untuk perubahan, tidak merasa wajib untuk melakukannya. Bagian-bagian ini dimaksudkan untuk customizers kompulsif.
    • How to Change the Width and Height of the Comments field Bagaimana Mengubah Lebar dan Tinggi dari bidang Komentar

      The width and height of the "Comments" box can also be changed. Lebar dan tinggi kotak "Komentar" juga dapat diubah. To do this, click the box. Untuk melakukan ini, klik kotak.
      In the PROPERTIES panel, the "Char width" field affects the width of the comments field while the "Num lines" field controls the height. Pada panel PROPERTI, yang "lebar Char" lapangan mempengaruhi lebar kolom komentar sementara "Num baris" lapangan kontrol ketinggian. Feel free to change these two numbers so that the box has the dimensions you want. Jangan ragu untuk mengubah dua nomor sehingga kotak memiliki dimensi yang Anda inginkan.
      Again, as mentioned earlier, the size of the field does not affect the length of the message that your visitor can send you. Sekali lagi, seperti yang disebutkan sebelumnya, ukuran lapangan tidak mempengaruhi panjang pesan yang pengunjung Anda dapat mengirim Anda. It's just a visual effect. Ini hanya efek visual. The web browser will scroll the box if your visitor has a long story to tell and your box is too small, so you don't have to worry about creating a huge enough box for those people. Browser web akan gulir kotak jika pengunjung Anda memiliki cerita panjang untuk memberitahu dan komputer anda terlalu kecil, sehingga Anda tidak perlu khawatir tentang cara membuat sebuah kotak yang cukup besar untuk orang-orang.
      Caution: do not change anything else in the PROPERTIES panel, other than the "Char width", "Num lines" and "Class" fields. Perhatian: tidak mengubah apa pun di panel PROPERTI, selain "lebar Char", "Num garis" dan kolom "Class".
    • How to Change the "Send Feedback" button Bagaimana Mengubah "Kirim Komentar" tombol

      The text appearing on the "Send Feedback" button can also be changed. Teks yang muncul pada tombol "Kirim Komentar" juga dapat diubah. This is especially important if your page is not in English and you want the button to display information in the correct language. Hal ini sangat penting jika halaman Anda tidak dalam bahasa Inggris dan Anda ingin tombol untuk menampilkan informasi dalam bahasa yang benar.
      To modify the text, click the button. Untuk memodifikasi teks, klik tombol. Change the text in the "Value" field in the PROPERTIES panel. Ubah teks di kolom "Value" pada panel SIFAT. Once again, you should not change anything else in that panel, other than the "Value" and "Class" fields. Sekali lagi, Anda tidak harus mengubah apa pun di panel itu, selain "Nilai" dan "Kelas" bidang.
  5. Save the Feedback Form Web Page Simpan Halaman Web Formulir Tanggapan

    When you're through with your customizations, click "File | Save As" from the menu, type "feedback.html" (without the quotes) into the "File name" field and click the "Save" button. Ketika Anda melalui dengan kustomisasi Anda, klik "File | Save As" dari menu, "tipe" feedback.html (tanpa tanda kutip) ke dalam File name "field" dan klik "Simpan" tombol.
    Close the file with "File | Close". Tutup file dengan "File | Close".
  6. Create the "Thank You" and "Error" Web Pages Membuat "Thank You" dan "Error" Halaman Web

    As mentioned earlier, you will need to create 2 additional pages. Seperti disebutkan sebelumnya, Anda akan perlu untuk menciptakan 2 halaman tambahan. These are straightforward web pages that you should have no trouble creating, since you've already created so many in these last couple of chapters. Ini adalah halaman web langsung bahwa Anda harus memiliki kesulitan menciptakan, karena Anda telah membuat begitu banyak dalam beberapa terakhir bab.
    The first page that you need to design is the "Thank You" page. Halaman pertama yang Anda butuhkan untuk merancang adalah "Terima Kasih" halaman. This page is displayed when the feedback form script successfully sends the message typed by your visitor. Halaman ini ditampilkan ketika naskah formulir umpan balik berhasil mengirimkan pesan yang diketik oleh pengunjung Anda. The main purpose of the page is to confirm that the message has been transmitted. Most websites take this opportunity to thank the visitor for sending his/her comments as well. Tujuan utama dari halaman ini adalah untuk mengkonfirmasi bahwa pesan telah dikirim. Website Sebagian mengambil kesempatan ini untuk mengucapkan terima kasih kepada pengunjung untuk mengirimkan / komentar nya juga.
    There are no rules about what you should say here. Tidak ada aturan tentang apa yang harus Anda katakan di sini. Say whatever you like. Katakanlah apa pun yang Anda suka. If you're at a loss for words, here's one possibility that you can use for your web page: Jika Anda bingung untuk kata-kata, ini satu kemungkinan yang dapat Anda gunakan untuk halaman web Anda:

    Message Sent Pesan Terkirim

    Your message has been sent to the webmaster. Pesan Anda telah dikirim ke webmaster. Thank you for your comments. Terima kasih atas komentar Anda.
    If you are running a business, you may want to give a more customer-friendly message: Jika Anda menjalankan bisnis, Anda mungkin ingin memberikan pesan pelanggan lebih ramah:

    Thank You for Your Feedback Terima kasih atas Komentar Anda

    Thank you for your comments. Terima kasih atas komentar Anda. If your message requires a reply, I typically reply within 24 hours of the receipt of the message. Jika pesan Anda membutuhkan balasan, saya biasanya membalas dalam waktu 24 jam setelah diterimanya pesan.
    After you create your "Thank You" page, save it with the filename "thankyou.html". Setelah Anda membuat Anda "Terima Kasih" halaman, simpan dengan nama file "thankyou.html". This is the name you gave the Feedback Form Wizard earlier, so you should not change the name now or your visitor will get a " 404 File Not Found " error instead of the "Thank You" page when they submit your form. Ini adalah nama yang Anda berikan Formulir Komentar Wizard sebelumnya, sehingga Anda tidak harus mengubah nama sekarang atau pengunjung Anda akan mendapatkan " 404 File Tidak Ditemukan "kesalahan bukan Thank You" halaman "ketika mereka menyerahkan formulir Anda.
    The second page that you need to design is the "Error" page. Halaman kedua yang Anda butuhkan untuk merancang adalah "Kesalahan" halaman. This page is displayed when your visitors fail to provide their name or email address when submitting the form. Halaman ini ditampilkan ketika pengunjung Anda gagal untuk memberikan nama atau alamat email saat mengirimkan formulir tersebut. Since this information is needed by the script to create a properly-formed email message, the script (by default) displays the Error page if the information is missing. Karena informasi ini dibutuhkan oleh script untuk membuat pesan email-dibentuk dengan benar, script (secara default) menampilkan halaman Error jika informasi yang hilang.
    Again, there are no rules about what to say on this page. Sekali lagi, tidak ada aturan mengenai apa yang harus kukatakan pada halaman ini. For those who are really stuck, here's one possibility: Bagi mereka yang benar-benar terjebak, ini satu kemungkinan:

    Error Kesalahan

    Please enter your name and email address before submitting the form. Silakan masukkan nama dan alamat email sebelum mengirimkan formulir. Click the "Back" button in your browser to return to the form to fix the error. Klik tombol "Back" pada browser Anda untuk kembali ke bentuk untuk memperbaiki kesalahan.
    When you've completed your Error page, save it with the filename "error.html". Bila Anda telah menyelesaikan halaman Kesalahan Anda, simpan dengan nama file "error.html". Again, do not use some other name, since this is the name that you gave the Feedback Form Wizard earlier. Sekali lagi, jangan menggunakan beberapa nama lain, karena ini adalah nama yang Anda berikan Komentar Wizard Formulir sebelumnya. The exact name was embedded in the script created, so you should not change it if you want the script to work correctly. Nama yang tepat adalah tertanam dalam naskah diciptakan, sehingga Anda tidak perlu mengubahnya jika anda ingin skrip untuk bekerja dengan benar.
  7. Publish Your Pages Anda Publikasikan Halaman

    Publish your pages with "Site | Synchronize Sitewide..." Anda Publikasikan halaman dengan "Situs | Sinkronisasi seluruh situs ..." as you did in the previous chapter. seperti yang Anda lakukan dalam bab sebelumnya. This time, Dreamweaver should show you 4 pages to be uploaded (or five, if you count your template file, which you should of course set to "Ignore" as before), namely, "error.html", "feedback.html", "feedback.php" and "thankyou.html". Kali ini, Dreamweaver akan menunjukkan kepada anda 4 halaman untuk di-upload (atau lima, jika Anda menghitung file template Anda, yang tentu saja Anda harus set ke "Abaikan" seperti sebelumnya), yaitu, "error.html", "feedback.html" , "feedback.php" dan "thankyou.html".

Testing Your Feedback Form Pengujian Formulir Komentar Anda

You should now test to see if your feedback form works. Anda sekarang harus menguji untuk melihat apakah formulir saran Anda bekerja. Connect to your site with a browser, click the link to your feedback form and check the following situations: Hubungkan ke situs Anda dengan browser, klik link ke formulir umpan balik Anda dan memeriksa situasi berikut:
  1. To test the Error page, don't enter the email address on your form. Untuk menguji halaman Error, jangan masukkan alamat email pada formulir Anda. The error page should show. If the "Thank You" page appears instead, it's probably because you used one of the "Advanced Options" in the Wizard to disable the email address checking. Halaman kesalahan harus menunjukkan. Jika "Thank You" muncul halaman, bukan, itu mungkin karena Anda menggunakan salah satu "Advanced Options" dalam Wizard untuk menonaktifkan memeriksa alamat email. If you did that (not a good idea, in my opinion), then of course the Error page will not show. Jika Anda melakukan itu (bukan ide yang baik, menurut pendapat saya), maka tentu saja halaman Kesalahan tidak akan muncul.
  2. To test the proper sending of email, just use the form to send yourself a message. Untuk menguji pengiriman email tepat, cukup gunakan formulir ini untuk mengirim sendiri pesan. Make sure you fill in all the fields. After you click the "Send Feedback" button, you should see your "Thank You" page. Pastikan Anda mengisi semua bidang. Setelah Anda mengklik "Kirim Komentar" tombol, Anda akan melihat Anda "Terima Kasih" halaman. Check your email to make sure that you've received the message you sent. Periksa email Anda untuk memastikan bahwa Anda telah menerima pesan yang Anda kirimkan.
If you run into problems when you test the script or if you do not receive the message you sent, please see the Frequently Asked Questions (FAQ) about the Feedback Form Wizard page for the solution. Jika Anda mengalami masalah ketika Anda mencoba script atau jika Anda tidak menerima pesan yang Anda kirimkan, silakan lihat Pertanyaan yang Sering Diajukan (FAQ) tentang Formulir Komentar Wizard halaman untuk solusi. The FAQ contains a huge list of answers from my many years of helping newcomers set up their own feedback form. FAQ berisi daftar besar jawaban dari bertahun-tahun saya membantu pendatang baru untuk membuat formulir umpan balik mereka sendiri. You should also reread this chapter to make sure you didn't miss anything crucial. Anda juga harus membaca bab ini untuk memastikan Anda tidak kehilangan apa-apa penting.

Conclusion Kesimpulan

Congratulations! Selamat! You now have a fully functional website, complete with a home page, a site map, an "About Us" page and even a working contact form. Anda sekarang memiliki website fungsional penuh, lengkap dengan halaman rumah, peta situs, sebuah "Tentang Kami" halaman dan bahkan formulir kontak kerja. More importantly, you now have the knowledge and ability to use Dreamweaver CS4 to design and publish new websites as and when you wish. Lebih penting lagi, Anda sekarang memiliki pengetahuan dan kemampuan untuk menggunakan Dreamweaver CS4 untuk merancang dan mempublikasikan website baru dan ketika Anda inginkan.
If you're wondering where to go from here, check out the article The Beginner's AZ Guide to Starting/Creating Your Own Website for an overview of the rest of the website creation process. Jika Anda bertanya-tanya ke mana harus pergi dari sini, periksa artikel The Beginner's AZ Panduan Memulai / Membuat Website Anda Sendiri untuk ikhtisar dari sisa proses pembuatan website. Even though you have already finished your site, you should still read the section on "Designing Your Web Pages" for the links to other web design articles. Meskipun Anda telah selesai situs Anda, Anda masih harus membaca bagian tentang "Merancang Halaman Web Anda" untuk link ke artikel desain web lain. Those articles deal with other principles of good web design not covered in this tutorial series. Mereka menangani artikel dengan prinsip-prinsip lain desain web yang baik tidak tercakup dalam seri ini tutorial.

Tidak ada komentar:

Posting Komentar