Jump to content

cozbaldwin

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cozbaldwin's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Damn. There was some issue with the php version of the header. Extra code. I fixed it. Everything looks great now. IT was really that relative URL thing that I was totally screwed up on. Thanks for the assistance! And for the record, I'm not really offended by any insinuation or lack thereof. I totally understand. And I'm totally using this as it was intended to be used, for my one site and linking only to within my site.
  2. The header and footer are both in the same root directory as the index.php. And -- AH HAH! I thought the direct URL would ensure the path wouldn't get messed up if this function gets called from different directories. So I just now switched to calling "header.html" and it works! But... calling "header.php" does NOT work. In fact, the page begins to load but stops dead in its tracks as soon as it hits this piece of code. Now what? p.s. - I didn't even realize Skunk was insinuating I was trying to illegally include someone else's content. I resent that!
  3. I'm guessing you say that because of safety issues? Is there a different method that's safe and widely recommended for doing what I'm looking to do?
  4. I never thought it was this simple. But a friend recently told me it was, in fact, this simple. (Turns out... it's not that simple. For me. Today, anyway.) I just want a way to call my header and footer from within my .php page. Ideally, I'd like my header and footer to be a .php file too, but the research I've done so far seems to suggest it has to be .html or .shtml. Is this true? So - on my index.php page, I put the following lines: <?php session_start(); include("http://www.mysite.com/header.html"); ?> i've tried "include" and I've tried "require_once" which I learned by searching these forums. I've tried with and without the session start. I've also tried writing it like this: <?php session_start();include 'http://www.mysite.com/header.html'; ?> I can't get the darned thing to show up! The div I've placed this function in remains empty - the rest of the page loads fine. I've left off the head and various meta data from the .html I'm calling -- and even when trying to include a .php file I've tried with and without the meta data & head. So what else should I be looking for???
  5. Greeeeeetings! I recently upgraded my site to php5 and noticed a script I have is no longer functioning properly. It's called Snowmail and I cannot find any website for it now with any updated info. The purpose is for a user to input their name and number into a .SWF form and 3 actions happen: ~ The data is put into my database ~ an email is sent to me with the inputted data ~ the .SWF displays a message with the person's name indicating the data was received. Well since the php5 switch, the database still gets the data but the email to me is blank as is the person's name on the callback. "Thanks, ! Your submission has been sent!!!" I was hoping someone could let me know how to make this php5-ready. Since the connection to the DB works, I'm not including that code. Asterisks are being used to replace the actual content I have in there. <?php include('connect.php'); $ToEmail = "***@****"; ##$ToName = "***"; $ToSubject = "***"; $EmailBody = "PHONE NUMBER COLLECTED: $phone\n\nSENDER'S NAME: $name\n"; $EmailFooter = "\n----------------------------------\nThis message was sent through ***.com from $REMOTE_ADDR\n"; $EmailPresetText = "\nA submission has come through. \nPlease contact this person using the information provided below.\n"; $Message = $EmailPresetText.$EmailBody.$EmailFooter; mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$name." <".$email.">"); Print "_root.Mail.status=Thanks, ".$name."! Your submission has been sent!!!"; ?> <?php $name = $_POST['name']; $phone = $_POST['phone']; $connection = new connection; $query = "INSERT INTO phones (name,phone) VALUES ('$name','$phone')"; $connection->queryString($query); ?>
  6. This is basically what I was looking for but I couldn't seem to find this statement ever said in the places I was looking around in the web, so thanks. Now that I know that, I'll look into other methods including what you mentioned (which I've no knowledge on whatsoever, but at least now I know where to start looking). Thanks again.
  7. Hi there, fine people. I am proficient in html & css, but lack a lot of knowledge in the programming languages. I'm developing a site which should have dynamic content filling the sidebars. I found an ajax script that when I created a DIV and named it (for example...) "div1", it would call to fill in that DIV with content from a separate php page. Simple... but advanced work for me. Anyhow -- it's working fine -- everything shows up.... except for one thing. On that remote php page I have another script to call on (for example...) FeedBurner to display a feed, but it doesn't show up on the parent PHP page. What gives? Is calling a script within a script not able to be done? Or do you think that ajax script I have not coded properly? Here's all the code: In the head of parent page, I'm calling these two files: <script type="text/javascript" src="http://www.hiddeninthesand.com/js/ajax.js"></script> <script type="text/javascript" src="http://www.hiddeninthesand.com/js/ajax-dynamic-content.js"></script> But you can view them here in text: http://www.hiddeninthesand.com/js/ajax.txt http://www.hiddeninthesand.com/js/ajax-dynamic-content.txt Now, like I said.. it all works except when I go to call this additional script, which happens to be Feedburner, to aggregate a feed into my remote page. <script src="http://feeds.feedburner.com/hitslatestfaqs?format=sigpro" type="text/javascript"> Works all by iteself on the parent page, but when i place it on the remote page being called as dynamic content.... it completely fails to show anything. So I'm wondering if anyone knows why this cannot happen. Thanks!
×
×
  • 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.