Jump to content

kagedwebdesign

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kagedwebdesign's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have absolutely no idea why that worked, but it worked. Cause I feel like that should've affected all of my pages...but thank you so much for your help!!!
  2. Bricktop - I added in the header codes on the index.php and all of the subpages, but its still not giving me anything...the reason its showing up at line 110 is the PHP calling code that I'm using... <?php if ($_GET["id"]) { if (file_exists($_GET["id"] . ".php")) { include($_GET["id"] . ".php"); } else { include("error.php"); } } else { include("main.php"); } ?> It pulls the page, and strips itself of the php code above, displaying just the page when you try to view the source code... But even once I added in the headers on the main index page and the other subpages that did nothave it...still nothing...I'm most confused because i've used this code before for other websites, and I have never come across this problem....:-\
  3. I am currently having an issue with something on this website I'm working on. When I load the index.php file, everything shows up right. All of my subpages show up the right way, except the contact.php page, which is called with "?id=contact." For some reason, when that page gets called, all that shows up is the background...it doesn't show a 404 error or anything...just the background image... If you wnat to go take a look, click here. Take a look at all of the pages that load off the top nav bar, and then click on Contact...I'm not sure why it's doing that...I've changed the encoding a few times to different things, but that hasn't seemed to have any effect on it... any suggestions would be great! Thanks! Kyle J. Schultz
  4. Nevermind... What I did was ran a $_GET at the top of the page... <?php $id = $_GET['id']; ?> I then used the code btherl gave to me and it loaded the ?id=_______ into the url... Thanks a lot for all of your help everyone!!
  5. That makes a whole lot of sense...I'm working on editing the PHP code to get it to send the "$id" tag out, so that when i tell the PHP to load it, it works. But as is, it works how it should...I'm just hoping that once I get it to send/savethe $id variable, it will work... Thanks for all your help! (P.S. Any assistnce on sending the variablewould be great too ) Kyle
  6. All I want to do is make it so that I do not have to change the links on each individual page...but I'm not sure how to set it so that when the links section loads, it doesn't take it back to the home php file...so say i'm on the application.php page and i click on the lawyers link, I want the application.php to show at the bottom, but the lawyerslinks.php file to load in the top section... It might help if you see the site... www.damichigan.com/development thanks guys! Kyle
  7. I was saying I'd haveto make multiple copies if I couldn'tget this to work....and thats what I'm trying to figure out... could youexplain a little bit more? I'm still new to PHP...
  8. Hey guys! I was using a java/text dropdown menu, but now the people would like to use a seprate section for links I have it set up now using two seprate php codes that are identical except for the id codes...the one for the main content is ?id the other is ?links for, you guessed it, the links. All works well...but the problem I'm running into is once you click somewhere and get to a page w/ ?id (ex. index.php?id=example) and try to load the menu bar, it takes you back to the main page... Is there any way I can set the code to detect what ?id page I'm on, load that into the URL and then add in the ?links? When I go the page using ?id=example&links=examplelinkpage it works without issue...but that would defeat the reason I'm doing it this way...having to go back through and change all of the links and make multiple duplicates just so that I can do the links... Currently, the php codes for both sections are as follows... CODE FOR THE LINKS BOX: <?php if ($_GET["links"]) { if (file_exists($_GET["links"] . ".php")) { include($_GET["links"] . ".php"); } else { include("Please Try Again"); } } else { include("linksmain.php"); } ?> CODE FOR THE CONTENT AREA: <?php if ($_GET["id"]) { if (file_exists($_GET["id"] . ".php")) { include($_GET["id"] . ".php"); } else { include("error.php"); } } else { include("main.php"); } ?> Currently, the code for the place where you select the parent links which open up the child links (the code above) is located here... <span class="style1"><a href="index.php" class="nav"> >>Home</a><br /> <a href="?links=firmlinks" class="nav">>>Firm Overview</a><br /> </span> <span class="style1"> <a href="?links=attorneyslink" class="nav" >>>Attorneys</a><br /> </span> <span class="style1"> <a href="?links=ssdlinks" class="nav">>>Social Security Disability</a><br /> </span> <span class="style1"> <a href="?links=contactlinks" class="nav">>>Contact Us</a></span><br /> Any help would be greatly appreciated...If you need more informaton, just let me know!! Thanks Kyle Kaged Web Design
  9. I understand what that means, but how exactly would I intergate that into the code?
  10. I'm using a PHP call code that loads all of my content into the page. i have used this code many times before, and even in earlier versions of this website and have never had any problems...i was wondering if you could shed some light on this...this is the error I'm getting... The code for the page is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untitled-1</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="shortcut icon" href="favicon.ico"> <link rel="stylesheet" type="text/css" href="anylinkcssmenu.css" /> <script type="text/javascript" src="anylinkcssmenu.js"> /*********************************************** * AnyLink CSS Menu script v2.0- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Project Page at http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm for full source code ***********************************************/ </script> <script type="text/javascript"> //anylinkcssmenu.init("menu_anchors_class") ////Pass in the CSS class of anchor links (that contain a sub menu) anylinkcssmenu.init("anchorclass") </script> <style type="text/css"> <!-- body { background-color: #9AEDFF; margin-left: 0px; margin-top: 0px; } --> </style></head> <body><center> <!-- ImageReady Slices (Untitled-1) --> <table id="Table_01" width="650" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="11" background="images/index_01.gif" width="650" height="245"> </td> </tr> <tr> <td> <img id="index_02" src="images/index_02.gif" width="12" height="28" alt="" /></td> <td> <a href="index.php"><img id="home" src="images/home.gif" width="69" height="28" alt="" border="0" /></a></td> <td> <img id="index_04" src="images/index_04.gif" width="10" height="28" alt="" /></td> <td> <a href="#" class="anchorclass" rel="submenu1"><img id="ssd" src="images/ssd.gif" width="143" height="28" alt="" border="0"/></a><br /> <div id="submenu1" class="anylinkcss"> <ul><li><a href="?id=facts">Disability Facts</a></li> <li><a href="?id=myths">Top Ten Disabilty Myths</a></li> <li><a href="?id=rightlawyer">How to Select the Right Lawyer</a></li> <li><a href="?id=application">The Application Process</a></li> <li><a href="?id=benefits">Can My Family Get Benefits?</a></li> <li><a href="?id=afford">What If I Can't Afford a Doctor?</a></li> </ul></div></td> <td> <img id="index_06" src="images/index_06.gif" width="10" height="28" alt="" /></td> <td> <a href="#" class="anchorclass" rel="submenu1"> <img id="firm" src="images/firm.gif" width="101" height="28" alt="" border="0"/></a><br /> <div id="submenu1" class="anylinkcss"> <ul><li><a href="?id=locations">Locations</a></li> <li><a href="?id=goals">Our Goals</a></li> <li><a href="?id=testimonials">Testimonials</a></li> </ul></div></td> <td> <img id="index_08" src="images/index_08.gif" width="10" height="28" alt="" /></td> <td> <a href="#" class="anchorclass" rel="submenu1" ><img id="attorneys" src="images/attorneys.gif" width="70" height="28" alt="" border="0"/></a><br /> <div id="submenu1" class="anylinkcss"> <ul><li><a href="?id=sj">Stuart Johnson</a></li> <li><a href="?id=dl">Dennis Little</a></li> <li><a href="?id=mg">Michelle Gottesman</a></li> <li><a href="?id=dg">Danielle Grassmyer</a></li> <li><a href="?id=sb">Samantha Ball</a></li> <li><a href="?id=fc">Frank Cusmano</a></li> <li><a href="?id=kr">Kiel Roeschke</a></li> </ul></div></td> <td> <img id="index_10" src="images/index_10.gif" width="9" height="28" alt="" /></td> <td> <a href="#" class="anchorclass" rel="submenu1" ><img id="contact" src="images/contact.gif" width="79" height="28" alt="" border="0"/></a><br /> <div id="submenu1" class="anylinkcss"> <ul><li><a href="?id=contact">E-mail</a></li> <li><a href="?id=contactq">Free Case Evaluation</a></li></ul></div></td> <td> <img id="index_12" src="images/index_12.gif" width="137" height="28" alt="" /></td> </tr> <tr> <td colspan="11"> <img id="index_13" src="images/index_13.gif" width="650" height="27" alt="" /></td> </tr> </table> <table width="650" border="1"> <tr> <td> <?php if ($_GET["id"]) { if (file_exists($_GET["id"] . ".php")) { include($_GET["id"] . ".php"); } else { include("error.php"); } } else { include("main.php"); } ?></td> </tr> </table> <br /> </center> <!-- End ImageReady Slices --> </body> </html> the link to the site is www.damichigan.com/development thanks! Kyle
  11. I am officially the dumbest website designer...in the history of the internet. I never added in the "recaptchalib.php" file...the one that loads the captcha...Now that I added that in, everything appears to load perfectly... I'm sorry I wasted your time...:-\ Thanks for your help with the code cleanup! Kyle
  12. Here's something that might help.... I'm using a php call code to pull all of the pages. I have the form on it's own thing called contact.php. I just went in and removed all of the html tags from the contact.php, so that the only tags left are the index.php page's. The code for everything is still the same. I think thats what caused the overlapping <html> tags... Upon removing those, however, the code still will not load...:-\ EDIT: showing you the php call code may be helpful...i'm really not sure... <?php if ($_GET["id"]) { if (file_exists($_GET["id"] . ".php")) { include($_GET["id"] . ".php"); } else { include("error.php"); } } else { include("main.php"); } ?>
  13. It seems like it's not taking the php code...I doubled checked and I don't have overlapping <html> codes, and I'm not quite sure why the code ends at the RECAPTCHA comment...I removed those comments...and I'm honestly not sure how to clean up my markup...thats how I've always done it...and that could be why I tend to do a lot of trial and error with my websites...:-\
  14. Hi everyone! In my last post, I finally figured out how to get my php validation to work...but now for some odd reason, with a simple copy and paste of the code, when I try to load the form, I get no submit or reset button...I posted the code below... <body> <form action="sendmail.php" method="post" name="contact1"> Name: <input type="text" name="name" value="" size="20" /> <br /> Email: <input type="text" name="email" value="" size="20" /> <br /> Age: <select name="age"><option value="none selected">-------------</option> <option value="18 and Under" selected="selected">18 and Under</option> <option value="19-30">19-30</option> <option value="31-50">31-50</option> <option value="51-70">51-70</option> <option value="71+">71+</option> </select> <br /> What information can you give us about your issue?<br /><textarea name="information" cols="70" rows="7"></textarea><br /> Have you ever made a claim before regarding this issue? Yes: <input type="radio" name="claimb4" value="Yes"/> No: <input type="radio" name="claimb4" value="No" /> <br /> <br /> Any other relevant information?<br /> <textarea name="message" cols="70" rows="4"> </textarea> <br /> <!-- RECAPTCHA CODE --> <?php require_once('recaptchalib.php'); $publickey = "6LdcSAcAAAAAAO5IR4gH3Vf18xYlwjryleVE3kA3"; // you got this from the signup page echo recaptcha_get_html($publickey); ?> <!-- RECAPTCHA CODE END --><br><br /> <input name="submit" type="submit" id="submit" value="Submit" /> <input name="clear" type="reset" id="clear" value="Clear" /> </form> </body> if you wnat to take a look at what i'm talking about, go to www.damichigan.com/development/?id=contact the page isn't live yet, nothing works on it, because I just started building it...any help would be great!! Thanks! Kyle Kaged Web Design
×
×
  • 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.