Jump to content

eaglejazz

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

eaglejazz's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I need something like this...but this is for for the sublinks...and i want to have something like this for the images to be linked to different pages. For example, the first line the $display <li><img src="images/navigation.gif" /></li>'; shows this for all the pages but i want it images to be linked to a individual pages as I want it to. [code]      case 'why.php':   $display = '<ul id="why">';           $display .= '<li><img src="images/navigation.gif" /></li>';           $display .= '<li><a href="index.php?file=why.php">Why</a></li>';           $display .= '<li><a href="index.php?file=about.php">About Us</a></li>';           $display .= '<li><a href="index.php?file=where.php">Where</a></li>';           $display .= '</ul>';           echo $display;       break;       [/code] Dave
  2. I am still learning Php and therefore need your help! I want one php file that displays a different picture for 5-7 web pages. I was just wondering the code that i need to do this? Any help would be greatly appreciated! Dave
  3. i got this from Web4Future.com and script written by George A. & Calin S.
  4. what should i specify??????
  5. what should I do to specify it, firstly like what (getenv) should i specify? what about server name..that needs to be specified as well? Please need your help! Dave
  6. I got it part of a package and wanted to see if anybody could help me. What spec's are talking about? O yes, the <code> was very helpful thanks
  7. I want to edit this to my specifications, but need your help with this code: [code]<?php  $w4fver =  "2.0.4"; $w4fx = strstr(file_get_contents('blockip.txt'),getenv('REMOTE_ADDR')); if (preg_match ("/".str_replace("www.", "", $_SERVER["SERVER_NAME"])."/i", $_SERVER["HTTP_REFERER"]) && ($w4fx === FALSE)) { $w4fMessage = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></head><body>\n"; if (count($_GET) >0) { reset($_GET); while(list($key, $val) = each($_GET)) { $GLOBALS[$key] = $val; if (is_array($val)) { $w4fMessage .= "<b>$key:</b> "; foreach ($val as $vala) { $vala =stripslashes($vala); $vala = htmlspecialchars($vala); $w4fMessage .= "$vala, "; } $w4fMessage .= "<br>\n"; } else { $val = stripslashes($val); if (($key == "Submit") || ($key == "submit")) { } else { if ($val == "") { $w4fMessage .= "$key: - <br>\n"; } else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; } } } } // end while }//end if else { reset($_POST); while(list($key, $val) = each($_POST)) { $GLOBALS[$key] = $val; if (is_array($val)) { $w4fMessage .= "<b>$key:</b> "; foreach ($val as $vala) { $vala =stripslashes($vala); $vala = htmlspecialchars($vala); $w4fMessage .= "$vala, "; } $w4fMessage .= "<br>\n"; } else { $val = stripslashes($val); if (($key == "Submit") || ($key == "submit")) { } else { if ($val == "") { $w4fMessage .= "$key: - <br>\n"; } else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; } } } } // end while }//end else $w4fMessage .= "<font size=3D1><br><br>\n Sender IP: ".getenv('REMOTE_ADDR')."</font></font></body></html>";   $w4f_what = array("/To:/i", "/Cc:/i", "/Bcc:/i","/Content-Type:/i","/\n/"); $name = preg_replace($w4f_what, "", $name); $email = preg_replace($w4f_what, "", $email); if (!$email) {$email = $MailToAddress;} $mailHeader = "From: $name <$email>\r\n"; $mailHeader .= "Reply-To: $name <$email>\r\n"; $mailHeader .= "Message-ID: <". md5(rand()."".time()) ."@". ereg_replace("www.","",$_SERVER["SERVER_NAME"]) .">\r\n"; $mailHeader .= "MIME-Version: 1.0\r\n"; $mailHeader .= "Content-Type: multipart/alternative;"; $mailHeader .= " boundary=\"----=_NextPart_000_000E_01C5256B.0AEFE730\"\r\n"; $mailHeader .= "X-Priority: 3\r\n"; $mailHeader .= "X-Mailer: PHP/" . phpversion()."\r\n"; $mailHeader .= "X-MimeOLE: Produced By Web4Future Easiest Form2Mail $w4fver\r\n"; $mailMessage = "This is a multi-part message in MIME format.\r\n\r\n"; $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n"; $mailMessage .= "Content-Type: text/plain;  charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n"; $mailMessage .= strip_tags($w4fMessage)."\r\n\r\n"; $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n"; $mailMessage .= "Content-Type: text/html;  charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n"; $mailMessage .= "$w4fMessage\r\n\r\n"; $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730--\r\n"; if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader)) { echo "Error sending e-mail!";} else { header("Location: ".$redirectURL); } } else { echo "<center><font face=verdana size=3 color=red><b>ILLEGAL EXECUTION DETECTED!</b></font></center>";?>}[/code] I appreciate anyone's help Dave
  8. Hi there to all, I am new member and still learning PHP, and therefore I need your help! I got a header I need help with! I want to solely post different pictures in a php file for each web page. I was just wanting some help with the code as i am unsure . Also each page contains 3 sublinks that i want the picture of the page with the sublinks to remain. Thanks for your help I have done my submenu in php, maybe it will be similiar, For example;   default:           $display = '<ul id="generic_subnav">';           $display .= '<li></li>';           $display .= '<li></li>';           $display .= '<li></li>';           $display .= '</ul>';           echo $display;       break;   But it needs to be for images. Should I do it the CSS way instead? Dave
×
×
  • 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.