Jump to content

Bobski2000

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

About Bobski2000

  • Birthday 06/21/1974

Contact Methods

  • Website URL
    http://www.fubarlegion.org

Profile Information

  • Gender
    Male
  • Location
    UK

Bobski2000's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I love the idea that i can alter just the one file. Don't really want to start changing html's to php if i can help it. So is there a problem with this code, cause the way i read about it, it's supose to go into a html file and work, instead i had to change my index page from html to php for it to work.
  2. Ok, ive changed the html file to php that seems to be ok. But if i wanted to add this code: <DIV ID="TICKER" STYLE="overflow:hidden; width:520px"> <? include "myimportlib.php" ?> </DIV> <script type="text/javascript" src="webticker_lib.js" language="javascript"></script> to 6 or 7 pages of my site then what your saying is that all the pages would have to be changed to php, but they are all html? i thought that the code was to be used within html?
  3. live page? I have in the root of my site.. webticker_lib.js main.html <-- this is the html file with the code placed in myimportlib.php This is right?
  4. This: <? include "myimportlib.php" ?> To this: <?php include 'myimportlib.php'; ?> Ive tried this
  5. Im trying to use this very same script. Like you i've been trying to sort this for hours! lol Here's my problem... Ive uploaded the webticker_lib.js file to the root of my site. Pasted this into my html file: <DIV ID="TICKER" STYLE="overflow:hidden; width:520px"> <? include "myimportlib.php" ?> </DIV> <script type="text/javascript" src="webticker_lib.js" language="javascript"></script> And tried to create the myimportlib.php file... So i looked at scottiedog's php file to see if id done things right, and i hadn't so just as a test i thought i'd tried that. Just like scottiedog i need to be able to just edit the one file and updated daily, but also for someone else to do without having to change the html file. (If that makes sense?) It still doesn't work. All i get is a white line where it should be and no scrolling text.. What am i doing wrong? Any help would be nice, thanks in advance.. Bobski :-\
  6. Like i said i completely wrote the $ wrong. they all needed the full string names. $username should have been $usernameField etc... heredoc? is that a form of php stuff? I got the original script from tutvid.com but even he did it wrong, and with your help guys i've sorted it. Ta Dave
  7. Whilst reading the script again i noticed a School Boy ErroR. In the $body = <<<EOD All the $ are wrong. Instead of $username it should be $usernameField My god I need those stupid pills again. Thanks guys for the help. I would have been knocking myself out over this.. Cheers Again. Dave
  8. I thought i had.... $body = <<<EOD <br><hr><br> Username: $username <br> Name: $name <br> Email: $email <br> How Did You Finding Us: $findingus <br> Rss Yes Or No: $rssfield <br> Comments: $comments <br> EOD;
  9. hi, Having read your post, i noticed that my webmaster shuld have been webMaster with a capital M. The email no delivers but no content! I understand what i'm writing but not on how it works..lol.. Any ideas on the content? Dave
  10. Hi guys, I'm really new to this and would love a little bit of help if possible. Me and a few others have a website where i've made this form, in Dreamweaver, so that others can join. The problem is i've looked for a script to make the form work and upto now i just cannot get it to work. Once i've clicked on the send now button i run the script (Which is at the bottom) No email comes to me. Have a done something wrong? Our signup page is www.fubarlegion.org/signup so you can check out our signup page. The Script:- <?php /* Subject and email varibles */ $emailSubject = 'Fubar Application'; $webMaster = 'signup@fubarlegion.org'; /* Gathering data Variables */ $usernameField = $_POST['username']; $nameField = $_POST['name']; $emailField = $_POST['email']; $findingusField = $_POST['findingus']; $rssfieldField = $_POST['rssfield']; $commentsField = $_POST['comments']; $body = <<<EOD <br><hr><br> Username: $username <br> Name: $name <br> Email: $email <br> How Did You Finding Us: $findingus <br> Rss Yes Or No: $rssfield <br> Comments: $comments <br> EOD; $headers = "From: $emailFeild\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webmaster, $emailSubject, $body, $headers); /* Results Rendered as html */ $theResults = <<<EOD <html> <head> <title>F.U.B.A.R Sign up Page</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- body { background-color: #f1f1f1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; line-height: normal; font-weight: normal; color: #666666; text-decoration: none; } --> </style> </head> <div> <div align="left">Thank you for your interest! Your email will be answered very soon!</div> </div> </body> </html> EOD; echo "$theResults"; ?>
×
×
  • 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.