
21-09-2007, 09:43
|
|
|
|
חבר מתאריך: 21.01.06
הודעות: 813
|
|
|
בעיה עם סקריפט html בשילוב של php
עשיתי צא'ט, וניסיתי לעשות כפתור "רד למטה" שיורד למטה אם צריכים
(באותה דרך גם ניסיתי שהעמוד כל הזמן יהיה למטה)
עם
echo '<a href="#nick">רד למטה</a>';
ו למטה עשיתי
echo '<a name="nick"></a>';
אולי משהו בקוד של הphp שיבש את זה..
הנה הקוד המלא:
קוד PHP:
<html dir=rtl> <style type="text/css"> a , input, textarea { text-decoration: none; font-size: 9pt; font-family: arial, tahoma; font-weight: bold; color: Black; } </style> <meta http-equiv="refresh" content="360"> <center> <?php require ("config.php"); echo "<font face=Arial size=2>"; $us = $_POST['username']; if ( ! isset ($_COOKIE['users'])) { echo "<br>"; echo "אורח, אתה חייב"; echo "<a href=#> להתחבר </a>"; echo "כדי להכנס לעמוד זה. "; echo "במידה ואתה עוד לא רשום,"; echo "<a href=#> הירשם כעת. </a>"; } else { echo '<a href="#nick">רד למטה</a>'; $tfe = mysql_query ( "SELECT * FROM articles "); echo '<font face="Arial" size="2">'; if (isset ($tfe) ) { while ($textforedit = mysql_fetch_array ($tfe)) { $tfee = $textforedit['body']; $subject = $textforedit['subject']; $sender = $textforedit['sender']; $time = $textforedit['article_time']; $date = $textforedit['article_date']; $theusss = $_COOKIE['users']; $hatim = mysql_query ("SELECT * FROM uses WHERE `user_name`='$theusss' "); while ($hatimaa = mysql_fetch_array ($hatim)) { $hatima = $hatimaa['hatima']; } echo '<table bgcolor="#00000" width="600">'; echo "<tr><td bgcolor='#00000' height='30'><b><font face='Arial' size='2' color='White'>$subject</b></tr></font></td>"; $blaa = mysql_query ("SELECT * From colors"); $bla = mysql_fetch_array ($blaa); echo "<tr><td bgcolor=". $bla['color'] ." height=50><font face='Arial' size='2'><b>". nl2br("$tfee\n") . "<br>---------------------------------------</font></b><br><font face='Arial' size='1' color='White'><b>נכתב ע'י "; echo $sender; echo " ב- "; echo "$time, $date"; if ($hatima == "") echo ""; else echo "<br><img src=$hatima>"; echo "</tr></td>"; echo "<br>"; } } echo "</b></font>"; } echo '<a name="nick"></a>'; ?> </a> </center></html>
אז מה הבעיה 0_0
תודה לעוזרים וצום קל היום 
_____________________________________
--- ! Area Close ! ---
|