# 3 pages form values to one submit button

**URL:** <https://forum.kirupa.com/t/3-pages-form-values-to-one-submit-button/186825>\
**Category:** flash\
**Created:** [April 24, 2006, 9:25pm UTC](https://forum.kirupa.com/t/3-pages-form-values-to-one-submit-button/186825 "2006-04-24T21:25:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Post date:** [April 24, 2006, 9:25pm UTC](https://forum.kirupa.com/t/3-pages-form-values-to-one-submit-button/186825/1 "2006-04-24T21:25:28Z")

</div>

Hello,

I have 3 pages of questions and comments.  
I want to be able to submit all these values on the last page to some php file then to my email.

When I try to do this, I only receive the 3rd page questions and comments to my email but the first 2 pages nothing :-/

How can I carry these values so on the third page I can submit all values thru one php and then to my email.

This is what on my php

```php

<?php

$sendTo = "lolo@lolomedia.com";
$subject = "Optional Survey I";

$headers = "From: <" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-path: " . $_POST["email"] . "
";
$headers .= "Content-type: text/html";

$message = "Prior to completing this orientation, would you have considered some of your e-Mail be corporate records?: $gender1
";
$message .= "

";
$message .= "Comments: " . $_POST["Smessage1"];
$message = "Are you comfortable with how to apply the e-Mail Management and Compliance policy?: $gender2
";
$message .= "

";
$message .= "Comments: " . $_POST["Smessage2"];
$message = "Will this orientation make you re-think how you use the e-Mail system at Progress Energy?: $gender3
";
$message .= "

";
$message .= "Comments: " . $_POST["Smessage3"];

mail($sendTo, $subject, $message, $headers);

?> 

```

and this is what i have on my as on the submit action

```auto

submitBtn.onRelease=function(){
      onSubmit();
}

function onSubmit() {
    
    Smessage1 = Smessage1.text; 
    gender1 = genderGroup1.getValue(); 
    Smessage2 = Smessage2.text; 
    gender2 = genderGroup2.getValue(); 
    Smessage3 = Smessage3.text; 
    gender3 = genderGroup3.getValue();
    loadVariables("radio1.php",this,"POST");
    loadMovieNum("goodbye.swf",40);
}

```

My fla file is here… please open it to understand better my issue.  
[http://lolomedia.com/menu6.fla](http://lolomedia.com/menu6.fla)

also here is the link to my submit pages that I’m working on.  
[http://lolomedia.com/menu6.html](http://lolomedia.com/menu6.html)

thank you very much for any advice :beam:

---

<div class="post-metadata">

**Author:** ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Post date:** [April 25, 2006, 1:41pm UTC](https://forum.kirupa.com/t/3-pages-form-values-to-one-submit-button/186825/2 "2006-04-25T13:41:07Z")

</div>

any body? :jail:
