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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need to basically copy this exact form... not sure how

    Hello, so I have a form I need to make, that needs to do basically the same thing that this one below does. My server only suppors php though... this page is .aspx.

    Basically, all I need is that when someone answers "no" to a question, it then brings you to a "Unfortunately you did not pass" page, and if they answered "yes" to a question, it brings them to a "Thank you, we'll contact you soon page."

    This form below does basically exactly what I need... although I am not sure how I can emulate it. My server only supports PHP.

    http://chipotlejobfair.com/

    The javascript thankfully is included in the page though, which should help. I am just not sure how that is processed to go to the thankyou.html page

    Can some kind soul possibly steer me in the right direction on how that can be basically emulated for my own form?

    Thank you!

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,576
    Thanks
    80
    Thanked 4,497 Times in 4,461 Posts
    Ummm...the form, per se, is not relevant to the server side language you use.

    The only thing you have to change (aside from getting rid of all the junk code that ASP.NET produces) is the action= of the <form>. Just use <form action="yourPageName.php" method="post">.

    Everything else should be trivial to do in PHP code.

    NOTE: You *could* do the yes/now tests in JavaScript code, but if you are going to need to process the form in PHP, anyway, you might as well do that in PHP as well.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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