|
|||
Hi there..
i faced with some problem now.. let say i have a HTML file with this table code... <table bordercolor=#ff7f00 align=center bgcolor=#fce0c4 height=60 cellspacing=0 cellpadding=3 width=180 border=1> <tbody><tr> <td valign=center align=middle bgColor=#ff7f00 height=20> <font face="Verdana, Arial, Helvetica, sans-serif" color=#ffffff size=1> <b>Say Something Here</b></font></td></tr> <tr><td> <-- I need to run a PHP here.. what should i put here??? --> </td></tr></tbody></table><br> <center><IMG SRC="line.gif"></center><br> as you can see from the code, i need to put a php script there.. my script name is test.php so how should i put it and run it there.. however, my page is still in HTML extension.. -------------------------------------------------------- The another methodi tried is by converting all my HTML into PHP.. however.. there some error, because my page load with JAVA script, after converted to php.. the java all seems to be wrong.. cannot loaded.. what should i do???? |
|
|||
continue..
Oya.. this is the php code looks like
<? require ("required.php"); echo "<HTML>\n"; echo " <HEAD>\n"; echo " <LINK rel=\"stylesheet\" type=\"text/css\" href=\"tagboard.css\">\n"; echo " </HEAD>\n"; echo " <BODY bgcolor=\"#EEEEEE\">\n"; echo " <FORM action=\"post.php\" method=\"POST\" target=\"tagboard\" name=\"post\" id=\"post\">\n"; echo " <TABLE cellpadding=\"0\" cellspacing=\"2\" width=\"1%\">\n"; echo " <TR>\n"; echo " <TD>\n"; echo " <B>$scriptname v$version:</B>\n"; echo " </TD>\n"; echo " </TR>\n"; echo " <TR>\n"; echo " <TD align=\"center\">\n"; echo " <IFRAME src=\"tagboard.php\" width=\"100%\" height=\"200\" frameborder=\"0\" scrolling=\"auto\" name=\"tagboard\"></IFRAME>\n"; echo " </TD>\n"; echo " </TR>\n"; echo " <TR>\n"; echo " <TD align=\"center\">\n"; echo " <INPUT type=\"text\" name=\"nick\" size=25 value=\"nick\" maxlength=\"$nicklength;\">\n"; echo " </TD>\n"; echo " </TR>\n"; echo " <TR>\n"; echo " <TD align=\"center\">\n"; echo " <INPUT type=\"text\" name=\"message\" size=\"25\" value=\"message\" maxlength=\"$messagelength\">\n"; echo " </TD>\n"; echo " </TR>\n"; echo " <TR>\n"; echo " <TD align=\"center\">\n"; echo " <INPUT type=\"submit\" value=\"Tag It!\" name=\"submit\">\n"; echo " <CENTER><IMG src=\"./images/wooncc.jpg\" width=\"140\"></CENTER>\n"; if ($emoticon=="1") echo " <BR>[ <A href=\"emoticons.php\">EmotICON Help</A> ]\n"; echo " </TD>\n"; echo " </TR>\n"; echo " </TABLE>\n"; echo " </FORM>\n"; echo " </BODY>\n"; echo "</HTML>\n"; ?> i save it to a file name as test.php |
|
|||
how about you just use embed PHP into HTML the correct way (or maybe it's my way.
<html> <head> <title>bleh</title> </head> <body> <form action=''> <?php echo $scriptname ?> <input type="text" value="<?php echo $ayam ?>" /> </form> only use the php tag when necessary, PHP != Perl .
__________________
<a href="http://www.php.net.my">www.php.net.my</a> |
|
||||
<table bordercolor=#ff7f00 align=center bgcolor=#fce0c4 height=60 cellspacing=0 cellpadding=3 width=180 border=1>
<tbody><tr> <td valign=center align=middle bgColor=#ff7f00 height=20> <font face="Verdana, Arial, Helvetica, sans-serif" color=#ffffff size=1> <b>Say Something Here</b></font></td></tr> <tr><td> <? // put your script here and name the file as .php ?> </td></tr></tbody></table><br> <center><IMG SRC="line.gif"></center><br> |
|
||||
Quote:
tp kan yg dalam test.php tu... banyak sangat echo""; so macam tak beh... sbb kalau ko open dlm dreamweaver mesti tak der interface.. so susah ler kalau ko nak oter interface... cara yg baik ko pakai <?php echo "taip ler aper2"; ?> cam cara rOkawa tuh so senang ler skit tak ler bterabur
__________________
^_^ <== stay happy |
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTML & JavaScript | marcoenie | Website Design | 8 | 15-02-2006 12:03 PM |
| insert php in html | sloth | Website Programming | 7 | 26-08-2005 07:34 PM |
| [need help] HTML coding.. | [the][matrix] | Website Design | 2 | 30-05-2005 12:56 AM |
| include RSS in html | alvinhan | Website Design | 8 | 07-05-2005 08:04 PM |
| embed mp3 to site | ckita | Mamak Stall | 15 | 16-11-2004 06:30 PM |
All times are GMT +8. The time now is 01:37 AM.
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.











.

Linear Mode

