  | 
              
	              
	                
  
    
	 
        ถามเรื่องส่งค่า form กับคำสั่ง ImageCreateFromPNG  ตามรูปคือทำได้แล้วครับ แต่ว่าสคริปเออเร่ออ่ะครับ แต่พอส่งค่าไป ImageCreateFromPNG อีก page ก็ไม่มีปัญหานะครับ     | 
   
  
    |   | 
   
 
 
 
	
		
			  | 
	   | 
	    | 
		
			  | 
	 
	
		
			  | 
		 		   | 
	  	    
          
            
			
	
			
			 
                  
 
ตามรูปคือทำได้แล้วครับ แต่ว่าสคริปเออเร่ออ่ะครับ  แต่พอส่งค่าไป ImageCreateFromPNG อีก page ก็ไม่มีปัญหานะครับ ผมก็งงว่าทำไมพอส่งไปหน้าเดียวกันแล้วมีปัญหา  ช่วยดูสคริปทีครับ  TwT 
 
Code (PHP) 
<form method="POST" action="" >
  <table width="300" border="0" align="center">
    <tr>
      <td width="405"><div align="center">12 Tails ID-CARD</div></td>
    </tr>
  </table>
  <p> </p>
  <table width="300" border="0" align="center">
    <tr>
      <td width="74">อาชีพ</td>
      <td width="7"><div align="center">:</div></td>
      <td width="205" height="30"><label>
        <select name="jobs" id="jobs">
          <option value="bat">Bat - ค้างคาว</option>
          <option value="bison">Bison - ควายไบสัน</option>
          <option value="cat">Cat - แมว</option>
          <option value="chameleon">Chameleon - กิ้งก่า</option>
          <option value="mole">Mole - ตัวตุ่น</option>
          <option value="monkey">Monkey - ลิง</option>
          <option value="panda">panda - แพนด้า</option>
          <option value="penguin">Penguin - แพนกวิน</option>
          <option value="rabbit">Rabbit - กระต่าย</option>
          <option value="sheep">Sheep - แกะ</option>
          <option value="whale">Whale - วาฬ</option>
          <option value="wolf">Wolf - หมาป่า</option>
        </select>
      </label></td>
    </tr>
    <tr>
      <td>ชื่อตัวละคร</td>
      <td width="7"><div align="center">:</div></td>
      <td height="30"><label>
        <input name="name" type="text" id="name" />
      </label></td>
    </tr>
    <tr>
      <td>เลเวล</td>
      <td width="7"><div align="center">:</div></td>
      <td height="30"><label>
        <input name="LV" type="text" id="LV" size="2" maxlength="2" />
      </label></td>
    </tr>
    <tr>
      <td>คลาส</td>
      <td width="7"><div align="center">:</div></td>
      <td height="30"><label for="textfield"></label>
        <input type="text" name="class" id="class" />        
        <label></label></td>
    </tr>
    <tr>
      <td>ชื่อกิลล์</td>
      <td width="7"><div align="center">:</div></td>
      <td height="30"><label>
        <input name="guild" type="text" id="guild" />
      </label></td>
    </tr>
    <tr>
      <td>สังกัดทีม</td>
      <td><div align="center">:</div></td>
      <td height="30"><label for="textfield"></label>
      <input type="text" name="team" id="team" /></td>
    </tr>
  </table>
  <p>
    <label>
    <div align="center">
      <input name="B1" type="submit" id="Submit" value="ส่งข้อมูล" />
    </div>
    </label>
  </p>
  <p> </p>
  <p align="center">Design By Armm </p>
</form>
<?php
if($B1){
$filename = "image/card_" . $_GET["jobs"] . ".png";
$im = ImageCreateFromPNG($filename);
$blue = ImagecolorAllocate($im, 0, 0, 0);
ImageTTFText($im, 21, 0, 194, 69, $blue, "2005_iannnnnGMO.ttf", utf8_encode($_GET["name"]));
ImageTTFText($im, 21, 0, 194, 91, $blue, "2005_iannnnnGMO.ttf", utf8_encode($_GET["LV"]));
ImageTTFText($im, 21, 0, 194, 113, $blue, "2005_iannnnnGMO.ttf", utf8_encode($_GET["class"]));
ImageTTFText($im, 21, 0, 194, 135, $blue, "2005_iannnnnGMO.ttf", utf8_encode($_GET["guild"]));
ImageTTFText($im, 21, 0, 214, 157, $blue, "2005_iannnnnGMO.ttf", utf8_encode($_GET["team"]));
header("Content-type: image/png");
ImagePNG($im);   ImageDestroy($im);
}
?>
 
 
 
นี่รูปครับ 
  
 
 
 
 
 
  Tag : - - - -              
                        | 
           
          
            | 
			
                             | 
           
          
            
              
                   | 
                   | 
                   | 
               
              
                   | 
                
                    
                      | Date :
                          2009-12-24 06:03:55 | 
                      By :
                          armice | 
                      View :
                          1262 | 
                      Reply :
                          1 | 
                     
                  | 
                   | 
               
              
                   | 
                   | 
                   | 
               
              | 
           
          
            | 
			 | 
           
         
	    
		             | 
		
			  | 
	 
	
		
			  | 
		  | 
		
			  | 
		
			  | 
	 
 
              
  
          
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 ผมไม่รู้ว่าส่งไปหน้าเดียวกันของคุณนี่เป็นเช่นไรอ่ะคับ  
 
แต่ form คุณส่งแบบ Post Code (PHP) 
 <form method="POST" action="" >
  
 
แต่คุณรับตรงนี้รับเป็น Get  
 
 
Code (PHP) 
<?php
77.if($B1){
78.$filename = "image/card_" . $_GET["jobs"] . ".png"; // ตรงนี้อ่ะคับ 
79.$im = ImageCreateFromPNG($filename);
80.$blue = ImagecolorAllocate($im, 0, 0, 0);
81. 
82.ImageTTFText($im, 21, 0, 194, 69, $blue, "2005_iannnnnGMO.ttf", utf8_encode($_GET["name"]));
83.ImageTTFText($im, 21, 0, 194, 91, $blue, "2005_iannnnnGMO.ttf", utf8_encode($_GET["LV"]));
84.ImageTTFText($im, 21, 0, 194, 113, $blue, "2005_iannnnnGMO.ttf", utf8_encode($_GET["class"]));
85.ImageTTFText($im, 21, 0, 194, 135, $blue, "2005_iannnnnGMO.ttf", utf8_encode($_GET["guild"]));
86.ImageTTFText($im, 21, 0, 214, 157, $blue, "2005_iannnnnGMO.ttf", utf8_encode($_GET["team"]));
87. 
88.header("Content-type: image/png");
89.ImagePNG($im);   ImageDestroy($im);
90.}
91.?>
 
 
ลองเช็คดูใหม่อีกทีอ่ะคับ                        
               
               | 
             
            
              
			                                
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2009-12-24 10:09:14 | 
                        By :
                            ความรู้เท่าหางอึ่ง | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
      		  
	
     | 
   
 
                 |