tet3828 Posted December 11, 2006 Share Posted December 11, 2006 I made a page layout in dreamweaverI dropped a php script I wrote (with the help of the 'freaks') into my layout. and for some reason it seems like the die() command in my script is causing all the images in my layout to shift.however, after I press the search button the images shift back into placeIf you would like to see this for yourself here is the linkhttp://claireart.net/shell/data/main.phpIf anyone knows why this is happening or how to avoid it pleas respond. Thank you.[code]if(!isset($_POST['desc'])) { die("<html><body> <br><br><table bgcolor=\"00ccff\" bordercolor=\"b36270\" border=\"2\" ><tr><td set height=\"35\" width=\"275\">Search Item Description, Name or ID for:</td><td width=\"150\"> <form action=\"".$_SERVER['PHP_SELF']."\" method=\"POST\"> <input type=\"text\" name=\"srchstring\" size=\"20\" maxlength=\"20\" value=\"\" /></td><td rowspan=\"2\"valign=\"middle\"><input type=\"submit\" name=\"desc\" value=\"Search!\"></td></tr> <td height=\"35\">Search Item By Catagory:</td><td valign=\"middle\"> <select name=\"cat\"> <option value=\"nocat\">Show All</option> <option value=\"Holiday\">Holiday</option> <option value=\"Flowers\">Flowers</option> <option value=\"Beauty\">Beauty</option> <option value=\"Other\">Other</option> </select></form></td></table> </body> </html>");[/code]this is a portion of the script with the die command that seems to be making my page go ape. Link to comment https://forums.phpfreaks.com/topic/30274-php-script-causing-cell-images-to-shift/ Share on other sites More sharing options...
craygo Posted December 11, 2006 Share Posted December 11, 2006 Right click on your page and select "view Source" you will see that you have problems with your code. You have two <html> tags 2 <body> tags. and a coupl eother things. clean up your code so things are formated correctly.[code]<html><head><title>Title</title>// Javascripts should be here unless specific ones do not require so</head><body>Body here</body></html>[/code]Make it clean and proper format. Since you have your images loading up with the body, having 2 <body> tags may be your problemRay Link to comment https://forums.phpfreaks.com/topic/30274-php-script-causing-cell-images-to-shift/#findComment-139270 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.