Jump to content

jrws

Members
  • Posts

    124
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jrws's Achievements

Member

Member (2/5)

0

Reputation

  1. I am running based off a godaddy server so whatever they use. I only recived my test emails today. Any idea why it could be so slow? At least I get them *eventually* :\
  2. Hey guys, Coding something for a survey as no solution exists for our needs. I have not finished the code as I still need to do error checks + making it spam proof. Anyway I am not reciving the email even though it says that I have been sent it. Any suggestions are appreciated, please ask if you need additional info to be able to help, and thank you in advanced. <?php error_reporting(0); if(isset($_POST['submit'])){ //Check that all fields that are mandatory are filled in and that the $Email variable is real $Title = $_POST['Title']; $FirstName = $_POST['FirstName']; $LastName = $_POST['LastName']; $Email= $_POST['Email']; $Country= $_POST['Country']; $State= $_POST['State']; $List= $_POST['List']; $Nav= $_POST['Nav']; $IssuesYes= $_POST['IssuesCheck']; $IssuesList= $_POST['IssuesList']; $Satisfaction= $_POST['Satisfaction']; $Improvement= $_POST['Improvement']; $ValueSatisfaction= $_POST['Value']; $Recommendation= $_POST['Recommend']; $Knowledge= $_POST['Knowledge']; $Comments= $_POST['Comments']; $Gender= $_POST['Gender']; $Age= $_POST['Age']; $Source= $_POST['Source']; $ContactNumber= $_POST['Contact']; $Newsletter= $_POST['Newsletter']; $errors = array(); //Check that the fields above are not empty: $to = "email@email.com";//Obviously not real one that I am sending to. $subject = "Survey Form Submission"; $from = $to; $ip = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : ''; $body = "$name submitted the survey form:\n". "This is what they responded with to each question: <br>". "Their Name: $Title $FirstName $LastName <br>"."Email: $Email <br>"."Country: $Country <br>"."State: $State<br>"."Bought: $List<br>"."Website Navigation: $Nav<br>"."Issues: $IssuesYes " ." $IssuesList"."Satisfaction: $Satisfaction<br>"."Improvement: $Improvement<br>"."Value Satisfaction: $ValueSatisfaction<br>"."Reccomend: $Recommendation<br>"."Knowledge: $Knowledge<br>"."Comments: $Comments <br>"."Gender: $Gender<br>"."Age: $Age <br>"."Source for Finding Us: $Source <br>"."Contact: $ContactNumber<br>"."Subscribe to Newsletter?: $Newsletter<br>"; $headers = "From: $from \r\n"; $headers .= "Reply-To: $visitor_email \r\n"; if( mail($to, $subject, $body,$headers)){ echo "Email Send!"; }else{ echo "Somethings wrong :\ "; } // header('Location: http://www.********/thank-you-for-survey'); } ?>
  3. Bump, any ideas anyone? Or am I along the right track?
  4. So a project I have simply to learn how it is done is to make an auto updating sitemap with a auto submitter. I have been doing a little research on sitemaps but haven't found much in the way of a tutorial or white paper or similar, anyway I was wondering if I am on the right track or not. What I was thinking for the auto-updating sitemap is since site maps are XML, when an article is published using my custom CMS/Blogging system, I make it rewrite the sitemap appending the new URL that will be generated. Then for the auto-submit, I can either make it a cron job or just manual press, but it would go though a for list of URLs, replacing the end part with my site map url. I think that is how it would be done. If you have a better idea, or can point out an article so I can understand a lot more with sitemaps, I will appreciate it, I am trying to learn as much as possible, I have gone to the offical website (sitemaps.org) but it doesn't have what I am looking for. Thanks, James
  5. Any additional information that you can think of? Like how would I set up the database to run the jobs?
  6. Any ideas? I have been poking around google and I was thinking I could use a cron job to check the published date or perhaps use a database field that notes what mail they are up to in a mailing set etc
  7. Hey there, What I am talking about is something similar to Aweber, I currently cannot afford their fee's so I was wondering how I can set up a mailing list so that I preprogram messages to be sent on a certain date. I think I would be using a database to store the messages, but I am not sure how to go on beyond there. Also in addition I would like to know (for learning purposes) how wordpress sets this up for their posting software, where you are able to line up articles to be posted on several different days. Cheers, James
  8. Hey guys, I have been programming for a while and I want to know what sort of design patterns I should look into when making a game? For example what design pattern is best for: Database management User management Forum management Etc I can only think of singleton or factory (for user/forum) I am reasonably new to OOP, but would like to learn it properly, so I thought creating a simple program such as rock-paper-siccors would work to be able to expand it eventually, and hopefully it will teach me reusable code practice.
  9. Found a bug: http://dannyluked.comze.com/forum/view_topic.php?id=asd I am able to make the id into sentence, probably could use it for XSS. Just check that your get is a number by using is_int or is_numeric to ensure it is always a number.
  10. Thought so. Thanks, for the tips.
  11. Hey there, That topic may be a little confusing to begin with so let me explain. I know how to make this url-> www.example.com/articles?id=1 into www.example.com/articles/1 But how would I extract the topic so instead of a number it is the title? Would I need to change what is extracted from the database? Cause I extract articles based on their IDs, but I want the URL to reflect their titles. Is that possible? I hope I have made sense, I don't really have any code to show, but if I can clarify on something, please ask and I will try. Thanks, James
  12. Thanks. I can't believe I am always so silly, the answers I want are usually the simplest. Thanks again!
  13. Hey there, I have made a custom forum and so far so good, I was wondering how I can make the topics become 'stickyed' and stay at the top of the page? Would I need a new row on the topic table? What about locking, I am thinking only access levels can post. Or something like that. Any help is appreciated, Thanks, James.
  14. Doh, thanks I just realized. What I had done was changed the advised code from you into my LOCALHOST, instead of putting onto the live site. Thanks for point it out.
  15. Its been awhile, can anyone help me so I can still test on localhost? Or is this no longer possible?
×
×
  • 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.