Jump to content

HHawk

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by HHawk

  1. Nevermind, fixed it myself. I used the variables.Stupid me.
  2. 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.
  3. Okay, nevermind. Got it working! :)Thanks anyways for trying to help.
  4. 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> Will that, of course after a little modifying (tables etc.) work for me as well?
  5. Know of any tutorials on how to do that by any chance? My PHP knowledge is pretty mediocre. :)Or tell me how to Google it./editI found something which will get me started and does not look al to difficult.Is this good information to start with? http://www.tizag.com/phpT/include.phpOnly one page with basic information.If anyone else has a good website, please share it! Thnx.
  6. 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...
  7. 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
  8. 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...)
  9. 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).
  10. 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!
  11. 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.
  12. ?!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.
  13. 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.
  14. 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...