Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Get Variables From HTML Form



Hi All,

I'm looking for help with this problem.

I have an HTML form that users fillout information in, I then want to show the form information formatted on a Flash page. I can do this by recieving the variables then appending them to the link that loads the flash as below:

<param name=movie value="preview.swf?card_name=<?php echo $person_name; ?>">">

But this restricts to 256 characters ( and I need more). Can I get the variable into flash with PUT instead of GET.

Thanks for you time,

JimmyK



FlashKit > Flash Help > Flash ActionScript
Posted on: 08-18-2002, 11:01 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Passing HTML Form And Hidden Variables From Flash To Html Page
Hi,

I have a html/flash site now, http://www.zachariack.com.

i access email from my site itself by giving the userid and pwd text box which i copied from the actual website hosting my email access. i copied the entire
<form...></form> tag to my page and thus was able to put the name and pwd in my home page only and access the email in a separate window.

now i have redesigned my webpage using only flash. i would like to know how i can implement the same using flash. as i have not much experience using action scripting i am a bit stuck about how you pass the hidden form variables. the below is the the exact form syntax:

<form name="form1" action="http://www.accudatanet.com/mail/msglist.php" method=post>
<input type="hidden" name=sid value="E9697301F704A0CE947DEF42CF86636A">
<input type=text size=15 name=f_user value="">
<input type=hidden name=six value=0>
<input type=password size=15 name="f_pass">
<input type=submit name=submit value="Login >>" class="button">
</form>

how do i implement the above using action scripting. thanks.

regards,
vasant

Passing HTML Form And Hidden Variables From Html To Flash
Hi

I need some help passing a html code to flash code. Maybe you guys can set some light on the subject.

<html>

<script>
function Dimensiones()
{

document.getElementById("tamx").value= document.getElementsByTagName('body')[0].clientHeight;
document.getElementById("tamy").value= document.getElementsByTagName('body')[0].clientWidth;

}
</script>
<body ONLOAD="Dimensiones();" ONRESIZE="Dimensiones();">
<form method="Post"
action="http://Validation link.asp">
<input type ="hidden" name="tamx">
<input type ="hidden" name="tamy">
<input type ="hidden" name="url_return" value ="http://Link.asp">
<input type ="hidden" name="url_ot" value = "http://Validation link.asp">
Nombre <input type="text" name="UserName" value="" size="20">
Password <input type="password" name="UserPass" size="20">
<INPUT type="submit" value="Enviar">
</form>
</body>
</html>

I'm having a real hard time passing the function Dimensiones() and dealing with the hidden variables. Can you guys help me with this? Thanks

Passing HTML Form And Hidden Variables From Html To Flash
Hi

I need some help passing a html code to flash code. Maybe you guys can set some light on the subject.

<html>

<script>
function Dimensiones()
{

document.getElementById("tamx").value= document.getElementsByTagName('body')[0].clientHeight;
document.getElementById("tamy").value= document.getElementsByTagName('body')[0].clientWidth;

}
</script>
<body ONLOAD="Dimensiones();" ONRESIZE="Dimensiones();">
<form method="Post"
action="http://Validation link.asp">
<input type ="hidden" name="tamx">
<input type ="hidden" name="tamy">
<input type ="hidden" name="url_return" value ="http://Link.asp">
<input type ="hidden" name="url_ot" value = "http://Validation link.asp">
Nombre <input type="text" name="UserName" value="" size="20">
Password <input type="password" name="UserPass" size="20">
<INPUT type="submit" value="Enviar">
</form>
</body>
</html>

I'm having a real hard time passing the function Dimensiones() and dealing with the hidden variables. Can you guys help me with this? Thanks

Plz Help ( Parsing HTML Form Variables )
I want to read an html file in flash and invoke different
functions according to the values of variables. This process
would be the html file first and then the following link or
flash page. The variables declared in forms in the HTML pages is what i m trying to read in my flash and invoke different functions or maybe print that back simply. Please
advice as that i m working on a project involving Novell Portal Service and has to be completed sooon .... but i m stuck at the very first trial of prototype

is this at all possible without a middleware ?????

thank you

Sending Variables From Html Form To Swf
I want to send a variable from a form in my webpage to my flash.swf w/o resending te page... the form is in html. How do i send the variable to the .swf? Javascript i'm guessing, but does anyone know how i can do this?

-Thanks in advance

How To Post A Variables Into Html Form By Flash
Question:
I'd like to use flash to make 3 flash buttons. Each buttons can send a variable to the specific text field in a html form.

the html form is like this:
<form name="bigsmallForm" method="POST" action="/NASApp/opg/buyBigSmall.do">
<p>
<input type="text" name="ticket.stake" size="5" value="0">
<input type="text" name="ticket.line1.betType"value="" >
<input type="text" name="ticket.line2.betType" value="">
<input type="text" name="ticket.line3.betType" value="">
<input type="text" name="ticket.line4.betType" value="">
<input type="text" name="ticket.line5.betType" value="">
<input type="text" name="ticket.multiple" value="1">
</form>
the value will past to each ticket "value"

Anyone can tell me how can I acheive this?
I think using
on(Release){
getURl(.... something post);
}

I am not sure how.

Transfering Variables From Html Form To Flash
Hi there hope somone can help this is realy frustrating me now

I am trying to transfer some text from a html form to a flash movie text area, i havent done thi sbefor ebut i have seen loads of examples on the net and they all say they work but i cant get them 2

my flash file has a:

dynamic text area with the var set to myVar

the code fork the html is below


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<SCRIPT LANGUAGE=JavaScript>
<!--
function doPassVar(args){
   var sendText = args.value;
   window.document.myFlash.SetVariable("myVar", sendText);
}
//-->
</SCRIPT>



<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>javascript_to_flash</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<p>
  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" id="myFlash" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="javascript_to_flash.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="javascript_to_flash.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="myFlash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" swLiveConnect="true"/>
  </object>
</p>
<form name="form1" id="form1" method="post" action="">
  <input type="text" name="sendText" maxlength="45" onChange="doPassVar(this)">
</form>
<p>&nbsp;</p>
</body>
</html>


acording to all the tutorials i have read this should run fine.  It doesnt through any errors but after typing into the form text box nothing showsup in the flash files as it is surposed to

hope somone can help me its driving me mad

lee

Passing Variables From Flash To HTML Form List
Hello and yes, I am stuck again.

So, here's my dilemma...
I have an HTML page with a form on the right hand side of the page and an embedded SWF on the left. Upon pressing a button with the SWF, I want to send a variable to the HTML form, to a list box. I've worked with the Javascript Integration Kit from the Expert Tutorial in the Flash 5 Bible and I don't see anything about it in the Flash MX Bible. Does anyone know how to do this?

The code I used in Flash was this:
on (press) {
getURL("javascript:FDK_AddValueToList('frmindex/selmy', 'Rogers Park', 'Rogers Park', "1'");
}

Then in Dreamweaver, I entered the this code (it isn't PHP. I couldn't get the code to show up any other way):

Any ideas?

Thanks,
jessicuh
PHP Code:




<script language="JavaScript" type="text/JavaScript">
<!--
function FDK_AddValueToList(ListObj,TextString,ValString,Position)  {
  if (isNaN(parseInt(Position)))   {
    Position = ListObj.options.length;
  }
  else  {
    Position = parseInt(Position);
  }
  if (ListObj.length > Position)  {
  ListObj.options[Position].text=TextString;
  if (ValString != "")  {
    ListObj.options[Position].value = ValString;
  }
    else  {
      ListObj.options[Position].value=TextString;
    }
  }
  else  {
    var LastOption = new Option();
    var OptionPosition = ListObj.options.length;
    ListObj.options[OptionPosition] = LastOption;
    ListObj.options[OptionPosition].text = TextString;
    if (ValString != "")  {
      ListObj.options[OptionPosition].value = ValString;
    }
    else  {
      ListObj.options[OptionPosition].value=TextString;
    }
  }
}
//-->
</script>
</head>
<body>
<form action="" method="post" name="frmindex" id="frmindex">
  <select name="selmy" size="1" multiple id="selmy">
  </select>
</form>

Passing Variables To HTML List Form Field
Hello and yes, I am stuck again.

So, here's my dilemma...
I have an HTML page with a form on the right hand side of the page and an embedded SWF on the left. Upon pressing a button with the SWF, I want to send a variable to the HTML form, to a list box. I've worked with the Javascript Integration Kit from the Expert Tutorial in the Flash 5 Bible and I don't see anything about it in the Flash MX Bible. Does anyone know how to do this?

The code I used in Flash was this:
on (press) {
getURL("javascript:FDK_AddValueToList('frmindex/selmy', 'Rogers Park', 'Rogers Park', "1'");
}

Then in Dreamweaver, I entered the this code (it isn't PHP. I couldn't get the code to show up any other way):

Any ideas?

Thanks,
jessicuh
PHP Code:



<script language="JavaScript" type="text/JavaScript">
<!--
function FDK_AddValueToList(ListObj,TextString,ValString,Position)  {
  if (isNaN(parseInt(Position)))   {
    Position = ListObj.options.length;
  }
  else  {
    Position = parseInt(Position);
  }
  if (ListObj.length > Position)  {
  ListObj.options[Position].text=TextString;
  if (ValString != "")  {
    ListObj.options[Position].value = ValString;
  }
    else  {
      ListObj.options[Position].value=TextString;
    }
  }
  else  {
    var LastOption = new Option();
    var OptionPosition = ListObj.options.length;
    ListObj.options[OptionPosition] = LastOption;
    ListObj.options[OptionPosition].text = TextString;
    if (ValString != "")  {
      ListObj.options[OptionPosition].value = ValString;
    }
    else  {
      ListObj.options[OptionPosition].value=TextString;
    }
  }
}
//-->
</script>
</head>
<body>
<form action="" method="post" name="frmindex" id="frmindex">
  <select name="selmy" size="1" multiple id="selmy">
  </select>
</form>

Flash Form Question : Sending HTML Form Values...
I'm trying to create a flash form version of an HTML form. It's basically just a voting drop down menu - user chooses "Yes", "no","maybe" from teh drop down and hits a submit buttons which would send the results to a CGI script though POST. I understand the submission aspect, but am not sure how to assign values to the drop down in the same way HTML does:

<option value="yes">
<option value="no>
...

Do I just set the combo box Data array to [yes,no,maybe]? If so, how is it to be sent?

thanks

How Do I Set Up Hidden Form Variables For A Flash Form.
Guys, I'm using the flashkit tutorial on "send e-mail in flash the easy way", or something like that. Problem is that I need to set variables for hidden input, but don't know where and how to pass them along to the script?

Thanks

Pass Variable Form HTML Form To Flash
Hi,

I'm trying to figure out how to send what the user selects from a HTML drop-down menu to the Flash movie.

In this scenario, the user picks an email address from a drop-down list and this is sent to flash as a variable called 'eaddress' which is eventually used in the flash movie to send a message to this address.

Any help is much appreciated!

Glenn

Convert HTML Form Into FLASH Form
http://www.bennyvo.com/test/

can someone look at this site and help me converting html form into flash form? is it possible?

thanks alots.

Flash Form Vs HTML Form
Hello Peoples,

The following HTML code produces a button that when clicked sends the user to my online credit card processor's site where the user can proceed with a transaction.

----------HTML CODE----------
<form action='https://www.casher.com/buyer/purchase' method='post'>
<input type='hidden' name='dis' value='435532' >
<input type='hidden' name='quantity' value='1' >
<input type='hidden' name='product_id' value='1' >
<input name="submit" type='submit' value='Click to pay thru casher.com' >
</form>
----------HTML CODE----------

So my question is: If I want to use a button in a flash piece to do the same thing as the above HTML button, what code do I apply to the button in flash ?

Thanks,
Reflex.

HTML FORM To Flash FORM
I'm tryin to convert an HTML password page into FLASH and haven't a clue where to start. The site is www.modernvisionphotography.com and the code for HTML is
<form name="pix" method="post" action="http://www.724pix.com/album.asp" onsubmit="return 724check();">
<input type="hidden" name="init" value="init">
<input type="hidden" name="code" value="458">
<input type="text" name="password" size="16" maxlength="30"><br>
<input type="submit" name="submit" value="submit">

The user types in their password via an input text field but i haven't an idea what to put in the submission button in flash.

Any leads? or ideas would be helpful! Thanks for your time.

Variables, Mc's And A Form
I've modified a feedback form to use on a site. I've got it working fine on its own. However, it doesn't work when I place it in the movie clip I want it to live in. I figure that it's got something to do with variables and how I'm calling them, but I'm not quite sure what to change and how to change it. Would the name of the movie clip replace "root"? Gah!

Here's the FLA (45k) for the form on its own:
http://www.redlonpark.com/flash/this...orksdamnit.fla

I hope someone can help!

Thanks
Jes

Form Variables
I'm using this script for my form:


PHP Code:



<?php
/***************************************************
* PHP 4.1.0+ version of email script. For more
* information on the mail() function for PHP, see
* http://www.php.net/manual/en/function.mail.php
***************************************************/


// First, set up some variables to serve you in
// getting an email.  This includes the email this is
// sent to (yours) and what the subject of this email
// should be.  It's a good idea to choose your own
// subject instead of allowing the user to.  This will
// help prevent spam filters from snatching this email
// out from under your nose when something unusual is put.

$sendTo = "me@mywebsite.com";
$subject = "FORM RESPONSE (flashform)";

// variables are sent to this PHP page through
// the POST method.  $_POST is a global associative array
// of variables passed through this method.  From that, we
// can get the values sent to this page from Flash and
// assign them to appropriate variables which can be used
// in the PHP mail() function.


// header information not including sendTo and Subject
// these all go in one variable.  First, include From:
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";
// next include a replyto
$headers .= "Reply-To: " . $_POST["email"] . "
";
// often email servers won't allow emails to be sent to
// domains other than their own.  The return path here will
// often lift that restriction so, for instance, you could send
// email to a hotmail account. (hosting provider settings may vary)
// technically bounced email is supposed to go to the return-path email
$headers .= "Return-path: " . $_POST["email"];

// now we can add the content of the message to a body variable
$message = $_POST["message"];


// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);

?>




My actioncode is:


Code:
on(rollOver){
this.gotoAndPlay("s1");
}
on(rollOut, releaseOutside){
this.gotoAndPlay("s2");
}
on(release) {
//_parent.t1_2="";
_parent.t2_2="your name";
_parent.t3_2="e-mail";
_parent.t4_2="phone";
_parent.t5_2="";
_parent.t6_2="comments";
}
and


Code:
on(rollOver){
this.gotoAndPlay("s1");
}
on(rollOut, releaseOutside){
this.gotoAndPlay("s2");
}
on(release) {
getURL("submit.php");
}
The form is sending me emails but all of the fields are blank. No from, subject or comments. My POST commands are obviously wrong. What is it that I shpould put in the POST commands?

The next thing is upon hitting the submit button, the swf goes white (completely blank frame). I'd like to redirect to a new frame in my movie, but am not sure how.

I expect it's a simple fix --- but I'm lost!
Can anyone please instruct me?

Thanks.

Form Variables?
I have a simple asp mail form that I use to send info to multiple recipients, using code such as:

<input type="text" name="to" value="Address1@domin.com">
<input type="text" name="to" value="Address2@domin.com">
<input type="text" name="to" value="Address3@domin.com">

That snippet will send the information to all 3 addresses...

I can get flash to work, however, it will only send to one address!

var to=("Address1@domin.com", "Address2@domin.com", "Address3@domin.com")

only sends the info to Address3!

Anyone have any ideas?

Thanks!

Variables In A Form E-mail
Dear people at Flashkit,

I think this is a very cool site, it's always been a great help for me. And I think the Forum will be just as great.
I need a little help with a form. Here's the situation:

I have a website, on one of the pages, its is possible to buy a product, when you click on the "Buy" button, you go to a Form,
were you can fill in your name,adress,email,articlenumber etc.
The e-mail then is being send to the owner of the site, and the customer gets a confirm mail, that he's order will be processed.
The thing I want to get to work is this:

All product have an articlenumber, What I want is that when the costumer clicks the "Buy" button and goes to the form, that the articlenumber is already filled in the input textfield for "Articlenumber"

I hope someone can help me, and Im very glad to be part of this forum, and hope to help you guys out to sometimes

Greeting,

Raphael

Submit Form And Variables
sory if this has been asked before just could not find it.

I need to send variables to a script but not pop open a new window or reload this one. I am not using text fields just variables from the movie

editMeetingId=room1
editMeetingRoom=12356

getURL("http://macdaddy:8080/servlet/reservationServlet?action=DELETE&id="+editMeetingI d+"&room="+editMeetingRoom+"");

this opens a new window
I have tried POST and GET with same resolts

thanx dave

Generating A Form From Asp Variables
Hello there..
I have a DB that is called from asp, this sends 3 variables to my flash reservation movie(for a restaurant)
1. variable is when does the restaurant open this day
2. variable is how many hours they are open(from the time variable 1 gives)
3. an arry(12,34,56,78,65) that tells how many free tables in hour1 hour2 hour3 and so on....(can I even use loadVariablesNum to get arrays from asp?)

all this is retrieved and calculated from db and asp...

My question...
how can I take these variables and generate(maybe with components)
a "calender like list" that starts with deciding how many
"boxes" (variable2) flash should generate.
then sets the start time(vaiable1)and generates the hours of the day accordingly. ex. flash is told that the shop is open 5 hours this day it then makes 5 boxes on top of each other(a list) then flash is told when they open ex. 8 o´clock it then writes "8-9 o´clock" next to the first box and "9-10 o´clock" next to the next box and so on for as many hours as the shop is open..then at last it should take variable 3 and type in the boxes how many free tables that are for each hour...alot I know , if any of you guru´s have an idea I would be very happy, think I just need a little help getting started, also if you think you know what I mean but is in doubt then please ask its a bit hard to explain all this without it sounding a bit confusing...

Thanks

Passing Variables In Form Thru PHP
I am making my first form in Flash 5. It comprises of several one line text fields (subject, first_name, last_name, company, country, city, area of interest, email) and a multi-line text field (comments). I read through the tutorial at http://www.actionscripts.org/tutorials.shtml - intermediate level, tutorial 06 (PHP mail form in Flash)and I spent quite a bit of time unsuccessfully trying to adapt this code to my form;
I altered the script that gos into the PHP document by writing the following and saving it as a PHP3 file:




PHP Code:



<?php





PHP Code:



mail("visuallyinclined@yahoo.com", $subject, $message, $first_name, $last_name, $company , $country, $city, $discipline,"From: PHPMailer
Reply-To: $from
X-Mailer: PHP/" . phpversion());




I created my own form, including the text input fields in my first frame, naming the input text fields by their corresponding variables listed above (subject, first_name etc...). - and placed the thank you confirmation in the second frame. I also copied his exact script (top of page http://www.actionscripts.org/tutoria...l/index3.shtml) into my first frame
and the button actionscript (bottom of page http://www.actionscripts.org/tutoria...l/index3.shtml) was similarly attached to my button. I place the PHP file in the same location as my Flash file

the 3 problems are the following:
1. I am not receiving email.
2. When the user fills out the last field in my form, the writing is illegible.
3 In some fields the writing is bold, in others, it isn't.
4. The confirmation page works erratically

Can someone please please PLEASE take a look at my file and tell me what the problem is. The site is www.lv-em.com/form.html. I've attached my .fla for your review.

Thank you in advance!

Debbie

Form Hidden Variables Help
Hi i am trying to convert a html form into a flash form. But the form has some hidden variables. which is completly loosing me,

Below is my code..

<form method=post action="http://app.icontact.com/icp/signup.php" name="icpsignup" accept-charset="UTF-8" >
<input type=hidden name=redirect value="http://www.icontact.com/www/signup/thanks.html" />
<input type=hidden name=errorredirect value="http://www.icontact.com/www/signup/error.html" />
<table width="260" class="signupframe" border="0" cellspacing="0" cellpadding="5">
<tr>
<td valign=top align=right>
<font size="1" face="Arial,Helvetica, sans-serif">*</font> <font size="2">Email</font>
</td>
<td align=left>
<input type=text name="fields_email">
</td>
</tr>
<input type=hidden name="listid" value="180577">
<input type=hidden name="specialid:180577" value="0U4L">

<input type=hidden name=clientid value="346798">
<input type=hidden name=formid value="12654">
<input type=hidden name=reallistid value="1">
<input type=hidden name=doubleopt value="0">
<TR>
<TD> </TD>
<TD><font size="1">*</font><font size="2"> = Required Field</FONT></TD>
</TR>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Submit"></td>
</tr>
<tr>
<td> </td>
<td><font size="2"><a href="http://www.icontact.com">Email Marketing by iContact</a></font></td>
</tr>
</table>
</form>

Could any one please help me to do this ?

Thanks

Richard

Flash Form Variables In URL
I have a login form I made in Flash (MX 2004), and am running into a little problem. Whenever I submit the form, it posts the variables in the URL. The one field is a password, so I can't have that showing up.

Code for the submit button:

ActionScript Code:
on (release) {
    formData = new LoadVars();
    formData.user = username_txt.text;
    formData.pass = password_txt.text;
    formData.loadVariables
    formData.send("http://www.mysite.com/flash_submit.php", "POST");
}
The variables get passed correctly, but the URL looks like:


HTML Code:
http://www.mysite.com/flash_submit.php?username=myusername&password=mypassword
I figured using POST rather than GET would solve that problem, but it doesn't seem to make a difference. I've tried getURL with POST too, and it does the same thing.

Any suggestions?

Thanks!

Matthew

Sending Form Variables Via AS3
I'm trying to write the AS3 code to send information to PayPal when someone clicks on a "buy" link. The code I have written so far is attached. Basically, I have a button on the stage (buy_btn). I've set up an event listener for it that runs a function called "buycd" when it is clicked. I need to send two variables: "cmd" and "encrypted." Flash says there are no errors in the code and the file plays fine. But when I click on the button I get this error:

Error opening URL 'https://www.paypal.com'
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: https://www.paypal.com
at facewithpaypal_fla::MainTimeline/frame1()

Any advice or help as to what I'm doing wrong would be greatly appreciated. Thanks very much.










Attach Code

this.buy_btn.addEventListener(MouseEvent.CLICK, buycd);

var variables:URLVariables = new URLVariables();

variables.cmd = "_s-xclick";
variables.encrypted = "someinfo";

var request:URLRequest = new URLRequest();
request.url = "https://www.paypal.com";
request.method = URLRequestMethod.POST;
request.data = variables;

var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;

function buycd(event:MouseEvent):void {
loader.load(request);
}

Submitting Variables Using Form
hi,
i m using this code to send login and password
information from a flash 4 flash.

the two text fields defined
login
password

a button submit
whose action is defined as

On(Release)
Get URL("/cgi-bin/authenticate",vars=POST)
End On

and the cgi -script is
#!/usr/bin/perl -wT
print "Content-Type:text/html

";
print "<html>"
print $ENV{QUERY_STRING};
print "</html>";


Button is working fine
but it displays nothing on the page
.

plz help as i m stuck on this small problem.

cheers
harsh

Post Form And Variables To Php, Asp Or Cgi
I am trying to post to asp, php and cgi server's pages, but for some reason my actionscript only posts the form's values ignoring the hidden and manually declared variables.
form is at http://www.abogado.co.cr/test/form.fla

actionscript not working:

Code:
on (release) {
var doit:String = "done";
var intl:Number = 1;
var tt:String = "urltext";
getURL("http://www.codeave.com/html/post.asp", "_blank", "POST");
}
later down will need to add also a combobox within the form.. does someone knows how to post the selected option to the web server page from my movie?

Loading Variables From A Form
I'm trying to load some variables into a flash animation.

The animation is located at the end of a multipage form.

I have 4 variables that are needed to create a result.

Serverlanguage: ASP
Flash version: Flash MX (6)

has anyone done this before??

I was trying to post the variables directly into the movie

help would be appreciated

if you have tips or comments send them to me. I am a human and humans could give wrong answers

Getting Variables Form Server
Ok guys, I've delved into Flash MX 2004 Pro ASv2 and I got a couple questions.

I am building a site that has a flash movie which houses the navigation. I want it to dynamically build the navigation depending on the values I have in a database. The server model is Coldfusion MX 6.1

Can you tell me if I'm doing this right?

1. I build a page called cf_buildNav.cfm which flash makes a call to.

2. That page's output is then parsed by flash and if outputed in the right format (up to my code), will build a variable list inside the flash movie.

3. The flash movie can then use that information to dynamically build and position menu elements.

The .cfm page in question would just be outputting the currently selected menu's options and then making them tile below.

If this is right, I guess I'll have to use a set size dimension flash file and just make things scroll in the flash movie.

Variables Not Being Passed From Form...
Hello,

There is a contact form which when submitted is not sending the user input.

Here is the url using the $_GET method (notice there is no value for your_name, your_email and message):


Code:

http://www.camelotandalusians.com/tim/contact.php?server_option=php&recipient=mousel@defend.net&your_name=&your_email=&message=&url%5Fvar=server%5Foption%3Dphp%26recipient%3Dmousel%40defend%2Enet%26your%5Fname%3D%26your%5Femail% 3D%26message%3D



Here is the actionscript that appears to be responsible:


PHP Code:





 on(release) {
    url_var = "server_option="+_root.server_option+"&recipient="+_root.recipient+"&your_name="+_parent.your_name+"&your_email="+_parent.your_email+"&message="+_parent.message;
    getURL("contact."+_root.server_option+"?"+url_var, "_blank", "GET");
    _parent.your_name = "";
    _parent.your_email = "";
    _parent.message = "";    








I'm helping a friend to get this working yet I know virtually nothing about flash. Could someone give me some advise? Or, if someone could fix this I'm sure she'd be willing to pay for some help.

Thanks,

Tim

Flash Form Variables
Hello, flash developers and designers,
I am really new in the world of web design.
I have troubles with flash form variables.
When I send the variables from flash via php script to email, it gives a weird, big fonts from the flash form.
I don't if you guys could help me out.
I appreciate your help!

Sith Kong

Loading Variables Form A *.txt File
Is it possible to load a line in a .txt file into a flash movie ? Lets say I create a dynamic text field and when the movie is loaded, the text will be loaded from a txt file?

External Variables Form Txt File
I allready know how to load external variables (from a txt file) into a flash-movie, but i can only see them when placed directly in a dynamic text field. Now, i want to use those variables in a different way, but nothing works. I can't put them in an array, i can't put them in a different variable,...

what am i doing wrong?

Form Variables And ASP Flash Forms
Hi everyone,

Ok pulling myhair out, please help. What I am trying to do is pass multiple form variables that are embedded in various MCs from a single 'submit' button. I have sorted the reset button by simply using dot syntax.

The problem seems to be that each form element is an MC within another MC and then an 'input' text box. The MC's bounce into view by using the following code:

onClipEvent (load) {
acc = 8;
friction = 1.5;
dest_x = 0;
dest_y = 0;
}
onClipEvent (enterFrame) {
x = _x;
y = _y;
dx = (dx+(dest_x-x)/acc)/friction;
dy = (dy+(dest_y-y)/acc)/friction;
new_x += dx;
new_y += dy;
_x = new_x;
_y = new_y;
}


When the submit button is pressed the only variables sent are those that are set in the above code and not those of each form element. The code I am using on the submit button is:

on (release) {
loadVariables ("richard_1.asp", "", "POST");
}

The ASP code is:

<%@LANGUAGE="VBSCRIPT"%>
<%

' CDO Form Mailer Created by Richie Henderson 08 Nov 2001


'The header/footer for the email

Const Header = "Thankyou"
Const Footer = "Thankyou"

' read all the form elements and place them in the variable mail_body

Dim mail_Body
mail_Body = Header & vbCrLf & vbCrLf
mail_Body = mail_Body & "FORM submitted at " & Now() & vbCrLf & vbCrLf

If Request.Form("SortOrder") <> "" Then 'Need to sort output
Dim arrSortOrder
arrSortOrder = Split(Request.Form("SortOrder"),"|")
For each FormElement in arrSortOrder
mail_body = mail_body & FormElement & " : " & Request.Form(FormElement) & vbCrLf
Next
Else 'No sorting required
Dim form_element
For Each FormElement in Request.Form
mail_body = mail_body & FormElement & " : " & Request.Form(FormElement) & vbCrLf
Next
End If


mail_Body = mail_Body & vbCrLf & Footer

'Create the mail object and send the mail
Set objMail = CreateObject("CDONTS.NewMail")

objMail.From = "info@hendersonwebdesign.com"
objMail.To = "info@hendersonwebdesign.com"
objMail.CC = ""
objMail.BCC = ""
objMail.Subject = "Website enquiry"
objMail.Body = mail_Body

objMail.Send()



%>

If this makes sense can anyone of you gurus suggest anything.

Please help.

Richie

Load Variables From Form To Email
i have a form that i want to send to an email address instead of a url. is this possible?

Passing Variables Form One Movie To An Other
I have a Flash-movie with a variable. I want to load this variable into another movie. How can i do this in Flash 4?

Using Components To Pass Form Variables
How do you use components to pass variables to a loadvariablesnum function calling a cgi-script?

I have a premade cgi-script and when using HTML I would have the following form elements;

<input type=text name=keywords>
<input type=checkbox name=engine1>
<input type=checkbox name=engine2>
<input type=checkbox name=engine3>
<input type="radio" name="method" value="0">
<input type="radio" name="method" value="1">
<input type="radio" name="method" value="2">

Now when I attach the function to a push button I want it to pass a variable for each/or option selected. The cgi script checks for "<input type="checkbox"> and loads the name value as an array to run another sub-routine.

At the moment I am happy to show the results in a new window(html) and then look at passing the results back into flash.

Also are there any tutorials on using flash and external pre-made cgi-scripts.

Loading Variables Form Asp, Need Accentuation
im trying to load some variables from an asp file. the variables are loaded ok, but the text comes with no acdentuation.the words become all wrong.

flash says that "The text at the specified URL must be in the standard MIME format application/x-www-form-urlencoded ", but i've been trying to do this into the asp and having no sucess.



anyone?

Variables Displaying In Form Fields - Help
I have designed a form in Flash, using tab indexing to tab between fields. This requires the text fields to have instance names.

I have also given each field a variable name so I can understand the emailed form.

When you view the form with both variable name and instance name the level number and instance name are showing in the field.

Is there a way to stop this happening so that the form fields are blank upon viewing tha page.

ALSO...

Does anyone know if you can set focus to the initial field, and also get the tab indexing to work as well. They don't seem to work together.

The code I'm using for the tab indexing is:

instanceoffield.tabIndex = 1;
instanceoffield.tabIndex = 2;
instanceoffield.tabIndex = 3;

etc.


Thanks

Variables Displaying In Form Fields - HELP
I have designed a form in Flash, using tab indexing to tab between fields. This requires the text fields to have instance names.

I have also given each field a variable name so I can understand the emailed form.

When you view the form with both variable name and instance name the level number and instance name are showing in the field.

Is there a way to stop this happening so that the form fields are blank upon viewing tha page.

ALSO...

Does anyone know if you can set focus to the initial field, and also get the tab indexing to work as well. They don't seem to work together.

The code I'm using for the tab indexing is:

instanceoffield.tabIndex = 1;
instanceoffield.tabIndex = 2;
instanceoffield.tabIndex = 3;

etc.


Thanks

F5 Interactive Form - AS Variables Question
I'm using Flash 5 to make a registration form using PHP/MySQL. I have 3 buttons on my main menu: subscribe, edit, remove (user subscription data). I'm using a switch statement on the back end based on the value of the variable named "action". The button pressed determines what the value of "action" will be when it is POST'd to process.php.

Here is the problem: I've noticed that if I register (AS sets action="subscribe"), try to register again, then try to edit my data (AS sets action="edit") the action STILL ="subscribe". How can I set the variable to the new value? I'm just trying to make my form as stupid-user proof as possible, but right now I'm the one feeling dumb.

The .fla in question is attached if you'd like to see it.

Thanks in advance for your help,

-Kirk

Sending Variables From A Password Form...
HEy all,

I have a password form, which i need to send the entered variables (text / password) and send them to a URL for logginf into secure pages...

I have no idea what to start with...

ill attach the FLA, if anyone can help get me on track!

Thanks heaps!

Its gotta use the "get" function, not "post"!!
so its secure!!

thanks

Loading VariableS Form A .txt File
Having a mental block day today. I am trying to load 2 variables from a .txt file. These variables are displaying in separate dynamic text boxes that are using the instance names "titleField" and "descriptorField" and variable names "titleText" and "descriptorText" respectively.

This is the code I am trying to use:
//Load variables from text file
myLoadVar = new LoadVars ();
myLoadVar.load("descriptor.txt");
myLoadVar.onLoad = function (success){
if (success == true) {
titleField.htmlText=myLoadVar.titleText;
descriptorField.htmlText=myLoadVar.descriptorText;
}
}

This is contents of my text file:
titleText=This is the title &
descriptorText=Lots of lovely description text here &

ANY SUGGESTIONS?
Rob Hancock

Contact Form: 2 Problems With Variables
hello,

in flash 7 i made a contact form following this tutorial:
http://www.flashkit.com/tutorials/In...-778/index.php

and the form alone works so far. but when i have a few movies loaded into different levels something goes wrong. there are a few mandatory fields which are checked. alone the movie does it right but in a level it doesn't get if the fields are filled or not. there is always the error message to fill the 1st mandatory field. i guess this is not only a problem of checking the fields but also of receiving the data at all - i think it gets lost somewhere?
i tried something like this:
instead of formData.email i wrote _level100.formData.email or _root.formData.email. but this didnt help.

i am also not shure about variables to send the form data to a cgi server. there was no hint in the tutorial. i tried this:
set ("recipient", "birgitking@gmx.net");
set ("subject", "Mitteilung aus Kontaktformular");
set ("print_config", "formData.email");
maybe someone can tell me if this is right??

if you need i can send you my fla file. but as it is not in english you should better view the example file from the tutorial (there is no mistake in my code - the example file behaves the same, i checked this..). i enclosed it.

thanks for helping.
birgit

Joining Variables Together To Form Sentance
how has this got a syntax problem?

"I would like a " &type& " door, which is " &width& "mm wide, and " &height& "mm high. with outer wood as " &outwood& " and inner wood as " &inwood& ". I would like " &mould& " moulding applied to the door and " &edge& " edge profile, with " &srprof& " profile. The raised panel should be " &praise& ", and " &revsty& " reverse. the style of the door I want is " &style& " with " &finger& " finger pull and " &hinge& " hinge drilled for a " &lr& " handed door";

i can understand it!

please tell me exactly how stupid i am and a soloution if you have one, please, thnks.

Send Form Variables From A Projector
thanks for having me and nice to meet you all!

i am doing a project that involves making an interactive cd that contains a flash projector file. i am hoping to have a form in it that will send variables without leaving the projector screen to go to a web browser or email. is this doable? i figured i would start at the newbie section, seeing as that's basically where i am at now...i have the form and am hoping that these details can be sent using a projector file on a CD.

any help?
thanks in advance for quick replies!
billy in vermont usa

Checkbox Variables In An Email Form
I have a info form set up in flash on my site that connects to a php file on my server in the usual way - then firing off an email to me. I have text boxes working fine into the email.
My problem is that I have a checkbox on the form and although it is sending a value to the email it is not diferentiating between 'True' and 'False'
On my submit button in flash I have the following

on (release) {if (checkboxname.getvalue()==true) {
info = "yes";
} else {
info = "no";
}

...followed by all the other action script that seems to work

and on the php file I am calling the "info" variable into the email body like so...



Sender Wants More Info: $info
";

as I say at the moment it doesn't make any difference if the box is checked or not, I always get a "no" get variable in the email.

If i switch it to...

info = "no";
} else {
info = "yes";
}

I always get a "yes" variable so it is seems to be taking the last definition of the variable from the code and passing that on.

Can anybody help please
Thanks a lot
M

Form Problem : Loading Variables
Hi, I've been searching the forums for a couple of days now and haven't found an answer yet.

I used a tutorial from Kirupa (http://www.kirupa.com/developer/acti..._php_email.htm) to create my form, downloaded their sample form and copied the AS and everything. My only problem is getting the variables to be sent when you click the send button. I have a sneaking suspicion that it is because my particular form is being loaded into another Flash movie using:
on (release) {
loadMovieNum("content/form.swf", 2);
}
I wanted it to behave sort of like a pop-up. So I think that the reason may be that the Kirupa form is stand-alone and mine is a movie loaded into another level.

I can't find a remedy to that problem. If anyone is familiar with the method used on Kirupa and can tell me where I might need to vary because of my method, can you help me out on this.

Here is the link to the flash movie:
http://www.yumemedia.com/ym_designs.php
click on the 'Contact Us' button (the sound is loud, I will change it)
click on 'Request A Quote' and the form I am speaking of will pop-up. Let me know if you need the original FLA. I am using MX 2004.

Thank you in advance.

Flash MX 2004 Form Variables
I have a flash form that contains a drop down menu that list's 4 variables.
The dropdown menu is not passing it's selected variable to the rest of the form.

This is a simple form that I downloaded and modified. See form at:
http://codewalkers.com/tutorials.php?show=11

The original form was created in an earlier version of flash.
This drop down part of the form uses: /: before the drop down menu's variable names.
I guess this tells flash that the drop down menu is on a different level. It's actualy a movie clip on a layer above the rest of the form.

I am using Flash MX 2004 and: /: before the drop down menu's variable names will not work.

What do I replace /: with in Flash MX 2004 to make the drop down menu work?

If anyone has an answer...please let me know.

Thanks Scott

Copyright © 2005-08 www.BigResource.com, All rights reserved