Jump to content


  • Posts

  • Joined

  • Last visited

benjancewicz's Achievements


Newbie (1/7)



  1. ...oh yeah...Pesky permissions
  2. benjancewicz

    Puzzling Form

    I'm a bit baffled...I have this form, duplicated on two hosting servers.One is here: http://www.zerflin.us/labs/contact.htmlOne is here: http://barakdrama.org/contact.htmlThe code is exactly the same (written out below), but one works and the other doesn't. Any ideas?THE FORM: <form action="contact.php" method="post" class=""><fieldset><p> <input name="firstname" type="text" class="textfield" id="firstname" /> First Name<p> <input name="lastname" type="text" class="textfield" id="lastname" /> Last Name<p> <input name="address" type="text" class="textfield" id="address" /> Address<p> <input name="city" type="text" class="textfield" id="city" /> City<p> <input name="state" type="text" class="textfield" id="state" /> State<p> <input name="zipcode" type="text" class="textfield" id="zipcode" /> Zip Code<p> <input name="phone" type="text" class="textfield" id="phone" /> Phone<p> <input name="email" type="text" class="textfield" id="email" /> Email<p>Comment<p><textarea cols="30" rows="15" name="comment" id="comment"></textarea><input name="submit" type="submit" class="submit" id="submit" value="submit" /></fieldset></form> THE PHP: <?// Takes posts from form and turns it into an array$fields = $_POST;// Makes the submit button usable again, incase the form gets stuckunset($fields['submit']);// Sets the filename of the DSV file$file = "output.csv";// Opens the file (or error if it can't open it)$fh = fopen($file,'a') or die("can't open file");// Puts a quote around the commas so that they turn into columns$delim = '","';// Writes the commas from the line above$csv_row = implode($delim, $fields);// Puts a quote in front of the beginning of the first fieldfwrite($fh, '"');// Writes the data from the line abovefwrite($fh, $csv_row);// Puts a quote at the end of the last fieldfwrite($fh, '"');// Sets up "Carriage Return Line Feed" (CRLF) (basically ENTER) or in HTML, <br>$crlf="\r\n";// Writes the line abovefwrite($fh, $crlf);// Closes the filefclose($fh); PRINT "<p>";echo "<center>Thank you! </center>";$message .= "\nFirst Name: $firstname\r\n\nLast Name: $lastname\r\n\nAddress: $address\r\n\nCity: $city\r\n\nState: $state\r\n\nZip Code: $zipcode\r\n\nPhone: $phone\r\n\nEmail: $email\r\n\nComment: $comment\r\n\nLineBreak: $crlf\r\n";$headers .= "From: $email <$email>\r\n";mail("benjancewicz@zerflin.com", "Barak Contact Form", $message, $headers);?>
  3. I figured it out. The Footer had to have clear: both; in it.
  4. I just figured it out. Setting the font to a particular pixel size overrides it.
  5. Is there a way in CSS to prevent text from being resized by the "Text Size" tool in IE?
  6. Ok, I've got things running pretty smoothly on this site, but the content in the left column of this page is spilling over my footer.http://bmengini.com/beta/bio.phpWhy is that? I have the divs for both the Left Column and the Main Content set to 100% Height.
  7. You got it. That's why everything is so thin.
  8. What size are you using? And what would you suggest? Is there a way to set a maximum size?
  9. Got it!!!! Take a look.http://bmengini.com/beta/EDIT: here's the solution I used: <img src="images/4831.jpg" width="100%">
  10. In Firefox, this looks great: http://www.fatherhood.org/daddypack/dadgearsurvey.aspbut in IE, the blue navigation bar at the top is shorter than the header image (on the right hand side).How do I fix this?
  11. I see. Do you know what the file might look like that I would be able to modify that file? I don't know where to begin to look.
  12. At the ASP files I'm working on, I have: <% '''MODIFY BELOW BETWEEN QUOTES TO CHANGE TITLE %><% HeaderTitle("Title Goes Here") %> How do I add a description to this as well?
  13. I tried that, but the image wouldn't stay proportional.
  14. How do I write CSS to scale an image proportionally depending on window size?I've got some nice navigation that stays consistent no matter what the window size is: http://bmengini.com/beta/But I'd like the image to be resized with it.Any ideas?
  • Create New...