
jrws
Members-
Posts
124 -
Joined
-
Last visited
Never
Everything posted by jrws
-
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* :\
-
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 protected]";//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'); } ?>
-
Bump, any ideas anyone? Or am I along the right track?
-
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
-
Any additional information that you can think of? Like how would I set up the database to run the jobs?
-
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
-
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
-
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.
-
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.
-
Thought so. Thanks, for the tips.
-
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
-
Wow, didn't realize it was that simple. For myself, it is hard to get my head around on how to use. Well thanks for clearing that up, I will just try and google a good tutorial. -James-
-
How about a tutorial on MYSQL sub-queries? You know explain with examples, that would help heaps -James-
-
Yes but as many errors as possible, also to Crayon Violent, I agree. I appoligize for not being able to contribute much but I try my best. It is hard to help people when you do not know if you know the correct answers.
-
Here's an idea for a short article and I know it would help a lot of new people, have an article listing all possible errors that PHP may throw at you and explain how to fix them, or what to look for. I think a lot of people would like that and you may not get as many questions about the errors.
-
Either a forum, blog or cms tutorial would be much appreciated.