Jump to content

creativeforces

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

creativeforces's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I guess my question is how do you make a form submit to itself until all of your server side error checking is done, then submit to another page? Any tutorials on this or advice? Thanks
  2. Ahhh Sessions, I did not think of that, thanks for the tip. OK, I have that setup, but the other thing I can't get to work is I don't understand how to perform my error checking and then go to the review page. So on the form page, If I have the form action set to review.php, then it skips my error checking and I want the data to validate before it goes over to the review page. I tried something like this, setting the form action to echo $page, but it didn't work: if (!empty($errors)) { $page = "new.php"; } else { $page = "review.php"; }
  3. Hello, I am sorta new to PHP and new to the forum. I have a form that I am submitting to a database and doing error checking via PHP first. Everything is working right now on the form, but...I want to make a review page for the user after submitting the form. So what I have done is set the form action to the review page (review.php) and then I am grabbing the post data on the review page and echoing it out for the user to see. I can't seem to get the error checking to happen on the form page first, to validate everything...and then have it go to the review page. So, the flow I am looking for is: user fills out form, hits submit, then the form validates, if there are errors they are displayed on the form page, if not then the form is directed to the review page where I grab the data and echo it out and then the user submits the data if it is correct. Krop.com has an example of exactly what I am trying to do on their site when you create a new job: https://www.krop.com/jobs/step1_configure. You can fill in the form, it won't save on their site. Thanks for the help.
  4. See if this helps, $15.00 payable through PayPal for anyone who can make all this work. Deadlines, they make you do crazy things right.
  5. I am creating a job application email from in Flash MX and using php and I have two things I can't figure out. First, how do I use flash's built in components like the combo box and the check boxes with my php. I know with input text you just assign it a variable but I am not sure how to get the components to work. For example below "state" is a combo box that lists all the states. I am not sure how to make the one they pick appear in my email with the other answers Second, when I receive the emails from my application I just get the answeres to the questions. Is there anyway to make it so I can receive the question and answers in my email. Here is the AS I have on my send button: on (release) { if (firstname eq "" or lastname eq "" or address eq "" or city eq "" or state eq "" or zip eq "" or phone eq "" or email eq "" or birthdate eq "" or soc eq "") { stop(); } else { loadVariablesNum("form.php", 0, "POST"); gotoAndStop(2); } } and here is the PHP I have: <? $to = "XXXXXXXXXXXXX@gmail.com"; $msg = "$firstname\n\n"; $msg .= "$lastname\n\n"; $msg .= "$address\n\n"; $msg .= "$city\n\n"; $msg .= "$state\n\n"; $msg .= "$zip\n\n"; $msg .= "$phone\n\n"; $msg .= "$email\n\n"; $msg .= "$birthdate\n\n"; $msg .= "$soc\n\n"; mail($to, $subject, $msg, "From: XXXXXXXXXXX.com\nReply-To: $email\n"); ?> Thanks for the help.
×
×
  • 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.