HTML - 2 Files In Html Is Being Included In A .cfm And They Are Not Aligning Together
Hello
i have 2 files file 1 and file 2 they are both being included in a cfm file by cfinclude. however when they are viewed on the browser they are not aligned together. file 2 is perfect. it goes on the center of the page but file 1 is on the far left. my level is beginner level so please have patience. i wish to have file 1 on the same center as file 2. (other words, file 1 needs to be inline with file2) thanks once again file 2 is correct. help Similar TutorialsHi I am new to this forum and this is my first post. It should be in the introductions area but I thought it would be better here. Ok here is my question. "I have been working on this new website project from my school on really basic HTML. So I created this website with around 12 webpages but am stuck at a place. For a better understanding, here is the picture of the page I am stuck at: http://www.imagebam.com/image/b3124a57239694 (image takes a few secs to load) And here is code for the webpage: http://www.scribd.com/doc/22980588 So by the picture, I hope you understand the problem and suggest a non <div> CSS solution. Thank You All help will be much appreciated I hope someone comes up with a quick and easy idea. I hope to enjoy my stay here Hi guys, I have a problem with HTML I've not experienced before relating to include files. I'm running IIS on Windows XP Pro and have an HTML file with a single include (this isn't the actual project I'm working on but a test I picked up off the web to demonstrate the problem) Test.html: - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 strict//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> </head> <body> <!--#include file="testinc.htm"--> <br>To see this work. </body> </html> Testinc.htm: - ************************************************** ***** This is a test ************************************************** ***** When I open, in IE, http://localhost/test.html all I see is the text "to see this work". If I view the source, it is identical to test.html (ie, the include is in the source which would signify to me that it's been picked up as a comment). I've tried replacing Include File with Include Virtual (not that it should make any difference in this case as they're both located in wwwroot) but to no avail. Any ideas what's missing? Cheers in advance. I am working on an index page with menu for a friend and originally did the page an menu separately....I was able to get them to work together but when i do the In-Dreamweaver preview does not work...This is very important because she will need the preview to make her changes... Everything looks fine upon viewing in browser but no preview.... I think it probably has something to do with me using two different body tages with two different csses....Can somebody take a look and see if they can find my problem? Any help would be greatly appreciated! You can view an online version at: http://www.firstpresgreenville.org/NEWFPATEST/menu.html Hi all, I've just joined your forum today as I've got a problem I can't seem to resolve with my tumblr html. I'm not sure whether any of you are familiar with tumblr, but it's basically a social networking blogging site. First of all, my url is http://king-of-diamonds.tumblr.com/ I have edited the html of my page a lot but there is one problem that I can't fix: If you have a look at my blog, you will notice that between the posts there is a little white line/space that I have tried my best to get rid of. Does anybody know how I can get rid of it? You can have a look at the html of my blog (currently) by clicking this link. Thanks in advance! I'm having a problem trying to anchor this Javascript menu into a fixed position. Heres the website http://www.intuition-designs.com/test1.htm as you might recognize, I'm trying to mimic the Facebook application bar that runs along the bottom of their website I'd like to have the menu anchored to the navbar at the bottom, so when I scroll, the menu will not scroll. I have a separate Javascript file for the menu Here is the HTML for the website so far. ANY HELP IS GREATLY APPRECIATED!!: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> html, body { height:100%; } html.use_scroll_wrapper { overflow:hidden; } #bottom_bar { position:fixed; bottom:0; left: 15px; right: 15px; height: 27px; background:url(http://www.intuition-designs.com/images/midbottom.png) repeat top left; z-index: 3; color: #FFF; text-align: right; } #bottom_bar table tr th { text-align: right; } .gg { text-align: right; } .xx { text-align: left; } </style> </head> <body> <script type="text/javascript">var MenuLinkedBy="AllWebMenus [4]",awmMenuName="navbar",awmBN="766";awmAltUrl="";</script><script charset="UTF-8" src="navbar.js" type="text/javascript"></script><script type="text/javascript">awmBuildMenu();</script> <div id="bottom_bar"> <table width="50" border="0" align="left" cellpadding="0" cellspacing="0" id="awmAnchor-navbar"> <tr> <th scope="col"> </th> </tr> </table> </div> </body> </html> First of all, WOW does this look like a site that can make it happen for me.. websitemakingwise. Im new and boy, loving the info so far.. ok, my problem: So Im cleaning up this code, yes.. again. And I wanted to make this automated php thing that sends emails straight to my inbox. Without having to use the client installed. Only problem is that the submit button isnt doing anything. Could someone have a look whats wrong? Filename: ContactForm.html HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Mailformulier updates - As it is in heaven again</title> <style type="text/css"> <!-- body { background-image: url(afbeeldingen/ups_and_simulation.jpg); } .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 17px; color: #000000; } .style2 {font-family: Verdana, Arial, Helvetica, sans-serif} .style4 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; } .style6 {font-size: 14px} .style8 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; color: #000000; } a:link {color: #000000;} a:visited{color:#009;} a:hover {color: #000000;} .style10 {color: #FFFFFF} .style14 {font-family:"Bookman Old Style"; font-size: 14px; color: #000000; } #txt{ position:relative; text-align:center; left:100px; top:55px; width:420px; height:40px; z-index:2; font-stretch:wider; } div.row { clear: both; padding-top: 5px; } div.row span.label { float: left; width: 100px; text-align: right; } div.row span.formw { float: right; width: 235px; text-align: left; } div.spacer { clear: both; } --> </style></head> <body> <table width="600" height="400" border="1" align="center" bgcolor="#FFFFFF"> <div id="txt"> <p class="style1">Ja, ik heb interesse. Graag ontvang ik verdere informatie over de toekomstige activiteiten.</p> </div> <tr> <td width="44" height="150"> </td> <td width="814" height="100"> <br /> <br /> <br /> <br /> <div style= "width: 360px; background-color: #ccc; border: 1px dotted #333; padding: 5px; margin: 0px auto;"> <span class="style4"> <form> <div class="row"> <form action="FormToEmail.php" method="post" name="ContactForm"> <span class="label">Naam:</span> <span class="formw"><input type="text" name="Naamgegevens" title="Hier uw volledige naam" size="25" /></span> </div> <div class="row"> <span class="label">Adres:</span><span class="formw"> <input type="text" name="Naamgegevens" title="" size="25" /></span> </div> <div class="row"> <span class="label">Postcode:</span><span class="formw"> <input type="text" name="Postcode" title="" size="25" /></span> </div> <div class="row"> <span class="label">Woonplaats:</span><span class="formw"> <input type="text" name="Woonplaats" title="" size="25" /></span> </div> <div class="row"> <span class="label">Telefoon:</span><span class="formw"> <input type="text" name="Vaste telefoon" title="Uw vaste telefoon-nummer" size="25" /></span> </div> <div class="row"> <span class="label">Mobiel:</span><span class="formw"> <input type="text" name="Mobiel" title="" size="25" /></span> </div> <div class="row"> <span class="label">E-Mail:</span><span class="formw"> <input type="text" name="E-Mail" title="Het E-mail adres" size="25" /></span> </div> <p align="center"> <span class="style14"> <br /> <br /> <br /> ruimte voor opmerkingen/suggesties/reacties</span> <br /> <textarea name="opmerkingen" cols="40" rows="6"></textarea> </p> <div class="spacer"> </div> </form> <div align="center"> <input type="submit" value="Versturen"><br> </div> <br> </div> <div align="center"><span class="style10">-----</span> <a href ="basis.html"><img src = "afbeeldingen/TERUG.png" width="95" height="60" style="border-style: none"/></a></span></div></td> <td width="44"> </td> </tr> <tr> <td height="100" colspan="3"><div align="center"> </div></td> </tr> </table> </body> </html> Thanks for reading till this point! Hop you didnt mind the Dutch lol. FILENAME: FormToEmail.php PHP Code: <?php $my_email = "rsizania@gmail.com"; /* Enter the continue link to offer the user after the form is sent. If you do not change this, your visitor will be given a continue link to your homepage. If you do change it, remove the "/" symbol below and replace with the name of the page to link to, eg: "mypage.htm" or "http://www.elsewhere.com/page.htm" */ $continue = "www.google.com"; /* Step 3: Save this file (FormToEmail.php) and upload it together with your webpage containing the form to your webspace. IMPORTANT - The file name is case sensitive! You must save it exactly as it is named above! Do not put this script in your cgi-bin directory (folder) it may not work from there. THAT'S IT, FINISHED! You do not need to make any changes below this line. */ $errors = array(); // Remove $_COOKIE elements from $_REQUEST. if(count($_COOKIE)){foreach(array_keys($_COOKIE) as $value){unset($_REQUEST[$value]);}} // Check all fields for an email header. function recursive_array_check_header($element_value) { global $set; if(!is_array($element_value)){if(preg_match("/(%0A|%0D|\n+|\r+)(content-type:|to:|cc:|bcc:)/i",$element_value)){$set = 1;}} else { foreach($element_value as $value){if($set){break;} recursive_array_check_header($value);} } } recursive_array_check_header($_REQUEST); if($set){$errors[] = "You cannot send an email header";} unset($set); // Validate email field. if(isset($_REQUEST['email']) && !empty($_REQUEST['email'])) { if(preg_match("/(%0A|%0D|\n+|\r+|:)/i",$_REQUEST['email'])){$errors[] = "Email address may not contain a new line or a colon";} $_REQUEST['email'] = trim($_REQUEST['email']); if(substr_count($_REQUEST['email'],"@") != 1 || stristr($_REQUEST['email']," ")){$errors[] = "Email address is invalid";}else{$exploded_email = explode("@",$_REQUEST['email']);if(empty($exploded_email[0]) || strlen($exploded_email[0]) > 64 || empty($exploded_email[1])){$errors[] = "Email address is invalid";}else{if(substr_count($exploded_email[1],".") == 0){$errors[] = "Email address is invalid";}else{$exploded_domain = explode(".",$exploded_email[1]);if(in_array("",$exploded_domain)){$errors[] = "Email address is invalid";}else{foreach($exploded_domain as $value){if(strlen($value) > 63 || !preg_match('/^[a-z0-9-]+$/i',$value)){$errors[] = "Email address is invalid"; break;}}}}}} } // Check referrer is from same site. if(!(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) && stristr($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']))){$errors[] = "You must enable referrer logging to use the form";} // Check for a blank form. function recursive_array_check_blank($element_value) { global $set; if(!is_array($element_value)){if(!empty($element_value)){$set = 1;}} else { foreach($element_value as $value){if($set){break;} recursive_array_check_blank($value);} } } recursive_array_check_blank($_REQUEST); if(!$set){$errors[] = "You cannot send a blank form";} unset($set); // Display any errors and exit if errors exist. if(count($errors)){foreach($errors as $value){print "$value<br>";} exit;} if(!defined("PHP_EOL")){define("PHP_EOL", strtoupper(substr(PHP_OS,0,3) == "WIN") ? "\r\n" : "\n");} // Build message. function build_message($request_input){if(!isset($message_output)){$message_output ="";}if(!is_array($request_input)){$message_output = $request_input;}else{foreach($request_input as $key => $value){if(!empty($value)){if(!is_numeric($key)){$message_output .= str_replace("_"," ",ucfirst($key)).": ".build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .= build_message($value).", ";}}}}return rtrim($message_output,", ");} $message = build_message($_REQUEST); $message = $message . PHP_EOL.PHP_EOL."-- ".PHP_EOL.""; $message = stripslashes($message); $subject = "FormToEmail Comments"; $headers = "From: " . $_REQUEST['email']; mail($my_email,$subject,$message,$headers); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Dreamweaver Tutorial - Contact Form</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#ffffff" text="#000000"> <div> <center> <b>Thank you <?php print stripslashes($_REQUEST['name']); ?></b> <br>Your message has been sent <p><a href="<?php print $continue; ?>">Click here to continue</a></p> <p><b>Dreamweaver Spot</b> by <a href="http://dreamweaverspot.com">dreamweaverspot.com</a></p> </center> </div> </body> </html> Ok thanks!! So.. whats wrong? Im a total noob.. and it isnt even that I started from scratch.. some of it was already there. Appreciate your advice Hi, I've been trying to set up a page where I have my e-mail address on one side of the page and my phone number on the same line but on the other side of the page. The e-mail address aligns left automatically, and when I use <p align=right>, it moves the phone number down onto the next line. <align=right> on its own does nothing. Does anyone know the code to align right without bumping the text down to the next line? Thank you so much for any help you can provide. Michael Hello, My website needs a fresh-over, so I decided to fix everything up to the XHTML 1.0 Standard. While doing that, I've also been trashing some of the old layouts and trying to make my website more clear & surmountable, both for the search engines & the surfing user. When working on the links page, I ran into problems though. The table and images simply didn't do the same I wanted them to do, and I've been trying several re-designs to make things alright again. Here is what I've got until now (Image Removed): (A) The content on the website, is not taking 100% width & height. If I use 100% & 100% height on the page, I'll just get this. (B] The table needs the same width as the body (100%). But I am still unable to use neither width or height, as it looks like they don't really do any matters in this case. There must be a bug somewhere inside the HTML or CSS Code, that makes this page very hard to give layout. I just cannot find it myself, so I am asking for your help. It can be because I am using a wrong attribute or tag to create the layout of my website, but I am sure that you got more knowledge on that area, than I. You can see the webpage yourself by clicking on the below URL: Link Removed Thank you, Urnemanden Hello, I need some help to get a HTML file to load from a PHP file. I got a host who cannot use files from PHP, only from HTML and then PHP, so can someone help me to get the register.php to load from a html file? If this is possible I would be thankfull CODE: Code: <?php ################# # # # # # Enjoy! # # # # # ################# include("config.php"); error_reporting(E_ALL ^ E_NOTICE); session_start(); $msg = Array(); $error = Array(); function addUser(){ if (empty($_POST)) return false; global $config, $msg, $error; if (empty($_POST['login'])) $error[] = 'Error, You forgot to enter a account name!'; if (empty($_POST['password'][0]) || empty($_POST['password'][1])) $error[] = 'Error, You forgot to enter a password!'; if ($_POST['password'][0] !== $_POST['password'][1]) $error[] = 'Password does not match!'; if (empty($_POST['email'])) $error[] = 'Please fill in a valid email adress!'; if (!empty($error)) return false; $db = @mysql_connect($config['mysql_host'], $config['mysql_user'], $config['mysql_pass']); if (!$db) return $error[] = 'Database: '.mysql_error(); if (!@mysql_select_db($config['mysql_dbname'], $db)) return $error[] = 'Database: '.mysql_error(); $query = "SELECT `acct` FROM `accounts` WHERE `login` = '".mysql_real_escape_string($_POST['login'])."'"; $res = mysql_query($query, $db); if (!$res) return $error[] = 'Database: '.mysql_error(); if (mysql_num_rows($res) > 0) return $error[] = 'Username already in use.'; //Modified by Jerq $query = "INSERT INTO `accounts` (`login`,`password`,`lastip`, `flags`) VALUES ('".mysql_real_escape_string($_POST['login'])."', '".mysql_real_escape_string($_POST['password'][0])."', '".$_SERVER['REMOTE_ADDR']."','".mysql_real_escape_string($_POST['tbc'][0])."')"; //Modified by Jerq $res = mysql_query($query, $db); if (!$res) return $error[] = 'Database: '.mysql_error(); $msg[] = 'The Account <span style="color:#00FF00"><strong>'.htmlentities($_POST['login']).'</strong></span> has been created!'; mysql_close($db); return true; } { addUser(); } ?> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>Account Registration Page</title> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Cache-Control" content="no-cache"/> <style type="text/css" media="screen">@import url(server_stats.css);</style> <!--[if lt IE 7.]> <script defer type="text/javascript" src="pngfix.js"></script> <![endif]--> </head> <body> <center> <div class="logo"></div> <div style="width:300px"> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tr class="head"><th colspan="2">Account Creation</th></tr> <tr> <th>Username: </th><td align="center"><input class="button" type="text" name="login" size="30" maxlength="16"/></td> </tr> <tr> <th>Password: </th><td align="center"><input class="button" type="password" name="password[]" size="30" maxlength="16"/></td> </tr> <tr> <th>Retype Password: </th><td align="center"><input class="button" type="password" name="password[]" size="30" maxlength="16"/></td> </tr> <tr> <th>E-mail: </th><td align="center"><input class="button" type="text" name="email" size="30" maxlength="30"/></td> </tr> <!--Added by Jerq--> <th>Account Type:</th><td align="center"> <select name="tbc" type="select"> <option value="0">Normal</option> <option selected value="8">Burning Crusade</option> </select></td> <!--Added By Jerq--> </table> <input type="button" class="button" value="Back" onClick="history.go(-1)" /> <input type="submit" value="Create" class="button"/> </form> <?php if (!empty($error)){ echo '<table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td class="error" align="center">'; foreach($error as $text) echo $text.'</br>'; echo '</td></tr></table>'; }; if (!empty($msg)){ echo '<table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td align="center">'; foreach($msg as $text) echo $text.'</br>'; echo '</td></tr></table>'; exit(); }; ?> </div> </center> </body> </html> THE CONFIG.PHP: Code: <?php ################# # # # # # Enjoy! # # # # # ################# $config['mysql_host'] = 'wowserver.serveftp.com'; //MySQL Host $config['mysql_user'] = 'root'; //MySQL Username $config['mysql_pass'] = 'wHoSYoURDaDy65'; //MySQL Password $config['mysql_dbname'] = 'antrix'; //Database Name ?> *** I'm still a rookie here, so I hope this post is correctly placed.*** I am working on a web site, and I need to clean the code. The WYSIWYG program I was using crashed and I was left with an older program to work with. It generated at least some bad code, and I really want to clean things up. I've found some sites online that analyze HTML files, but they don't highlight the bad tags (you still have to go fishing for them). I also haven't found any HTML repair programs that seemed to work. Can anyone offer any suggestions? I just don't want this code-cleaning process to become a 40-hour project, and I'll welcome any ideas for keeping things simple. I'm a bit overwhelmed right now, and I just don't have it in me to do this by hand, character by character. I'm also wondering if anyone has thoughts about any of the free alternatives to Dreamweaver. I found a site that mentions a few. http://blog.webdistortion.com/2008/0...o-dreamweaver/ Any replies appreciated. I am having some problems with my template, I have to upload it a few times before it work. Seems like when I've edited and upload it, it doesn't change the files link to it. This can't be due to me linking them wrongly, cause they used to work before after a few tries. But i've been trying for a few days with no success. Any advice? Thanks ---------------------------------------------------------------------------------------- Nevermind i managed to solve it, I have to click save instead of letting dreamweaver do it automatically before it automatically updates the rest of the link file. how do i sync my html files after changeing the code in the index? I had a weird experience today that I was hoping others might shed some light on. I emailed a person a link to a powerpoint pps file and it opened full screen as planned. I also placed that link on an intranet web page and it opened in 'edit' mode. How come? Is there something I'm missing on code necessary to ensure the same URL opens properly and in full screen mode ???? The link was very similar to this where page code is concerned... <dd><li><a href="http://mail.yahoo.com/?.intl=us" TARGET="_top">Yahoo Email</a><p> Might it have something to do with 'target' ??? TIA Hi I have an unusal problem. I have a rather large document written in Word that I need to convert to HTML files. I would love to use HTML Help, however I cannot use compressed files, I need to have strictly HTML flat files. I would like to know if anyone has every created help files without using a .CHM file. If so how difficult is it and what are the steps involved. I am in hopes that I can simply create a CSS file and save the document as a HTML file. I have no problem opening the file from a browser but now I would like to make it appear like a help file with bookmarks and maybe even a search feature later down the road. For now I would be extremely happy with bookmarks. Can I go directly into the source and create bookmarks? Or is there more to the help file that is created by CHM files? Thanks in advance for any assistance or suggestions. Ok i am fairly new to HTML and iam needing some help with some Java Script files, and a html code that works with them. You can download the files from the following address: http://game-pass.co.cc/js.rar In the archive there is a html document named 'candystand.html' and 13 java script files that work with the html file. The thing iam trying to do with the files is make a game called Candystand Billiards work. Whenever i load the html file with the js files on my website server the game doesnt load properly, it only loads to where it says adobe shockwave player then freezes. I also need the html file trimming so that the only thing in there is the game and the game commands, not the layout of the website i got it off. You can find the game at the following address: http://www.candystand.com/play/billiards-classic Any help on this will be appreciated. Hello, I have the page "index.html" in my root folder, as well as another "index.html" page in a subdirectory. I feel like a moron for not being able to figure this out on my own, but here goes: How do I create a link from my subdirectory index.html page to the one in my root folder? Any help is much appreciated. Is there a way to create names of reports and place in a list box or combo box and select the report and click a button to open the report? I also have added a link to a file ( that would be on the server) for the user to open the file, but I click the hyperlink the file does not open. <a href="Attrition (2).doc">Attrition</a><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> I'm coding my new website, and I had a question for one of my friends. I want to be able to send him one html file and my css stylesheet so he can experiment with changing a few things. When I try to attach the files as emails, they lose a lot of information when he receives them. (It messes with the <head> stuff and "blocks" the url's listed in the html file. Is there any good way to send exactly the same code that is in the files on my computer? I know I could post the code online and have him copy and paste it, but I'm hoping there is a way to send it. Thanks. I have a list of names in say a data base flat file, Do you know if there is a utility that will take and read per line and generate a html file? Hav'nt found anything as of yet but am wondering if someone could steer me in the right direction. thanks Firstly I am new to web development so forgive me for using any incorrect terminology... I am working on dreamweaver cs5 translating an affiliate site. The directory that contains all my website folders and subfolders has many identical pages, in html and in php script. For example I have the same page in the aboutus folder named as index.htm and.......the same page exists in a folder called templates with a different name as 4v4567opjfh.php. Now...yesterday i did synchronization in dreamweaver (ticked the delete remote files not on local drive) and suddenly my website was completely ****ed-up…. I then deleted all the ftp content and re-uploaded using a back up copy BUT the browser now only reads the 4v4567opjfh.php file and not the index.htm….. Any suggestions on what I should do in order to make my browser read the index.htm and not the php script? Many thanks! Anton |