Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Please read this tutorial. Post if you have a specific question.
  2. I have had the same suggestion from some of my friends, it has a good reputation. Thanks. As do I. But, the problem is my friend, who just bought a new laptop, does not have any common sense. I've heard of avast but nothing about it. I never heard of nod32, too bad he wants something free. I'll check it out anyway, thanks! One more question. I'm a linux user, although I have a PC with XP, anyway... is Vista's built in firewall any good? I think it's called Defender. if I'm not mistaken.
  3. 1) Why do you use REQUEST for some fields and POST for others? You should stay consistent. 2) Echo out your POSTS (fname, lname); 3) Add this at the top of your script, right after the first <?php tag ini_set ("display_errors", "1"); error_reporting(E_ALL);
  4. Yes, if you post the form code we could give you a better answer.
  5. He meant this! [ code] (no spaces) function spamcheck($field) { //filter_var() sanitizes the e-mail //address using FILTER_SANITIZE_EMAIL $field=filter_var($field, FILTER_SANITIZE_EMAIL); //filter_var() validates the e-mail //address using FILTER_VALIDATE_EMAIL if(filter_var($field, FILTER_VALIDATE_EMAIL)) { return TRUE; } else { return FALSE; } } if (isset($_REQUEST['email'])) {//if "email" is filled out, proceed //check if the email address is invalid $mailcheck = spamcheck($_REQUEST['email']); if ($mailcheck==FALSE) { echo "Invalid input"; } else {//send email $Name = "name"; //senders name $email = "name@name.com"; //senders e-mail adress $recipient = $_REQUEST['email']; //recipient $reply = "Congratulations! Video access for " .$_POST['fname']." ".$_POST['lname'].""; $mail_body = "content "; //mail body $subject = "Video Access"; //subject $headers = "From: ". $Name . " \r\nbcc: susiem@multiprobe.com\r\n"; //optional headerfields $headers .= "BCC: name2@name2.com\r\n"; mail($recipient, $subject, $mail_body, $reply, $headers); //mail command echo "Thank you. Please check your email for the access link."; } } else {//if "email" is not filled out, display the form echo "</pre> <form method="'post'" action="'videoAccess.php'"> First Name: Last Name: Email: Subject: Subject </form>";<br> }<br [ /code] (no spaces) Look at all the pretty colors...
  6. He wants to use it as a reference. But there is 1 little problem... No one knows what the hell it does except for you! >
  7. Here's how to grab all of the posts and print the name of the variable (notice the double $$) and value. foreach ($_POST as $key => $value) { echo "Name of var: " . $$key . " value: " . $value; } Hope this helps. * You should have posted this in PHP Help not Regex unless someone has a regex answer...
  8. Need a free firewalls, anti-virus and spyware. Any recommendations?
  9. Is it only IE7? Because IE6 looks exactly like FF3...
  10. He didn't want it complex, it's a tutorial, I assume for beginners. The URL is fine it's just the image that's broken, no big deal. I think it's fine because in this case you're only teaching them how to create a blog with some basic CSS.
  11. Please google primary and foreign keys.
  12. That link is broken... You can use conditional statements to check for specific browsers.
  13. You should gather all the tables, columns, info etc. you think you need, and design your database on paper. Then use normalization to fix them.
  14. Is the customer already logged in? Where do you store the ID? I assume you do not have much done. Can we at least see the code you have already?
  15. Yes, please surround your code with the code tags. One question, is this form being submitted to the same page? Looks like this code all belongs to sampleLogin.php... Is that where the form is from in the HTML?
  16. This is actual a normal anti-spam strategy. I think this is fine. You should put a side note that states it filters out spammers. And yes, that's me.
  17. Sorry, I'm not following what you're trying to do. Can you elaborate or give an example?
  18. -Keep the colors simple. Use light colors, not black. -Switch the header image and title. -Each link has like 2-3 images of business people in the right column. You should do max -1 but have links to other sections of your site, like the "course menu" has. -It's not that bad, just needs a little tweaking.
  19. Unix what, assembly? Doesn't look like it. Still, why is it in third Party PHP scripts?
  20. Bummer... How do you check the user name/password in the first place? Hand write code... The only hand-written code were on exams. There are a lot of asian teachers, I've had a couple, do you remember his name? Penncrest
  21. Why is this posted in third party PHP scripts? Yeah I know, what is that? Doesn't look like PHP to me. Why are you completely wrong? What happened when you ran it?
  22. That's funny, I go to West Chester University. Very small world... Example (*not tested): if(isset($_POST['submit'])) { $username = $_POST['username']; header( 'Location: http://www.mywebsite.com/$username' ) ; } ?> </pre> <form method="post" action="<?php%20%24_SERVER%5B'PHP_SELF'%5D;%20?>><br%20/>%0A<input%20type=" text name="username"> </form> <b So, in essence, whatever they type in for their user name is going to be what folder they're redirected to. Best way to do this is the use of a DB. Of course you need to validate, error check, check passwords etc. but this should give you an idea.
  23. When they fill out the the user/pass form, just submit the form to itself and redirect with the user concatenated to the end of the URL. Just make his user the same as his folder.
  24. Are you serious...?
×
×
  • 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.