Jump to content

HHawk

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by HHawk

  1. Okay I am building a website and I found this piece of coding, after doing a long search:

    <?php if ( isset($HTTP_GET_VARS['news'])) {include('main.html'); }else if ( isset($HTTP_GET_VARS['page1'])) {include('page1.html');}   else {include('wrongpage.html');} ?>

    So you could use:

    http://yourpage.com/filename.xxx?newshttp://yourpage.com/filename.xxx?page1

    To call the content to the right place. The above worked for me, so I decided to go along with this stuff.But for some reason it won't work anymore now... And I have no clue what I am doing wrong.My code:

    <?php if ( isset($HTTP_GET_VARS['Nieuws'])) {include('nieuws.php'); }else if ( isset($HTTP_GET_VARS['Over ons'])) {include('overons.php'); }else if ( isset($HTTP_GET_VARS['Netwerk'])) {include('netwerk.php'); }else if ( isset($HTTP_GET_VARS['Overzicht'])) {include('overzicht.php'); }else if ( isset($HTTP_GET_VARS['Koper'])) {include('koper.php'); }else if ( isset($HTTP_GET_VARS['Brons'])) {include('brons.php'); }else if ( isset($HTTP_GET_VARS['Zilver'])) {include('zilver.php'); }else if ( isset($HTTP_GET_VARS['Goud'])) {include('goud.php'); }else if ( isset($HTTP_GET_VARS['Platina'])) {include('platina.php'); }else if ( isset($HTTP_GET_VARS['Titanium'])) {include('titanium.php'); }else if ( isset($HTTP_GET_VARS['Bestel pakket'])) {include('pakket.php'); }else if ( isset($HTTP_GET_VARS['Algemeen'])) {include('algemeen.php'); }else if ( isset($HTTP_GET_VARS['Prijzen'])) {include('prijzen.php'); }else if ( isset($HTTP_GET_VARS['Formulieren .NL'])) {include('formulieren.php'); }else if ( isset($HTTP_GET_VARS['Domeinnaamcheck'])) {include('check.php'); }else if ( isset($HTTP_GET_VARS['Bestel domeinnaam'])) {include('domeinnaam.php'); }else if ( isset($HTTP_GET_VARS['Informatie'])) {include('informatie.php'); }else if ( isset($HTTP_GET_VARS['Prijsoverzicht'])) {include('prijsoverzicht.php'); }else if ( isset($HTTP_GET_VARS['Bestel server'])) {include('server.php'); }else if ( isset($HTTP_GET_VARS['F.A.Q.'])) {include('faq.php'); }else if ( isset($HTTP_GET_VARS['Abuse policy'])) {include('abuse.php'); }else if ( isset($HTTP_GET_VARS['Anti-spam policy'])) {include('spam.php'); }else if ( isset($HTTP_GET_VARS['Contactgegevens'])) {include('contact.php'); }else if ( isset($HTTP_GET_VARS['Voorwaarden'])) {include('voorwaarden.php'); }else if ( isset($HTTP_GET_VARS['Referenties'])) {include('referenties.php'); }   else {include('wrongpage.html');} ?>

    And when I click "Nieuws" I only get the 'wrongpage.html' stuff only.What am I doing wrong here? Using capitals wouldn't be the problem, nor the spaces, right?If anyone could please take a look at it...Thanks.

  2. Okay I changed the layout to PHP, still the main page is divided by 3 columns; navigation / main content / some other stuff.Each column uses the PHP include command, to include the necessary PHP page. E.g. <?php include("navigation.php"); ?>But now how do I load / target the content from a link to the maincontent.php (main text area)?Or does this way mean, it has to load the whole page everytime?I am baffled here, so if anyone would be nice to point me in the right direction... E.g. tutorial or an example. I would be very grateful./editI found this, after some really hard searching:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Untitled Document</title></head><body><table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0"> <tr>   <td colspan="2"><?php include('top.html'); ?></td> </tr> <tr>   <td width="30%"><?php include('menu.php'); ?></td>   <td width="70%"><?php if ( isset($HTTP_GET_VARS['news'])) {include('main.html'); }else if ( isset($HTTP_GET_VARS['page1'])) {include('page1.html');}   else {include('wrongpage.html');} ?></td> </tr></table></body></html>

    and you can put to you navigation menu links like:http://yourpage.com/?newshttp://yourpage.com/?page1
    Will that, of course after a little modifying (tables etc.) work for me as well?
  3. Well, instead of IFrame, you may create an XHTML frameset that would hold the rest of the documents in frames (not IFrames). However, the framesets are hated for the same reasons Iframes are, so that's not a solution either.It's best to simply call a new page with the new content, calling the navigation over and over again with a sort of SSIs.
    Hehe. Sounds like it would ugly, no offence meant.But would it be possible with CSS? Though I have to redo the slices and stuff I guess... :)
  4. By the way; here is a screenshot to make clear what I am talking about.Maybe it's easier to understand this way.ScreenshotThe screenshot is in low quality cause of the size. :)As you can see there are 3 columns of tables (each expands in height automaticly). But is it possible to the middle column show the contents when clicking on a link in the navigation section?Cause I am also planning, if possible of course, to show the query result from WHOIS in the middle column (table) as well.../editIt would work if I would use iframes, but as everyone knows; Mozilla Firefox doesn't like height=100%. So that would be causing me problems, especially since the contentboxes can get bigger depending on the content in them... :S

  5. You can use css to create a 3 column page. The left column can hold the links, the right column some other stuff and the middle column (the largest) the main content.There is an easy tutorial - have a look at Selectutorial here:http://css.maxdesign.com.au/selectutorial/tutorial_intro.htmscroll down and click on the finished sample button to see what it looks like - I think its what you want.
    First thanks for taking the time to answer. Highly appreciated.The link you gave, does look like I want, but I think I will have a small problem when I am going to use this. Cause the tables are skinned; I mean they have graphics and some stretch (put them as a background). Or is it possible to place the tables and everything else in those columns (like in the tutorial).I really hope you understand me, cause I am having a hard time trying to explain what I want in decent English (I am Dutch so...) :)
  6. Okay I am wondering about the following, which is probably not possible, but I am not afraid to ask it anyway.With an iframe it's possible to add name="content" tag, so it will display the link contents in this iframe.But since iframe is "hated" by a majority of webusers, I was wondering if you could do the same with tables?Or is there another solution to this?My website is split in 3 sections (tables):- left: navigation (fixed)- middle: dynamic content- right: some random stuff like affiliates & WHOIS-querry (fixed)So is it possible when people click a link from the navigation section that it will update the middle section (table) with the new content? If possible without the use of an iframe?Hopefully you guys can provide me with an answer to this... Cause I tried searching for it on Google, but I cannot find anything about it. Or maybe I am using the wrong search queries... :)I already tried to give the table an id (e.g. id="content") and making the hyperlink from the navigation target the content, but it does not work? It only opens a new blank page (with the content of course).

  7. Well I have been fooling a bit around with Google's search function, but whenever I add the </form> tag to the end, it's starting to use more space in the search field.Example (with </form> tag): Screenshot 1Example (without </form> tag): Screenshot 2So I finally got the search to work with Google, except the problem (the explained earlier in this posting) with the </form> tag is still there. Whenever I add that to make the search function work, it looks like Screenshot 1. Without the </form> tag, it looks like Screenshot 2, but the search does not work. Any help. Please.Nevermind... Fixed it. I should have put the </form> after the </td>Works fine now. Thanks for all the help!

  8. The html file just gets the images and makes the header look like it has a search box.There is no actual form anywhere on the page.Are you just trying to be able to type in those text box images?I don't really understand the question! Sorry :)
    Ah okay now I understand. Well let me explain.I want it to be a form, a searchform for Google to be more exact. So whenever I type something in it and press enter, it will search on Google for me.Anyways, I tried it previously with a normal HTML form, which gave me a few problems; the biggest one was for the fact it uses a standard square textfield, which makes it look ugly in the current layout. And I want the layout to stay like it's currently is.But recently I have learned it's possible by using CSS to use forms as well and with which you are possible to use the current style and layout of your website. E.g. changing the form appearance to the way you want it to look like, which would mean for me like the current layout.Sorry if I can't explain it better... But English is not my native language and thus giving me a hard time to explain exactly what I want to do. I already found some kind of tutorial which explains it a bit, but this time I have a hard time to understand how they do it. Take a look here: LINKMaybe you understand what I want better after reading this posting and the link I supplied within this posting.Hopefully someone can help me out now.
  9. Well, as BiteMe said, your layout is just a bunch of images really. There isn't a whole lot you can do with just images.You need to put your page together first.You can use css to change the appearance of the input field for your search box. But, you need to set the page up with the correct elements before you can do that.You will need to use Dreamweaver, GoLive or notepad or something to get your page set up. ImageReady won't be able to do that.Sorry for the bad news! :)
    ?!Look in the .zip file. There is besides the images directory ALSO a test.html file. Which uses the sliced images. Please check better! Thank you.
  10. Alright Pal?Im not really sure as to what it is you are after, the page you have supplied is just an image???The design looks fine if thats what you mean.As far as i can see there isnt a lot we can do with just an image, can you shed some more light on the problem?p.s subject headers should be helpful 2, not just 'help needed'
    What I mean is, I want to use the Google search function, in the Google-part in the layout. But holding on to it's current design. Meaning I don't want the standard Google textfield (form) etc., but using my own created text field. I am sorry if it's not understandable what I mean, but English is not my native language. So it's hard to explain.
  11. Hi guys,I am designing a startpage (when I open IE / Firefox, it starts with this page) which contains useful information and shortcuts I regular use.The design and layout is 100% done now and now I am putting HTML to it. Though I am almost done, it seems I have stumbled on a problem which I cannot fix myself.The header of my page contains 2 search functions; one is used for Google to search the internet, while the other is used for something else. Anyways, I am having a hard time to blend the layout with Google's search function. I tried it several times by using CSS, but it doesn't matter how I do it, I just cannot get it to work within that used layout for some reason... Sigh.Feel free to take a look at my header code: .zip file(small .zip file including my complete header coding & images)If anyone is so nice to give me a hand with this, I would be most grateful. Cause I can't seem to get it to work in the current layout. :)Cheers.

×
×
  • Create New...