Jump to content

Styler001

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

About Styler001

  • Birthday 06/11/1966

Profile Information

  • Gender
    Male
  • Location
    Maple Falls, WA, USA

Styler001's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hmmm...I don't think that's quite what I was looking for. I played around with that using different %'s and other options, but it just doesn't seem to be what I need. I appreciate your suggestions, though. Thanks.
  2. I had thought of just reloading the page, but it has a visitor counter on it that I don't want to have artificially inflated because of a reload. And I think I'd have to go into another PHP file to put the "blah" at the very top of the page. I had someone else program my site for me, and the easiest thing for me was to put that javascript in the HTML file I've been working with. I'm not opposed to the inline frame if you think that would work. I'm just such a noob at any of this that I have to ask for help and examples.
  3. Hmmm....Couldn't find the edit button to edit my last post. Sorry. Rather than just moving back to the top of the table, I wanted to go all the way to the very top of the page. I've actually got some graphics and text above the table, so I wanted the "top" to go all the way up there. Here's how I solved that: <script type=\"text/javascript\"> function scrollWindow() { window.scrollTo(0,0); } </script> and used this at different points within the table: <form> <input type=\"button\" onclick=\"scrollWindow()\" value=\"Top of Page\"> </form>
  4. I don't why I didn't think of that for the "top" option. Guess I was just looking for a command HTML might have. As for the right-side frame, I don't see how I could do that with three columns. From what I can tell (which isn't much at this point), it seems that frames would apply to all three columns, so I'd have frames showing up on the right side of all three columns. I thought the "frame" code would be placed within the "table" tag, affecting the whole table.
  5. Thanks. That worked. I was trying <td align="top"> (not valign) before, thinking that would do it. One more question... Is there an anchor or something that I can include that, when clicked on, will return the user to the top of the page? All I could seem to find on w3schools was some javascript example that didn't seem to be appropriate for what I want. Actually, one other question as well... I see that you can put a frame to the right of the columns, which in my case would put one to the right of column one AND one to the right of column two. Is it possible to just put one frame BETWEEN the two columns only? Thanks again.
  6. Using this as an example from w3schools website: <p> <a href="#C4">See also Chapter 4.</a> </p> <h2><a name="C4">Chapter 4</a></h2> <p>This chapter explains bla bla bla</p> I would like to do something similar to the following.... I would like to create a 2-column table. The first column would contain about 12 links like the "#C4" above. When you click on one of them, you would be taken to the appropriate part of the page in the second column that that link points to. I have it working like I would like (sort of), but the one issue I have is that the number of clickable links in the first column is wayyyyyyyyyyy shorter than the total number of lines in the second column. So, my list of links is situated down at the middle of the page, rather than at the very top of it. I understand why it's doing what it's doing, but is there a way to force the links to be at the very top of the column?
  7. @chigley: Thanks. Worked like a charm. @warewolfe: Thanks. I'll keep that site bookmarked.
  8. In my php script is the following code for when a person makes a new guestbook entry on my site: { echo "<br>Your comment has been entered into our guestbook. Thank you.<br><br /><a href=\"javascript:window.close();\">Close Window</a>"; } I would like to add some code to automatically send me an e-mail (let's say to my_email@my_email.com) when the above code is executed. All it needs to say is something like, "New guestbook entry" in the subject line without any message text. I know this is basic stuff. But, for the life of me, I can't remember where I saw an example of this before. And I'm assuming this would be placed before the final }. Thanks in advance.
  9. Well, I understand what you're saying.  But, I'd rather not get into the javascript at this time. Like I said, I'm a noob at PHP, and I know what I'm asking for is probably pretty basic.  But I just can't seem to figure out why that second drop down box is even appearing right away, when it shouldn't be.  Or, why the City drop down box doesn't display if I select City. When I select City, then click Submit, nothing happens.  If I select Names, then click Submit, I can't tell if anything happens because the Names drop down box is already displayed. I realize (and appreciate) that you guys are trying to get me from here to a "better" there because you know what this should all look like.  But, I'd like to see what needs to be fixed in the code that I have just so I know what to expect when I get into the more in-depth coding later. Also, can someone tell me, if I use javascript, does the person viewing my pages need to have Java installed?  If that's the case, I don't want to use javascript because I don't want the viewer to be [u]required[/u] to install anything to view my pages.
  10. Wow!  That was a little more complicated than I was ready for.  Eventually, I will be using a MySQL database, but for now I'd just like to get this figured out using something like the following code.  I know it's very crude and primitive, and doesn't work like I want it to, but I think I should get an understanding of how to accomplish this before I move on. If you run this code, it displays the first drop down box like I want it to, but it also displays one of the other drop down boxes that shouldn't be displayed until after you make a choice from the first one. [code]<html> <body> <?php {   echo '<br><br><br><br>';   echo '<b>Search By</b>';   echo '<form>';   echo '<select name="Choice">';   echo '<option value="City">City</option>';   echo '<option value="Name">Name</option>';   echo '</select>';   echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp';   echo '<INPUT TYPE="submit" value="Submit">';   echo '</form>'; }   if ($Choice == "City") {     echo '<br><br>';     echo '<b>Select City</b>';     echo '<form>';     echo '<select name="City">';     echo '<option value="New_York">New York</option>';     echo '<option value="Los_Angeles">Los Angeles</option>';     echo '</select>';     echo '</form>'; }   else {     echo '<br><br><br><br><br><br>';     echo '<b>Select Name</b>';     echo '<form>';     echo '<select name="Name">';     echo '<option value="Joe">Joe</option>';     echo '<option value="Tom">Tom</option>';     echo '<option value="Fred">Fred</option>';     echo '</select>'; } ?> </body> </html>[/code]
  11. I think I'd like to stick with PHP.  Wouldn't using a Java script mean that the receiving computer would have to have Java installed?  And with a java script, I'm even more lost than I am with PHP.  My PHP experience is very basic still, but my Java experience is non-existent.
  12. Hi, all.  Looking around here, it looks like this is a great place to get some help with the problem I have.  I'm a noob at this PHP stuff, so please take it easy on me. For a website I'm working on, I am trying to open a second drop down box that will contain the type of information you choose in the first drop down box.  At this point, I'm not really interested in any new web pages being opened.  I'd just like to ask for some help with the general coding of this so I can study it and proceed. The first drop down box you would see contains the following choices: CITIES and NAMES So, if you choose CITIES in the first drop down box, the second drop down box should contain a list of cities.  If you choose NAMES in the first box, the second drop down box should contain a list of names. What I don't understand is how to assign the variables and whatever else may be needed, and from there how to actually display either the list of cities or names in that second box. I understand that in normal English it would be something like: [code]If Choice = Cities   Then open the new drop down box containing the list of cities Else   Open the new drop down box containing the list of names[/code] So, translating that into PHP is where I'm stuck.  And my not-so-impressive beginning for the PHP script is: [code]<?php   {   echo '<form>';   echo '<select name="Choice">';   echo '<option value="Cities">Cities</option>';   echo '<option value="Names">Names</option>';   echo '</select>';   echo '</form>';   } ?>[/code] I'd appreciate any help you can give this noob.  Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.