Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-24-2012, 05:19 PM   PM User | #1
Reckoner
New to the CF scene

 
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Reckoner is an unknown quantity at this point
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!
Reckoner is offline   Reply With Quote
Old 09-24-2012, 11:30 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,236
Thanks: 59
Thanked 3,997 Times in 3,966 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
Old Pedant is online now   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:40 AM.


Advertisement
Log in to turn off these ads.