Jump to content

johnwhello

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

johnwhello's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. header doesn't work at all in my .php files. It just won't redirect, even when using an empty-like .php file: [code]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Mail form</title> </head> <body> <?php header("Location: http://www.google.com"); ?> </body> </html>[/code] How come my 'header' just won't redirect? I tried: - http://nl2.php.net/manual/en/function.header.php location starts with capital letter - http://www.google.com/ - google.com - www.google.com - single and double quotes - right in the end/ begin of <body> tag So maybe something in the php.ini/ httpd.conf to be set?
  2. At http://www.michaellobry.com/ are buttons: contact, about us, etc. Once clicked on one, say: 'contact', i want the current include: var includingMain = include "HTMLversion_index.php"; change into an 'aboutUs' include as follows: include "aboutUs.php"; Furthermore i have: <area onclick="URLforwardProcessingAfterClick();" name="hireMe" shape="rect" coords="400,0,550,100" href="hireMe.php" alt="Hire me" /> And here the PHP function: function URLforwardProcessingAfterClick() { if (contact) { includingMain = include "mailFormInput.php"; else if(aboutUs) { includingMain = include "aboutUs.php"; else if(sitemap) { includingMain = include "sitemap.php"; else if(hireMe) { includingMain = include "hireMe.php"; else if(searching) { includingMain = include "searching.php"; }}}}} } Above script doesn't work. Help!
×
×
  • 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.