merubah form registrasi,ke pdf

boncik89 · Nov 16, 2011
mas saya mau tanya,, untuk merubah form data registrasi menjadi pdf bagai mana??dimana setelah peserta mengklik submit,makan data peserta akan menjadi file PDF,yang dapat di download oleh peserta contoh kasus
<div id="">
    
    <div class="news_box">
              <h2>Pendaftaran Peserta</h2>		
        <div class="news_info">November 28, 2048 | <strong>Author:</strong> <a href="#">Steve</a> | <strong>Category:</strong> <a href="#">CSS Templates</a> </div>
        
      <form id="formdaftar" name="formdaftar" method="post" action="proses daftar.php">
        <table width="99%" border="0">
   	        <tr>
   	          <td width="20%">1.<strong>Data Diri</strong></td>
   	          <td width="80%">:</td>
            </tr>
   	        <tr>
   	          <td>Nama Lengkap *</td>
   	          <td>:
              <input type="text" name="nama" id="nama" /></td>
            </tr>
   	        <tr>
   	          <td>Tempat Lahir</td>
   	          <td>:
              <input type="text" name="tempat_lhr" id="tempat_lhr" /></td>
            </tr>
   	        <tr>
   	          <td>Tangal Lahir </td>
   	          <td>:Tgl
   	            <select name="tgl" id="tgl">
                	<option value=""></option>
					<option value="1" >1</option>
					<option value="2" >2</option>
					<option value="3" >3</option>
					<option value="4" >4</option>
					<option value="5" >5</option>
					<option value="6" >6</option>
					<option value="7" >7</option>
					<option value="8" >8</option>
                    <option value="9" >9</option>
					<option value="10" >10</option>
					<option value="11" >11</option>
                    <option value="12" >12</option>
					<option value="13" >13</option>
					<option value="14" >14</option>
					<option value="15" >15</option>
					<option value="16" >16</option>
					<option value="17" >17</option>
					<option value="18" >18</option>
					<option value="19" >19</option>
                    <option value="20" >20</option>
					<option value="21" >21</option>
                    <option value="22" >22</option>
					<option value="23" >23</option>
					<option value="24" >24</option>
					<option value="25" >25</option>
					<option value="26" >26</option>
					<option value="27" >27</option>
					<option value="28" >28</option>
					<option value="29" >29</option>
                    <option value="30" >30</option>
					<option value="31" >31</option>
              	</select>
   	            /Bulan
   	            <select name="bulan" id="bulan">
                	<option value=""></option>
					<option value="Januari" >Januari</option>
					<option value="februari" >Februari</option>
					<option value="maret" >Maret</option>
					<option value="april" >April</option>
					<option value="mei" >Mei</option>
					<option value="juni" >Juni</option>
					<option value="juli" >Juli</option>
					<option value="agustus" >Agustus</option>
                    <option value="september" >September</option>
					<option value="oktober" >Oktober</option>
					<option value="november" >November</option>
					<option value="desember" >Desember</option>
                </select>
   	            /Tahun
   	            <select name="tahun" id="tahun">
                </select></td>
            </tr>
   	        <tr>
   	          <td>Email *</td>
   	          <td>:
              <input type="text" name="email" id="email" /></td>
            </tr>
   	        <tr>
   	          <td>No Tlp *</td>
   	          <td>:
              <input type="text" name="tlp" id="tlp" /></td>
            </tr>
   	        <tr>
   	          <td>&nbsp;</td>
   	          <td>&nbsp;</td>
            </tr>
   	        <tr>
   	          <td>2.<strong>Instansi</strong></td>
   	          <td>&nbsp;</td>
            </tr>
   	        <tr>
   	          <td>Instansi *</td>
   	          <td>:
              <input type="text" name="instansi" id="instansi" /></td>
            </tr>
   	        <tr>
   	          <td>No tlp Instansi</td>
   	          <td>:
              <input type="text" name="tlp_instansi" id="tlp_instansi" /></td>
            </tr>
   	        <tr>
   	          <td>Alamat </td>
   	          <td>:
              <textarea name="alamat" id="alamat" cols="45" rows="5"></textarea></td>
            </tr>
   	        <tr>
   	          <td>&nbsp;</td>
   	          <td>&nbsp;</td>
            </tr>
   	        <tr>
   	          <td>&nbsp;</td>
   	          <td>&nbsp;</td>
            </tr>
   	        <tr>
   	          <td>&nbsp;</td>
   	          <td><input type="submit" name="Daftar" id="Daftar" value="Daftar" onclick="DaftarForm(); return false;" />
              <input type="submit" name="batal" id="batal" value="Batal" oneclick="" /></td>
            </tr>
        </table>
      </form>
      
   <script type="text/javascript">
	  //*buat validasi peserta*//  
 	 function DaftarForm(){  
   		 if(document.getElementById('nama').value == ''){  
      		alert('Nama lengkap tidak boleh kosong');  
     		document.getElementById('nama').focus();  
     	 return false;  
    }  
    	if(document.getElementById('email').value == ''){  
      		alert('emali tidak boleh kosong');  
      		document.getElementById('lastName').focus();  
      	return false;  
    }  
    	if(document.getElementById('tlp').value == ''){  
      		alert('Telphon tidak boleh kosong');  
      		document.getElementById('email').focus();  
      	return false;  
    }  
    	if(document.getElementById('instansi').value == ''){  
      		alert('Nama Instansi tidak boleh kosong');  
      		document.getElementById('phone').focus();  
      	return false;  
    }  
    document.getElementById('formdaftar').submit();  
  }  
</script>
    </div>
  </div>
Silahkan login untuk menjawab!
-1
Loading...
Ellyx Christian · Nov 16, 2011 · 0 Suka · 1 Tidak Suka
0
Loading...
boncik89 · Nov 17, 2011 · 0 Suka · 0 Tidak Suka
thsk mas bro,,,