Jump to content


  • Posts

  • Joined

  • Last visited

About damiancds

  • Birthday 05/04/1988

Previous Fields

  • Languages
    html, css, Learning php

Contact Methods

  • AIM
  • Website URL
  • ICQ

Profile Information

  • Location
    Medusa, NY
  • Interests
    Games,<br />Programming,<br />Graphic Design,<br />Problem Solving

damiancds's Achievements


Member (2/7)



  1. I recently set up a shared SSL for my site, and the pages that use the SSL don't link to my CSS or any of my images.my setup is thispage links to page (includes.html) via <?php require("/home/ledger6/public_html/resources/includes/includes.html"); ?>which, in turn links to my css via <link rel="stylesheet" type="text/css" href="/resources/includes/css/style.css" media="screen">and images in my css are referenced like this: background-image: url('/resources/images/system/backgrounds/back_005.jpg');I've read about not using certain types of links, but I'm not sure how to do it without changing everything.any help would be greatly appreciated.
  2. Unfortunately, it didn't work. I think that if I had the right permission, it would (I've been reading on a related matter, and I think I would have to have access to http.conf or something - which I can't find)Either way it results in an internal server error.It's really no big deal, i mean about the image thing, not the internal server error.
  3. I'm not sure if it can be done with .htaccess (not really sure what it's capable of or best used for), but I'd like to load an image by default and replace it with the expected image if it's found.basically load an image (a little square stating image not found) and if it finds the right one, load that over top of it.or only load the not found image when the normal image isn't found.Again, not really sure if .htaccess is meant for this sort of thing, and if not, what should I do it with?Thanks,
  4. I'm looking for reference books for web design.I'm thinking definitely a php/mysql bookmaybe just a css referenceand a JavaScript bookI have two books already, both something like web wizards guide or something for php and html (both were about 1/2 inch thick. The html one was descent, but it didn't really delve into things, and the php was horrible, I can say I didn't learn/remember anything from that book.but back to the original question, can anyone recommend a good book that covers php, and possibly mysql together (i'm looking for total php, not just mysql related php, so perhaps separate books would be better)-examples are great,-reference section would be nice-easy to follow, but doesn't skimp on details, and covers most everything (I'm a beginner but I don't want a beginner book and have to get an advanced book later onto give a little background, I'm handcoding my site, I don't like depending on something like dreamweaver or a wysiwyg editor, I like understanding the code I've arrived at.I go to New York City on the weekends for a farmer's market and there's a Barnes And Noble near there where I can get it. For now, I'm interested in only the php and mysql, I don't plan on using javascript very much at all and that can wait, and the css, I've got a pretty good grip on already, besides w3schools is great for that.
  5. is it possible to have a link to a page with a form on it and change one of the options in a select box from that link?ie<a href="page01.php" id(select_01).value(3)>blah</a>basically I have a contact form for every type of contact, and I have a link to submit a question, and if they click that link, I want the 3rd option of the select box to show instead of the first default optionis it possible?thanks,
  6. I AM SUCH A @%$!ing IDIOT...As it turns out, when I was requesting it, i used $num_ingd = $_REQUEST['build_ingd'];but when i did my comparing, output and form building, i used build_ingd as a variable not what I set it to.Now where's that dunce cap...again, thanks for the help and tolerance of stupidity...
  7. okay, a little background: The first part of the form asks how many ingredients there are, then takes that information to the second form and the second form is built with that many text boxes for however many ingredients. I'm not sure if my testing (if num > 1) actually test if it's longer(as in string length) or greater(higher in number)The first form submits to itself( as in the same page) where the basic logic is: if( num > 1){ Show part 2 of the form where they put in all the info (which has a for loop running to build the textboxes) and submit}else{ Show part 1 (just asking for number of ingredients} Also, at the end of all this, I plan on putting all the information into a text file (don't know if that matters, but I'll do that later, though I've already got that done, except for the user's inputs
  8. damiancds

    Awkward access

    thanks, I guess I wasn't really paying attention when I put it in there. Hopefully nothing else shows up in my error logs
  9. damiancds

    Awkward access

    It took me a while but I finally found the topic I started,I've put the php header(s) on the main page of my site, which appears to be working as it should, but I recently noticed this in my error logs[25-May-2010 08:15:15] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/ledger6/public_html/index.php:1) in /home/ledger6/public_html/index.php on line 1the actual php header code i've used is: <!-- <?php Header("Cache-Control: must-revalidate"); $offset = 60 * 60 * 24 * 1; $ExpStr = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT"; Header($ExpStr); ?> --> I'm wondering why I'm getting this error, if the caching seems to be working. (should i get rid of the html comments <!-- , --> )thanks,
  10. Sorry about that, I swear I checked it before I posted it.Anyway, it's back up
  11. sorry about taking so long to get back to you, finally got done some of the other things I was doing.On your suggestion, I removed all but the first requests, so they are only requested once. The curious part is that I have an input form, and then it gets submitted to itself, and if the values are greater than 1, it shows the next part, which works. It seems to lose the value. I'm really at a loss here.
  12. So, basically there's no way to know which will be faster, it will always depend on the individual user. (I doubt there's a way to grab the user's location, the servers location, and do the math, let alone if it's even worth trying)thanks, I might just copy the file over, that way I won't be dependent on another site, in case it goes down for whatever reason.
  13. I've been looking a scripts to tackle a few things, and on one of them, I'm requesting http://ajax.googleapis.com/ajax/libs/jquer...2/jquery.min.jsI was curious if it would be faster if that particular file was within my directories instead of on the ajax.googleapis.com site. It would also be helpful if what I'm talking about is even legal,thanks,
  14. Right now, I'm using the focus pseudo to change the text color from gray to black, but when it leaves the input and going to the next, it changes back from the black back to the gray. What i want is for it to stay black. I've tried using the :visited , which didn't work.EDIT:also, when i click on my buttons, the text color changes to black (from white) and it only changes back to white when i click somewhere else.If you wanted to look at it, here's my code:CSS: fieldset { background-color: #ffffff; /*#ccff99;*/margin: auto;padding-right: 10px;width: 470px;border: 3px ridge black;background-image: url('body-bg.jpg');background-position: bottom right;background-repeat: repeat-x;}legend {margin-left: 1em; color: #000000; font-weight: bold; border: 2px solid green;background-color: ivory;}label { max-width: 250px; min-width: 200px; height: 1.5em;line-height: 1.5em; margin: 5px 0px 0px 0px; padding-right: 10px;text-align: right; color: #ffffff;background-color: #007700;float: left;clear: left;}input.button {float: left;height: 2em; margin: auto;width: 150px; line-height: 1em; margin: 10px; text-align: center; color: #ffffff;border: 2px outset black;background-color: green;}input.button{border: 2px outset black;}input.button:hover{border: 2px inset black;}fieldset input.button{border: 2px outset white;}fieldset input.button:hover{border: 2px inset white;}input {float: left;width: 250px; height: 1.5em; line-height: 1.5em; margin: 5px 5px 0px 0px; text-align: left; color: #aaaaaa;border: 1px inset black;}input:focus{color: #000000;}input:visited{color: #000000;}select{ float: left; max-width: 300px; min-width: 250px; height: 2em;line-height: 1em;margin: 5px 5px 0px 0px; padding: 2px 0px 0px 2px; text-align: left; color: #aaaaaa;border: 1px inset black;}select:focus{color: #000000;}option{padding: 5px 0px 0px 5px;height: 2em;line-height: 1em;border-bottom: 1px dashed black;}textarea{ float: left; width: 250px; height: 200px; margin: 5px 5px 0px 0px; text-align: left; color: #aaaaaa;border: 1px inset black;}textarea:focus{color: #000000;} HTML: <form method='post' action='/system/contact.php'><fieldset><legend>Contact Ledge Rock Farm</legend><label for='email'>Email:</label> <input name='email' type='text' id='email' value="You@domain.com" onfocus="this.value=''; this.onfocus=null;"> <label for='subject'>Subject:</label> <select name='subject' id='subject'> <option value='None'>-- Please Select --</option> <option value='Feedback'>Comments/Feedback</option> <option value='Questions'>Questions</option> <option value='Order Inquiry'>Order Inquiry</option> <option value='Product Inquiry'>Product Inquiry</option> <option value='Other'>Other</option> </select> <label for='message'>Message:</label> <textarea name='message' rows='10' cols='40' id='message' onfocus="this.value=''; this.onfocus=null;">Your message here</textarea> <input class="button" type='reset' value="Clear Form" class="button"> </fieldset> <input type='submit' value='Send Message' class="button"> <input type='reset' value='Clear Form' class='button'> </form> EDIT: nevermind about the button problem, I had an input:focus overlapping my buttons, so I got that fixed
  15. I've been looking at other sites for form designs and found a few I liked, but when I went to tweak them a little I couldn't get where I wanted so I decided to start from scratch. My main problem is, I want to do a form without doing each line in an unordered list, which looking around is all i found how to do them aligned. I'm hoping i can do it with floating and clearing my labels.like<label>blah</label><input ...>with each label and it's respective input/textarea on its own line.it's just everywhere i look there nested in lists, that would mess with one of my javascript functions, besides it's more coding I'd rather not do. I've messed with floating and clearing, and haven't gotten them looking right.EDIT: Nevermind, I got it, I guess i didn't play enough with the floating and clearing, sorry.
  • Create New...