سلام
این کد مربوط به تصویر امنیتیه.من نمی تونم این تصویر رو با عناصر اچ تی ام ال نشون بدم لطفا کمکم کنید
<?php
session_start();
//ايجاد يك تصوير جديد//
$img = imagecreatefrompng('a.png');
//اين تابع براي ايجاد اعداد تصادفي در تصوير است//
$numero = rand(1000, 9999);
//متغيير اعداد تصادفي داخل سيژن ذخيره مي شود.//
$_SESSION["captcha"] = $numero;
//به اعداد// RGB اختصاص دادن رنگ
$white = imagecolorallocate($img, 25, 0, 0);
imagestring($img, 30, 30, 12, $numero, $white);
//mime aks
header ("Content-type: image/png");
//ايجاد عكس به فرمت// png
imagepng($img);
?>
این هم فرم ثبت نام هس من می خوام تصویر رو اینجا نمایش داده بشه.
<!doctype html>
<html dir="rtl">
<head>
<title>In the name of God</title>
<link rel="stylesheet" type="text/css" href="b_style/style/menu.css">
<link rel="stylesheet" type="text/css" href="b_style/style/component_common.css">
<link rel="stylesheet" type="text/css" href="b_style/style/Background.css">
<link rel="stylesheet" type="text/css" href="b_style/style/div_style.css">
<link rel="stylesheet" type="text/css" href="b_style/style/panel.css">
</head>
<body>
</div>
<div align="right" style="margin-top:50px;">
<form action="reg.php" method="post">
<fieldset style="width:250px;height:500px;font-size:14px;text-align:right;position:relative;float:right;margin-right:170px;" align="right">
<legend align="right">
ثبت نــام
</legend>
<div style="margin-top:15px;">نام<input style="position:absolute;right:90px;width:120px;" type="text" name="txtfnam"/></div>
<div style="margin-top:15px;">نام خانوادگي<input style="position:absolute;right:90px;width:120px;" type="text" name="txtlnam"/></div>
<div style="margin-top:15px;">نام کاربري<input style="position:absolute;right:90px;width:120px;" type="text" name="txtusername"/></div>
<div style="margin-top:15px;">پسورد<input style="position:absolute;right:90px;width:120px;" type="text" name="txtpass"/></div>
<div style="margin-top:15px;">تکرار پسورد<input style="position:absolute;right:90px;width:120px;" type="text" name="txtrepass"/></div>
<div style="margin-top:15px;">جنسيت<input style="position:absolute;right:90px;width:120px;" type="text" name="txtjens"/></div>
<div style="margin-top:15px;">آدرس الکترونيکي<input style="position:absolute;right:90px;width:120px;" type="text" name="txtmail"/></div>
<div style="margin-top:15px;">استان<input style="position:absolute;right:90px;width:120px;" type="text" name="txtostan"/></div>
<div style="margin-top:15px;">شهر<input style="position:absolute;right:90px;width:120px;" type="text" name="txtshahr"/></div>
<div style="margin-top:30px;text-align:center;"><input style="position:absolute;right:90px;width:70px;tex t-align:center;" value="ثبت نام" type="submit" name="sub1"/></div>
</fieldset>
</form>
</div>
</div>
</body>
</html>