Jump to content

JoeMcClemont

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

JoeMcClemont's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I need a counter on my website that counts SEPERATE pages and shows them on one. I have a main "videos" page and need it to say: viewed <COUNTERCODEHERE> times on each of the videos on my table, but all the counters I have used only count the actual page its on. Basically, I need a counter that counts other pages rather than the one its on. Does anyone know of any good ones?
  2. Does anyone know of a FREE hosting service that supports php. I need one for my mail form php script. I've tried loads but each have problems. For example 100webspace only allows emails to be sent to email addresses hosted on their server. PLEASE HELP. I cant find anyone. PLEASE!!!
  3. Hi. I was just wondering if anyone could tell me what is wrong with my mail form. Its supposed to have two boxes (URL + Description) and a submit button. Then i'm meant to receive the mail telling me what they have entered. The only problem is (i think) that its hosted on a free hoster - php0h.com, beacuse my proper hoster (NTL) doesn't support PHP. Does the email I type in have to be on the same domain name thing as where the script is? e.g if my address was www.cat.com my email would have to be anythinghere@cat.com? cause if this is true im stuffed, cause php0h doesn't offer free email services. If there are any other email form restrictions or stuff i need to know i'd be greatfull. heres my html code and php script if it will help: [code] <form method="POST" action="http://everythingred.php1h.com/scripts/contact.php"> Fields marked (*) are required <p>LinkURL:<br> <input type="text" name="LinkURL"> <p>Description:<br> <textarea name="Description"></textarea> <p><input type="submit" name="submit" value="Submit"> </form> <p> [/code] and the php script (hosted somwhere else) [code] <?php // Website Contact Form Generator // http://www.tele-pro.co.uk/scripts/contact_form/ // This script is free to use as long as you   // retain the credit link   // get posted data into local variables $EmailFrom = "A Visitor"; $EmailTo = "myemail@ntlworld.com"; $Subject = "Submitted Link"; $LinkURL = Trim(stripslashes($_POST['LinkURL'])); $Description = Trim(stripslashes($_POST['Description'])); // validation $validationOK=true; if (!$validationOK) {   print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";   exit; } // prepare email body text $Body = ""; $Body .= "LinkURL: "; $Body .= $LinkURL; $Body .= "\n"; $Body .= "Description: "; $Body .= $Description; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page if ($success){   print "<meta http-equiv=\"refresh\" content=\"0;URL=ok.htm\">"; } else{   print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; } ?> [/code] PLEASE help i've been stuck on this for ages.
  4. so... do i delete the whole line of code: $EmailFrom = "email here"; or just do this: $EmailFrom = "";
  5. ok... so does that mean the person submitting has to enter their email address? im trying to just get 2 simple boxes and a submit button. URL: and DESCRIPTION: . do i have to have a box where the visitor has to enter his/her email to send it? what if i just put a different email account that i still own - like hotmail. ...
  6. Hi - I was just wondering if anyone could tell me what I'm doing wrong. Because i'm on NTL i can't host php scripts - so i'm using a free host with PHP enabled. My form "action" takes me to [a href=\"http://usernameblabla.php1h.com/scripts/contact.php\" target=\"_blank\"]http://usernameblabla.php1h.com/scripts/contact.php[/a]. (thats not my site by the way- thats some wierd thing the host puts in if its a wrong url) I think that works (somone tell me if it obviously doesn't [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] ) I think the problem is in the script itself : <?php // get posted data into local variables $EmailFrom = ">>>>>>>>>!!!!!!WHAT HERE!!!!!!!!??????<<<<<<<<<"; $EmailTo = ">>>>>>>>>>MY EMAIL<<<<<<<<<<"; $Subject = "Submitted Link"; $LinkURL = Trim(stripslashes($_POST['LinkURL'])); $Description = Trim(stripslashes($_POST['Description'])); // validation $validationOK=true; if (Trim($LinkURL)=="") $validationOK=false; if (!$validationOK) { print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; exit; } // prepare email body text $Body = ""; $Body .= "LinkURL: "; $Body .= $LinkURL; $Body .= "\n"; $Body .= "Description: "; $Body .= $Description; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=ok.htm\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; } ?> I have no idea what to put in the EMAILFROM tag thingy. Can somone tell me what this tag thing does and if there are any nessassary things i have to put in it - like an email from the same sever or anything. I've tried loads of stuff but i think thats the reason why im not receiving - i havn't made the "ok.htm and error.htm" pages yet - could that be it? 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.