رفتن به مطلب

دریافت پارامتر با متد GET


پست های پیشنهاد شده

سلام

من ابزار دارم که رنگ نوشته،کادر و زمینه رو انتخاب میکنیم و بعد از کلیک روی گزینه ساخت کد، کدی را به ما می دهد شبیه این:


<!-- Start Cod Marriage kingblog.ir -->
<script type="text/javascript" src="http://kingblog.ir/tools/fal/talebini/h.php?bg=3DFFC5&colort=BD29C2&c=F5D60C"></script><div style="display:none"><h1><a href="http://www.kingblog.ir">طالع بینی ازدواج</a></h1></div>
<!-- End Cod Marriage kingblog.ir --->

مشکل اینه که کدهای مربوط به رنگ که بعد از پسوند php اومده کار نمیکنه:


h.php?bg=3DFFC5&colort=BD29C2&c=F5D60C

این محتویات فایل h.php است:


<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>a{TEXT-DECORATION:none;color:#}
.tx{text-align:center;font-size:12px;font-family: tahoma;color:#}
body{ background:#; margin:0}</style>
<table width="150" border="0" cellpadding="5" cellspacing="0" class="tx" align="center">
<tr>
<td align="center"><b>طالع بيني ازدواج</b></td>
</tr>
<tr>
<td align="center"><img src="http://kingblog.ir/tools/fal/talebini/r.png" width="128" height="128" /></td>
</tr>
<tr>
<td align="center">فروردين : <a onclick="javascript:window.open('f1.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">زن</a> | <a onclick="javascript:window.open('m1.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">مرد</a></td>
</tr>
<tr>
<td align="center">ارديبهشت : <a onclick="javascript:window.open('f2.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">زن</a> | <a onclick="javascript:window.open('m2.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">مرد</a></td>
</tr>
<tr>
<td align="center">خرداد : <a onclick="javascript:window.open('f3.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">زن</a> | <a onclick="javascript:window.open('m3.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">مرد</a></td>
</tr>
<tr>
<td align="center">تير : <a onclick="javascript:window.open('f4.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">زن</a> | <a onclick="javascript:window.open('m4.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">مرد</a></td>
</tr>
<tr>
<td align="center">مرداد : <a onclick="javascript:window.open('f5.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">زن</a> | <a onclick="javascript:window.open('m5.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">مرد</a></td>
</tr>
<tr>
<td align="center">شهريور : <a onclick="javascript:window.open('f6.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">زن</a> | <a onclick="javascript:window.open('m6.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">مرد</a></td>
</tr>
<tr>
<td align="center">مهر : <a onclick="javascript:window.open('f7.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">زن</a> | <a onclick="javascript:window.open('m7.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">مرد</a></td>
</tr>
<tr>
<td align="center">آبان : <a onclick="javascript:window.open('f8.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">زن</a> | <a onclick="javascript:window.open('m8.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">مرد</a></td>
</tr>
<tr>
<td align="center">آذر : <a onclick="javascript:window.open('f9.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">زن</a> | <a onclick="javascript:window.open('m9.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">مرد</a></td>
</tr>
<tr>
<td align="center">دي : <a onclick="javascript:window.open('f10.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">زن</a> | <a onclick="javascript:window.open('m10.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">مرد</a></td>
</tr>
<tr>
<td align="center">بهمن : <a onclick="javascript:window.open('f11.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">زن</a> | <a onclick="javascript:window.open('m11.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">مرد</a></td>
</tr>
<tr>
<td align="center">اسفند : <a onclick="javascript:window.open('f12.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">زن</a> | <a onclick="javascript:window.open('m12.htm','','width=600px,height=500px,scrollbars=yes')" href="javascript:void(0)">مرد</a></td>
</tr>
<tr>
<td align="center"><b><a href="http://www.kingblog.ir/" target="_blank">دريافت کد طالع بيني</a></b></td>
</tr>
</table>

که فکر کنم توی این قسمت کد:


<style>a{TEXT-DECORATION:none;color:#}
.tx{text-align:center;font-size:12px;font-family: tahoma;color:#}
body{ background:#; margin:0}</style>

باید برنامه نویسی کوچیکی بشه.

دوستان کسی میتونه کمک کنه؟

لینک به ارسال

<?php if(isset($_GET['bg'])) {
$bg = $_GET['bg']
}
else {
$bg = 'FFF';
}
if(isset($_GET['c'])) {
$c = $_GET['c']
}
else {
$c = '000';
}
if(isset($_GET['colort'])) {
$colort = $_GET['colort']
}
else {
$colort = '0F0';
}

?>
<style>a{TEXT-DECORATION:none;color:#<?php echo c; ?>}
.tx{text-align:center;font-size:12px;font-family: tahoma;color:#<?php echo $colort; ?>}
body{ background:#<?php echo bg; ?>; margin:0}</style>

لینک به ارسال

<?php if(isset($_GET['bg'])) {
$bg = $_GET['bg'];
}
else {
$bg = 'FFF';
}
if(isset($_GET['c'])) {
$c = $_GET['c'];
}
else {
$c = '000';
}
if(isset($_GET['colort'])) {
$colort = $_GET['colort'];
}
else {
$colort = '0F0';
}
?>
<style>a{TEXT-DECORATION:none;color:#<?php echo c; ?>}
.tx{text-align:center;font-size:12px;font-family: tahoma;color:#<?php echo $colort; ?>}
body{ background:#<?php echo bg; ?>; margin:0}</style>

لینک به ارسال

ممنون درست شد. البته یه اشکال داشت با # قبل از کد رنگ که وقتی حذف کردم درست نشون داد

ممنون :)

لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...