Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by bukwus

  1. bukwus

    Number formatting

    Awesome. Thank you.
  2. bukwus

    Number formatting

    More specifically, can I check to see if a number has commas and, if so, remove the commas?
  3. bukwus

    Number formatting

    HiRegarding the number_format() function, is there a way to check, perhaps with an "if else" statement, if the value of a variable which is a number string is formatted? Also, is there a function that strips a number's formatting?Thanks
  4. bukwus

    Form not working

    THANK YOU! Works like a charm.
  5. bukwus

    Form not working

    Hello I'm experimenting with PHP forms and am having trouble getting the form to recognize whether a field has been entered or not. I can't figure out where I'm going wrong. Here's the form, file name register_program.html: <?php$problem = $_SESSION['problem'];?><form id="regProg" action="verify.php" method="POST"> <?php if ($problem == 2) { echo '<p style="color:red;">Please fill in the form below</p>'; } elseIf ($problem == 1) { echo '<p>Thank you for filling in the form.</p>'; } ?> First Name: <input type="text" name="firstName" id="firstName" value="<?php echo $_SESSION['firstName']; ?>" size="40" maxlength="100" /><br /> <input type="submit" name="submit" value="Submit" /> <input type="submit" name="reset" value="Reset" /></form> And here's the PHP, file name verify.php: <?phpsession_start(); if (isset($_POST['reset'])) { session_destroy();}else { $_SESSION['firstName'] = $_POST['firstName']; if (isset($_POST['firstName'])) { $_SESSION['problem'] = 1; $to = "myemail@host.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "Me"; $headers = "From:" . $_POST['firstName']; mail($to,$subject,$message,$headers); } else { $_SESSION['problem'] = 2; }} header('Location: register_program.html');?> Many thanks,Andy
  6. Never mind. I solved it with "overflow:hidden" in the footer DIV.
  7. I have a DIV that spans 100% across the screen with a specific background color. Inside is a nested DIV that confines the width and has auto margins. Inside that DIV I have two DIVs that are meant to float left and right, but when I float them it cancels the background color of the grandparent DIV. Any reason this is happening?Many thanks,Andy HTML <div id="footer"> <div id="containerFooter"> <div id="address"> Island Shakespeare Festival<br /> PO Box 1262<br /> Langly, Whidbey Island, WA 98260 </div> <div id="footerMenu"> <span><a href="">Shows & Tickets</a></span> <span><a href="">Support</a></span> <span><a href="">Plan Your Visit</a></span> <span><a href="">Sponsors</a></span> <span><a href="">About</a></span> <span style="margin-right:0px"><a href="">Contact</a></span> </div> </div> </div> CSS #footer { width:100%; background-color:#496781; margin:2% 0% 0% 0%; }#containerFooter { width:950px; margin:auto; }#address { float:left; font-size:.9em; color:white; }#footerMenu { float:right; }#footerMenu SPAN { color:white; font-size:.9em; margin-right:2%; }#footerMenu SPAN A { color:white; text-decoration:none; }#footerMenu SPAN A:HOVER { text-decoration:underline; }
  8. HelloLet's say I wanted to generate a random number from 1 to 10. Then I want to do it again, only remove the previously generated number from the range. How would I go about this?Many thanks
  9. HiI'm using PHP to check if a form was filled out correctly, or at all. I have questions and three answers in the form of radio buttons.I'm using "if empty" to check if a question wasn't answered but it's not doing the trick: for ($i = 1; $i <= $numQuestions2; $i++) { if (empty($_POST['radio'.$i])) { $problem = TRUE; $dataSpan2[$i] = '<span style="color:red; font-weight:bold;">'.$questions2[$i].'</span>'; } else { $dataSpan2[$i] = $questions2[$i]; } } How should I be doing this?Many thanks
  10. HiI'm beginning a form that asks questions and has a drop down list of options to choose from. I'm going to use PHP to check for errors, loops to cut down on repetition, etc., but right now I'm just testing code at a basic level.Here's the PHP: if(isset($_POST['submit'])){ $value[1] = $_POST['choice1']; $value[2] = $_POST['choice2']; $value[3] = $_POST['choice3']; } else { $value[1] = 'Choose one...'; $value[2] = 'Choose one...'; $value[3] = 'Choose one...'; } Here's the basic form element: <select name="choice1"> <option value="0">'.$value[1].'</option> <option value="Addressed">Addressed</option> <option value="Does not apply">Does not apply</option> <option value="Needs attention">Needs attention</option> </select> My problem is that the text displayed in the select box is only the first letter of whatever it's supposed to be. For example: if it's the first time visiting the form, each box only has "C" in it instead of "Choose one..." OR if "Does not apply" was chosen and the form is submitted, "D" is all that shows up in that box.Any idea what's happening here?Many thanks,Andy
  11. I'm probably misunderstanding you, but do you mean something like this? I tested it and it just returns the literal value of $email_body. Am I just doing it wrong?for ($i = 1; $i <= $numQuestions; $i++) { $email_body = '.$question['.$i.']."\n" .$_POST[\'data\''.$i.']."\n"'; }
  12. HiI've built a form so that the questions generate automatically. I set the number of questions into $numQuestions, I put the questions in an array called $questions, then used a typical for loop to create the questions in an HTML table. for ($i = 1; $i <= $numQuestions; $i++) { echo '<tr> <td align="left" valign="top" border="0"> <p>'.$questions[$i].'</p> <textarea rows="5" cols="53" id="data'.$i.'" name="data'.$i.'">'.$_POST['data'.$i].'</textarea> </td> </tr>'; } It works fine. The purpose of this is because I'm building many forms with similar structure, but different questions and this saves a great deal of time.Here's where I'm getting stumped:When a user fills out the form and submits it, the results are sent to us as well as to their email address. I need to create a similar for loop that can generate the questions and the user's answers in the form email that is sent. The body of the email is the value of the $email_body variable.So, is there a way to assign the output of a for loop to the value of a variable?Many thanks,Andy
  13. Okay. Given that my checkboxes now look like this<input type="checkbox" name="category[]" value="Accounting" />and I've figured how to check if none are checked and how to carry over checked boxes, how do I now include the categories that were checked in the email that is sent as a result of correctly filling out the form?Here is the code that handles the content of the email. I've placed ??? in the place that I'm having trouble with: $to = 'email@company.org'; $email_subject = 'ExpertNet Aplicant'; $email_body = "Name: ".$_POST['firstName'] . $_POST['lastName']."\n Title: ".$_POST['title']."\n Email: ".$_POST['email']."\n Company: ".$_POST['company']."\n Company Description: ".$_POST['description']."\n Address: ".$_POST['address1']."\n Address: ".$_POST['address2']."\n City: ".$_POST['city']."\n State: ".$_POST['state']."\n Zip Code: ".$_POST['zip']."\n Phone#: ".$_POST['phone']."\n Fax#: ".$_POST['fax']."\n Web Address: ".$_POST['web']."\n Categories Chosen: "[u][b]???[/b][/u]" \n Other: ".$_POST['other']; $headers = "From:" .$_POST['email']; //Place variables in mail funciton mail($to, $email_subject, $email_body, $headers); Many thanks,Andy
  14. HiI'm using checkboxes in a form and have a few questions. Here is an example of the checkbox code in the HTML form: <input type="checkbox" name="category" value="Accounting" /> Accounting<br /><input type="checkbox" name="category" value="Administration" /> Administration<br /> The PHP file I wrote to handle the form data checks to see if required info was not included and displays the form again asking for the required info. Any info that was entered in the form is carried over:1. How do I check to see if none of the category boxes were checked?2. If a box is checked, how do I make sure it remains checked when the form is re-displayed due to a required field not being filled?3. How do I code it so that when the form is filled out correctly and an email with the info is sent, the checked categories are included in that email?Many thanks,Andy
  15. HiI've set my company's site up with Google Analytics and have a couple questions.My boss has been using Webalizer and AWStats as his analytics tools. These tools are counting an average of about 3000 visits/day. So far, Google has only counted around 400 visits/day. Would anyone happen to know how this could be?Secondly, we have pages on our site with links to sponsor sites. Is Google Analytics capable of counting when visitors click these links and which links are clicked?Many thanks.
  16. HiI'm building a drop down menu and each option link needs to open a new window. Here's the code: <form><select onChange="if(options[selectedIndex].value) window.location.href=(options[selectedIndex].value)"><option>Select a Country</option><option value="http://www.link.com">Global</option>etc. I'm thinking there's extra code I need to add to the onChange, but I'm not sure what that would be. Can anyone help me with this?Thanks
  17. HelloI'm building a page that has a background color and repeated background image.http://www.bdki.com/bdki2.0/In IE it's looking fine. In Firefox, the background stops once the page gets to the floating DIVs. Here's the relevant HTML: <div id="homeBody"> <!--Using P instead of H2 because H2 causes space above the left border in FF, but not in IE --> <p id="topTitle">Welcome</p> <p class="padR2">At Knowledge Institute, we bring innovation and collaboration to the world of entrepreneurial development and small business education. By uniting government, nonprofit economic development agencies and private sector leaders in business-to-business solutions, we are providing robust access to the following comprehensive resources tailored to the interests and needs of today's entrepreneurs:</p> <div class="twoColumn"> <h3>Education</h3> <p> Utilize free online, interactive curriculum to build entrepreneurial skills and knowledge: <div class="twoColumn"> <ul> <li>Courses</li> <li>Registration</li> </ul> </div> <div class="twoColumn"> <ul> <li>Textbooks</li> <li>Certification</li> </ul> </div> </p> <br clear="all" /> <br /> <h3>Professional Services</h3> <p> Advance outreach, inpact and value to entrepreneurs by securing KnowledgeInstitute services in areas of: <ul> <li>Strategic Marketing Campaigns</li> <li>Content Development (web/print)</li> <li>Educational Program Development</li> <li>Speaking Engagements/Lectures</li> </ul> </p> </div> <div id="leftBorder" class="twoColumn"> </div> </div> Here are the styles: #homeBody { width:75%; margin-left:232px; margin-top:10px; padding-left:10px; border-width:0px; border-style:solid; border-color:#C1D4EA; border-left-width:1px; }#topTitle { font-size:140%; color:#6C3081; font-weight:bold; }#leftBorder { padding-left:10px; border-width:0px; border-style:solid; border-color:#C1D4EA; border-left-width:1px; }.twoColumn { float:left; width:49%; } .padR2 { padding-right:20px; } Is there a way to have the background be consistent across the browsers?Many thanks
  18. Thanks for the reply. I'm trying to get my head around sessions.I've been trying a less thorough alternative with the form and PHP on separate pages. I'm finding that if I put just about any other code (including HTML) in the PHP file that processes the form info, it causes the "headers already sent" error. I even stripped it down so there was only an image tag and the PHP and is till returned an error.Form <form method="POST" name="contact_form" action="contact_engine.php"> <div class="fhFormLeft2">To:</div> <div class="fhFormRight2"> <select name="department"> <option value="Donor Services">Donor Services</option> <option value="Events Coordinator">Events Coordinator</option> <option value="General Inquiries" selected="selected" >General Inquiries</option> <option value="Grant Makers">Grant Makers</option> <option value="Human Resources">Human Resources</option> <option value="Press Inquiry">Press Inquiry</option> <option value="Internship">Internship</option> <option value="Program Information">Program Information</option> <option value="Volunteer">Volunteer</option> <option value="Website Feedback">Website Feedback</option> </select> </div> <div class="fhFormLeft2">*First Name:</div> <div class="fhFormRight2"> <input type="text" name="nameFirst"> </div> <div class="fhFormLeft2">*Last Name:</div> <div class="fhFormRight2"> <input type="text" name="nameLast"> </div> <div class="fhFormLeft2">Title:</div> <div class="fhFormRight2"> <input type="text" name="title"> </div> <div class="fhFormLeft2">*Company Name:</div> <div class="fhFormRight2"> <input type="text" name="company"> </div> <div class="fhFormLeft2">Address 1:</div> <div class="fhFormRight2"> <input type="text" name="address1"> </div> <div class="fhFormLeft2">Address 2:</div> <div class="fhFormRight2"> <input type="text" name="address2"> </div> <div class="fhFormLeft2">City:</div> <div class="fhFormRight2"> <input type="text" name="city"> </div> <div class="fhFormLeft2">State:</div> <div class="fhFormRight2"> <select name="state" size="1"> <option value="AK" selected="selected" >Alaska</option> <option value="AL">Alabama</option> <option value="AR">Arkansas</option> <option value="AZ">Arizona</option> <option value="CA">California</option> <option value="CO">Colorado</option> <option value="CT">Connecticut</option> <option value="DC">District of Columbia</option> <option value="DE">Delaware</option> <option value="FL">Florida</option> <option value="GA">Georgia</option> <option value="HI">Hawaii</option> <option value="IA">Iowa</option> <option value="ID">Idaho</option> <option value="IL">Illinois</option> <option value="IN">Indiana</option> <option value="KS">Kansas</option> <option value="KY">Kentucky</option> <option value="LA">Louisiana</option> <option value="MA">Massachusetts</option> <option value="MD">Maryland</option> <option value="ME">Maine</option> <option value="MI">Michigan</option> <option value="MN">Minnesota</option> <option value="MO">Missouri</option> <option value="MS">Mississippi</option> <option value="MT">Montana</option> <option value="NC">North Carolina</option> <option value="ND">North Dakota</option> <option value="NE">Nebraska</option> <option value="NH">New Hampshire</option> <option value="NJ">New Jersey</option> <option value="NM">New Mexico</option> <option value="NV">Nevada</option> <option value="NY">New York</option> <option value="OH">Ohio</option> <option value="OK">Oklahoma</option> <option value="OR">Oregon</option> <option value="PA">Pennsylvania</option> <option value="PR">Puerto Rico</option> <option value="RI">Rhode Island</option> <option value="SC">South Carolina</option> <option value="SD">South Dakota</option> <option value="TN">Tennessee</option> <option value="TX">Texas</option> <option value="UT">Utah</option> <option value="VA">Virginia</option> <option value="VT">Vermont</option> <option value="WA">Washington</option> <option value="WI">Wisconsin</option> <option value="WV">West Virginia</option> <option value="WY">Wyoming</option> </select> </div> <div class="fhFormLeft2">Zip/Postal Code:</div> <div class="fhFormRight2"> <input type="text" name="zip"> </div> <div class="fhFormLeft2">*Business Phone:</div> <div class="fhFormRight2"> <input type="text" name="phoneBiz"> </div> <div class="fhFormLeft2">*Email:</div> <div class="fhFormRight2"> <input type="text" name="email"> </div> <div class="fhFormLeft2">*Request or Comments <br />(<i>Limit 1,000 characters</i>)</div> <div class="fhFormRight2"> <textarea cols="30" rows="6" name="message"></textarea> </div> <div class="fhFormLeft2"> *Ani-spam Code: </div> <div class="fhFormRight2"> <img src="captcha_code_file.php" /><br /> <input id="6_letters_code" name="6_letters_code" type="text" ><br /><br /> <input type="reset" value="Clear" /> <input type="submit" value="Submit" /> </div> </form> PHP without anything else. This returns no errors, but is nothing but plain text on an otherwise blank page. <?php session_start();//Check for errorsif (empty($_POST['nameFirst'])) { $problem = TRUE; $firstNameWarn = TRUE;}if (empty($_POST['nameLast'])) { $problem = TRUE; $lastNameWarn = TRUE;}if (empty($_POST['company'])) { $problem = TRUE; $companyWarn = TRUE;}if (empty($_POST['phoneBiz'])) { $problem = TRUE; $phoneWarn = TRUE;}if (empty($_POST['email'])) { $problem = TRUE; $emailWarn = TRUE;}if (empty($_POST['message'])) { $problem = TRUE; $messageWarn = TRUE;}if ($_SESSION['6_letters_code'] != $_POST['6_letters_code'] || empty($_SESSION['6_letters_code'])) { $problem = TRUE; $codeWarn = TRUE;}if ($problem == TRUE) { print '<p>Oops. The following information is required to properly process your contact request.<br />'; if ($firstNameWarn == TRUE) { print 'Please enter a first name.<br />'; } if ($lastNameWarn == TRUE) { print 'Please enter a last name.<br />'; } if ($companyWarn == TRUE) { print 'Please enter a company name.<br />'; } if ($phoneWarn == TRUE) { print 'Please enter a phone number.<br />'; } if ($emailWarn == TRUE) { print 'Please enter an email address.<br />'; } if ($messageWarn == TRUE) { print 'Please enter a message.<br />'; } if ($messageWarn == TRUE) { print 'Please enter a message.<br />'; } if ($codeWarn == TRUE) { print 'Please enter the correct security code.<br />'; } print 'Please use the back button on your browser to return to the form and enter the correct information. Thank you.</p>';}else {//Define variables using data pulled from completed form $department = $_POST['department']; $nameFirst = $_POST['nameFirst']; $nameLast = $_POST['nameLast']; $name = $nameFirst . ' ' . $nameLast; $title = $_POST['title']; $company = $_POST['company']; $address1 = $_POST['address1']; $address2 = $_POST['address2']; $city = $_POST['city']; $state = $_POST['state']; $zip = $_POST['zip']; $phoneBiz = $_POST['phoneBiz']; $email = $_POST['email']; $message = $_POST['message']; //Define variables used in mail function $to = 'andy@buzgate.org'; $email_subject = 'FERAD Contact: ' . $department; $email_body = "Name: ".$name."\n Title: ".$title."\n Company: ".$company."\n Address: ".$address1."\n Address: ".$address2."\n City: ".$city."\n State: ".$state."\n Zip Code: ".$zip."\n Phone#: ".$phoneBiz."\n Email: ".$email."\n Message:<br /> ".$message; $headers = "From:" . $email; //Place variables in mail funciton mail($to, $email_subject, $email_body, $headers); //Response to user after correctly filling out form echo $nameFirst.'<br /> Your message has been sent. Thank you for contacting FERAD.<br /><br /> Andrew Fling<br /> Webmaster';}?>
  19. HelloI'm using files I found at HTML contact form with captcha to build a contact form for my site. I'm trying to have the form and the handling PHP in the same file using "if (isset ($_POST['submit']))" to check if the submit button has been pressed or not. The following is the form I'm using as a test: <?php if (isset ($_POST['submit'])) { session_start(); if( $_SESSION['6_letters_code'] == $_POST['6_letters_code'] && !empty($_SESSION['6_letters_code'] ) ) { $to = "email@domain.org"; $department = $_POST['department']; $email_subject = "To:" . $department; $name = $_POST['name']; $email = $_POST['email']; $headers = "From:" . $email; $message = $_POST['message']; $email_body = "You have received a new message from " . $name . ".<br />" . $message; mail($to, $email_subject, $email_body, $headers); echo 'You entered the correct code. Your message is successfully emailed.'; } else { echo "Sorry, you have provided an invalid security code. Please <a href='contact_form_with_captcha.html'>CLICK HERE</a> to try again."; } } else { print "<form method='POST' name='contact_form' action='contact.php'> Enter Name: <input type='text' name='name'><br> Enter Message: <textarea name='message'></textarea><br> <img src='captcha_code_file.php' /><br> Enter captcha Code Here :<input id='6_letters_code' name='6_letters_code' type='text' ><br> <input type='submit' name='submit' value='Submit'><br> </form>"; }?> The problem I'm having is that an error occurs: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/ferad123/public_html/contact/contact.php:4) in /home/ferad123/public_html/contact/contact.php on line 6You entered the correct code. Your message is successfully emailed. Can anyone help me get the form to work without the "headers already sent" error occurring?Just in case, here's the code in the captcha_code_file.php session_start();$image_width = 120;$image_height = 40;$characters_on_image = 6;$font = 'monofont.ttf';$possible_letters = '23456789bcdfghjkmnpqrstvwxyz';$code = '';$i = 0;while ($i < $characters_on_image) { $code .= substr($possible_letters, mt_rand(0, strlen($possible_letters)-1), 1);$i++;}$font_size = $image_height * 0.75;$image = @imagecreate($image_width, $image_height);/* setting the background, text and noise colours here */$background_color = imagecolorallocate($image, 255, 255, 255);$text_color = imagecolorallocate($image, 20, 40, 100);$image_noise_color = imagecolorallocate($image, 100, 120, 180);/* generating the dots randomly in background */for( $i=0; $i<($image_width*$image_height)/3; $i++ ) {imagefilledellipse($image, mt_rand(0,$image_width), mt_rand(0,$image_height), 1, 1, $image_noise_color);}/* generating lines randomly in background of image */for( $i=0; $i<($image_width*$image_height)/150; $i++ ) {imageline($image, mt_rand(0,$image_width), mt_rand(0,$image_height), mt_rand(0,$image_width), mt_rand(0,$image_height), $image_noise_color);}/* create a text box and add 6 letters code in it */$textbox = imagettfbbox($font_size, 0, $font, $code); $x = ($image_width - $textbox[4])/2;$y = ($image_height - $textbox[5])/2;imagettftext($image, $font_size, 0, $x, $y, $text_color, $font , $code);/* Show captcha image in the page html page */header('Content-Type: image/jpeg');// defining the image type to be shown in browser widowimagejpeg($image);//showing the imageimagedestroy($image);//destroying the image instance$_SESSION['6_letters_code'] = $code; Many thanks
  20. HiI'm trying to place images and paragraphs in a DIV with a border. In Firefox, the border goes all the way around everything within the DIV. In Internet Explorer the border only seems to "recognize" text and won't go around images. Is there a fix that will get IE to display it correctly?Here's the link: http://www.bdki.com/test/index-test.htmlHTML <div id="container"> <p align="right" id="topNav"><a href="index.html">Home</a> <a href="contact.html">Contact</a> <a href="contribute.html">Contribute</a> <a href="about.html" class="last">About Us</a></p> <div id="border"> <a href="index.html"><img src="images/img_logo.gif" border="0" alt="The Players' Ring" title="The Players' Ring" align="left" class="margR2" /></a> <p id="mainNav"><a href="box.html">Box Office</a> <a href="contribute.html">Get Involved</a> <a href="onstage.html">On Stage</a> <a href="greenroom.html">Green Room</a></p> <br clear="all" /> <br /> <img src="images/img_home1.jpg" align="right" border="0" alt="The Players' Ring" title="The Players' Ring" /> <p> <img src="images/img_croped_currentslot.gif" align="left" border="0" alt="Tri-colored Roof" title="Tri-colored Roof" /> Tri-Colored Roof<br /> April 3 - 12 </p> <br clear="all" /> </div> </div> CSS #container { width:750px; margin:auto; background-color:white; padding:10px; }#topNav { font-size:70%; }#topNav A { color:#DD4400; text-decoration:none; margin-left:20px; }#topNav A:hover { text-decoration:underline; }#border { margin:auto; padding:5px; border-style:solid; border-width:1px; border-color:#DD4400; }#mainNav { font-size:80%; margin-top:20px; font-weight:bold; }#mainNav A { color:#DD4400; text-decoration:none; margin-right:15px; }#mainNav A:hover { text-decoration:underline; } Thank you
  21. HiThis is a problem I continually deal with. I have two floating objects, in this case an image and a paragraph. The IMG floats all the way to the left and the P to the right of the container DIV just as I want them to.The problem is the difference in space between the floated objects and the following object (in this case another P) in Firefox vs. IE. Using clear:left, right or all with any of the elements in styles doesn't seem to make a difference so I use a <br clear="all" /> right after the floated objects. In FF the break causes space between the floated objects and the following P, but in IE there is no space. The difference causes a flaw in my design in one browser, depending on how I code the page.Is there a way to bypass this bug or is there an alternative to floating that won't cause the difference in browser interpretation?Here's the link: http://www.bdki.com/test/Here's the HTML <body class="first last"> <div class="container"> <img src="images/logo.gif" border="0" alt="The Players' Ring" id="logo" /> <p id="headerNav"> <a href="contact.html">Contact</a><br /> <a href="contribute.html">Become a Member</a><br /> <a href="contribute.html">Donate</a><br /> <a href="blog.html">Blog</a> </p> <br /> <br clear="all" /> <p id="topNav"><a href="box.html">Box Office</a> <a href="contribute.html">Get Involved</a> <a href="onstage.html">On Stage</a> <a href="news.html">Green Room</a> <a href="about.html">About Us</a></p> <p id="homeDescription">Welcome to The Players' Ring. Our mission is to bring to the NH Seacoast original theatre: written by local authors, produced by local teams and acted by local talent. Come on down and kick Babs in the pants, it's a HOOT!</p> </div> </body> Here's the CSS body { font-size: 100%; line-height:1.125em; color: #222; background: #000000; font-family: Arial, Helvetica, sans-serif;}#headerNav { float:right; text-align:right; font-size:70%; padding:0px 5px; color:#ffffff; line-height:12px; }#topNav { font-size:80%; }#topNav A { margin-right:10px; }#homeDescription { width:30em; padding-bottom:.5em; margin-left:5em; }#logo { margin-top:15px; position:relative; top:1.1em; float:left; }.container { width:90%; margin:auto; background-image:url(../images/img_top_bg.gif); background-position:top left; background-repeat:repeat-x; background-color:#333366; } Many thanks
  22. HelloI realize this might not have been the best forum for these questions, so if you know which W3Schools forum would be better for this, please let me know.I work on a web site that is, essentially, repeated for each state with state-specific content in portions of the site.Also, we are almost finished with a site re-design/re-development that is located on a different server. A portion of the new site's completed content is being displayed live in an i-frame on another company's site.Question 1: On the current site, are we reducing our potential search engine ranking by having duplicate pages for each state, essentially competing with ourselves?Question 2: Did we further reduce our ranking by having the new pages displayed while the old pages are still up?Many thanks
  23. HiIf you go to http://www.buzgate-dev.org/8.0/ak/fh.html (if it doesn't come up, refresh) in Firefox, you should see an 8 tab menu resting right on top of the main content. In IE, there is space between the tabs and the content. Each tab is a DIV with float:left; all of which are contained in another DIV.Is it possible to get IE to behave like FF in this situation?Many thanksAndy
  24. HiThis is super basic so feel free to redirect me to an earlier post.I just need to convert an audio file from a disc, uploaded and link to it in my site. The format it is in now is .cda. How do I get this to work?Many thanks
  • Create New...