Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help with basic PHP assignment

    I am applying for an internship and they gave me an assignment to complete. They know I have a background in C and have absolutely no experience with PHP. They wasn't me to demonstrate the ability to find the answer to a problem not necessarily demonstrate my knowlege of coding. The following are the parameters of the assignment:

    Create a form in PHP that gathers all the information and sends an email with all info upon submitting it.

    Form Structure:

    first_name, last_name, email and phone.

    All fields should be required.

    Validate the email.

    Validate the phone structure.

    This is a tremendous opportunity for me to learn and gain valuable experience. Any help is truly appreciated. Thanks.

  • #2
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    I'm not exactly sure what you're asking from us. Are you looking for us to point you to resources on the web that will teach you how to do this?

    Here's a good link for PHP.
    http://hudzilla.org/phpwiki/index.php?title=Main_Page

    You need to looking into how to use the $_POST variable. The mail(). And probably some Regular Expressions (REGEX) to validate email and phone number structure.
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #3
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,042
    Thanks
    19
    Thanked 42 Times in 42 Posts
    Form Issues?
    check out our own Andrew Johnson's http://www.kwickwidgets.com/ should help

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    So they don't want you to actually provide code for this? I find that hard to believe. My professional opinion is that they want to see if you are a programmer or just someone who learns one language. For a true programmer the language doesn't matter. It's just a tool to accomplish the task. So unless they have asked your for nothing more than an algorithm or pseudo code to accomplish this then I would suspect that they expect you to write the code for this to see if you can design it then implement it which are two basic fundamentals of software engineering.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •