Jump to content
Killersites Forums


  • Posts

  • Joined

  • Last visited

Everything posted by dpt

  1. Thanks. You're absolutely right. I actually read part of that post but forgot about it.
  2. Hi. I want to click on a link on my page and have it open a video in that same page; I don't want it to navigate to another page. In the Killersites University section, the tutorials do this. You click the name of the video to open it and it opens on top of the page you are on. This is PRECISELY what I want to do. Help? I don't know that this is Javascript but posted here because that's my best guess. Thanks!!
  3. I started learning HTML a couple weeks ago and Javascript last night, so bear with me. My goal: I want to build a checkbox tree in a form. The tree will have a few levels--let's say Country, State, and City. I can do this easily with nested lists in HTML, but want a few snazzy features: a) I want to be able to expand or collapse each section of the tree. If I click "United States", I get a list of states. If I then click "Alabama" I get a list of cities in Alabama. (My current code does this, but I want to get rid of the bullets from the list formatting.) Each country/state/city will have a checkbox by it. When I check/uncheck the "Alabama" box, I want it to automatically check/uncheck all of the boxes for Alabama cities--the boxes on that "branch". (I can't figure out how to do this. In fact, I can't figure out how to put checkboxes on any but the bottom/city level.) c) I want the default setting (when first loaded) to be that the tree is collapsed. Right now, my code makes the default setting and expanded tree. Below is the code I have thus far. Am I on the right track? What functions do I need or where can I find examples of correct checkbox tree code? Any pointers would be appreciated. Thanks. > </pre> <ul> </ul> <a rel="">United States</a><br><br><ul> </ul> <a rel="">Alabama</a><br><br><br>Anniston<br><br>Auburn<br><br>Birmingham<br><br>Decatur<br><br>Dothan<br><br>Florence<br><br>Gadsden<br><br>Huntsville<br><br>Mobile<br><br>Montgomery<br><br>Tuscaloosa<br><br><br><br><br><br><ul> </ul> <a rel="">Arkansas</a><br><br><br>Fayetteville<br><br>Fort Smith<br><br>Jonesboro<br><br>Little Rock<br><br>Pine Bluff<br><br><br><br
  4. I started learning PHP yesterday with the help of Stefan's videos, so I'm a newb and will be posting lots of questions in the next few weeks. Most of them will be easy to answer--just seems like a waste of time to search all day for an elementary answer when I could just post something. Bear with me. Situation: I have an HTML form with text boxes. I know how to print the text received in the form. For instance, if I have 2 boxes--"First Name" and "Last Name"... print $_POST['name_first']; print $_POST['name_last']; will render Mary Jane Smith (if the First Name value is "Mary Jane" and the Last Name value is "Smith") Question: I want to do something slightly more complicated. I want to 1) add a "+" between each word in a given text box (I couldn't figure out how to use the Join function to do this) 2) add specific text before and after the words in each text box, but ONLY if that text box contains contents. Example: Going back to the example above, I want to get the result: fn=Mary+Jane&ln=Smith& What's the best way to do this? Thanks.
  5. Thank you all for your input! I'll try my hand at PHP. Stefan, thus far your PHP videos have been very helpful. I'm far from being able to build a site in PHP, but I feel like I'm heading in the right direction.
  6. I am a beginner. I took a course on HTML so I can build your basic 5-page static HTML website, but that's it. I want to build a more complicated site but don't know how or what tools to use. Any advise would be greatly appreciated. The idea is as follows: The purpose of my site is to create a custom URL that will take you to a very specific place in a different site that is very large and has poor search capability. (I am not the administrator of that site, but I can make it's search capability better through my site.) My site is a search page that has both text boxes and check boxes, and a Search button. For each text and check box that has text or a check in it, another element is added to the URL. When the user hits the "Search" button, another tab or window will open with the URL corresponding to what they entered in the boxes. Examples: - If nothing is entered before the search button is selected, a window opens with the URL www.website.com - If check box A and B are checked, a window opens with the URL www.website.com/A%B - If check box A and B are checked, and "text 1" is entered in one of the text boxes, a window opens with the URL www.website.com/A%B%text+1 Make sense? The idea itself is simple enough, but I don't know where to begin.
  • Create New...