Help With User Form
I am creating a simple feedback form with one input text box. I am using the following line of code with in the submit button actions: loadVariablesNum ("http://www.myurl.com/cgi-bin/formmail/formmail.pl", 0, "GET") The problem is I'm receiving an email with too much information. I have two text fields within this movie clip. One is a bit of dynamic text for users to scroll through and read (var text1). The second is the input text for the form (var text2). But when I get the email back from the form submission I'm getting both text fields (i only want text2!). Is there a way to specify which text fields get sent to the cgi script? -a
FlashKit > Flash Help > Flash ActionScript
Posted on: 12-02-2003, 12:03 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
User Profile Form
hi, i am facing a weird problem with my first attempt at flex, php and mysql. please pardon me if this is not the correct place to post my question.
i had a form created using flex and json, with php as the backend. below are segments of my codes..
ActionScript Code:
//get the raw JSON data and cast to String
var rawData:String = String(event.result);
var user = JSON.decode(rawData);
first_name.text = user.first_name;
last_name.text = user.last_name;
email.text = user.email;
if (user.gender == "male") {
male.selected = true;
} else {
female.selected = true;
}
var bday:Date = new Date(user.birthday);
day.selectedIndex = bday.getDate() - 1;
month.selectedIndex = bday.getMonth();
year.selectedIndex = year_array.indexOf(bday.getFullYear().toString());
........
PHP Code:
echo json_encode($_SESSION['user']);
when i first load the page, everything is being populated correctly on the flex frontend. however, when i refresh the page using f5, the birthday fields are incorrect. in the sense that it becomes 1 jan 1970.
i tried to print out the value of user.birthday and it is indeed 1 jan 1970. but i am not sure why it has become this value..
Verifying The User Inputs A @ On An Form
Hey there I have this code on a button:
on (release){
if (name eq "" or email eq ""){
gotoAndPlay("error");
}
else{
loadVariablesNum("email3.php", 0, "POST");
gotoAndPlay("thankYou");
}
}
is there a way to verify that the user includes the @ character when writing the email.
Thanks for any help you may provide.
User Form To Be Saved In A .txt File
I wanted to create a similiar thing to a feedback area on a flash site that saves the info to a .txt file or e-mails it (that would be hard i htink).
could someone post a tute?
NEEDED: F2s User Who Has A Working Input Form
Hello, I need some help from someone who specifically uses freedom2surf web server for their homepage because I have tried to get my mailing script to work, and it is working on other people's servers, except my own. It would be so great if someone who has done this on f2s could walk me through the process. Thanks so much,
Katie
Sending Form Confirmation By Email To User
I am using Flash MX
I made a simple form for an assignment.... although we are not required to email a confirmation to the user, I would like to know if it is possible to do, and if so, what can I add to my script to do this...
This is my very first attempt at actionScripting....
here is my action level script for my form... everything is working... just want that little extra to it... and want to know how to do it for future use....
I do not know how to program for perl, asp, php or CF... so if someone can help me, I would greatly appreciate it...
I really just want a simple email that confirms receipt of form info.
Thankyou for you help
Peachy
Mail Form That Allows User To Attach File
I am trying to make a mail form that allows user to a attach file.
I have the mail form part but im wondering how to go about the part of allowing them to attach a file.
ANY SUGGESTIONS?
Create A Form That Will Allow User To Attach A File.
What ups fellow flasher's.
Having a problem!
Can anyone tell me how I would go about creating a form that would allow the user to attach a file ( resume or photo )
which would be then sent to the email address the rest of the info in the form would be sent to...
anybody help me!
thanks in advance
User Registration Form Creation Problem
hi all,
I have to create a user registration form with username and password.
and login screen when user login i have to check his password , if correct acceptconnection is called else reject connection is called.
My problem is how to store username and password on server side and
how to check pwd on server side.
i have stored user details in a shared object as follows:
Code:
playersInfo_so.data[pname_txt.text] = new Object();
playersInfo_so.data[pname_txt.text].pwd = pwd_txt.text;
playersInfo_so.data[pname_txt.text].firstName = fName_txt.text;
How to check pwd value on server side.
on server side function i tried in this way it is not working:
playersInfo_so.data[pname_txt.text].pwd ==pword
,since on serverside we have to read and write data to shared object using setproperty and getproperty.
please tell me whether my approach is right or wrong,
give me some suggestions in solving this.
thanks in advance
regards
advika
Contact Form With User Id Instead Of Email Address?
Hello again,
I'm trying to build a contact form and instead of entering email address, i want the user to enter its user id and I will include the @domain.com on actionscript on the form and on its php.
Something like this:
User id:"________" (enter by user) @ domain.com (@domain.com will be already on the form)
so all the user has to do is enter its user id.
this user id will pick up the rest which will be the @domain.com and that would be an email send.
Has anyone done that before?... any help please!
ActionScript Code:
on (release) { if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) { EmailStatus = "Please enter a valid COMPANY E-mail address"; } else if (!ToComments.length) { EmailStatus = "Please enter your message"; } else { loadVariablesNum ("MailPHP.php", "0", "Post"); gotoAndPlay(10); }}
and this is what i have on my php file
PHP Code:
<?$ToEmail = "email@domain.com";$ToSubject = "Training Orientation Feedback";$EmailBody = "Sent By: $FirstName
Senders Email: $Email
Message Sent:
$ToComments
";mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");?>
my input text variable is called Email
thanks for the help.
URGENT: CGI User Input Email Form
Hi there,
I have exhausted so many options to try and get a generice form to email working in Flash 5 and can't seem to do it. I have created all of my Input Text fields and given them variables and have put the following code on the submit button... but it still doesn't work... in fact none of the several ones I found on the web worked either. Please help quick!
Submit button code:
on (release) {
loadVariablesNum ("http://cgi.domainname.co.nz/cgi-bin/email.cgi", 0, "POST");
subject = "Enquiry from Website";
recipient = "email@mydomain.com";
gotoAndPlay ("thankyou");
}
Thanks in advance
User Input Form - Problem With Drop Down List
I have a simple form which includes a drop down list.
After selecting from this, I want to use the selection to send them to the appropriate frame in the movie.
I also want the text input to spawn to a dynamic field (this is working).
When the button is clicked, the information from the drop-down list does not show in the dynamic field, but the text from the text input does.
What am I doing wrong.
Code:
confirm_btn.onRelease = function(){
people_txt.text = people_grp.text;
}
confirm_btn.onRelease = function(){
age_txt.text = Number(age_inp.text);
people_grp is the drop down list
age_inp is the text field
I have tried to attached the file, but it is too big (580KB), so if you need to see it, please tell me and I will send to you via email.
Any help would be greatly appreciated
Submit Form Data When User Presses Enter
Hi,
I'm working on a small form which I want submitted when the user presses Enter. I'm sure I've done this before, and I'm also sure it's quite easy, but I can't seem to figure out how to do it.
Thanks in advance
[F8] Problems Reading Text Present In Form Before User Type Anything
To be honest I am tempted to post this in the newbie section ><
I have a multiline text field saying "Enter your question here" and I have made doubly sure that there are no linebreaks or extra spaces.
However my code if(question_txt.text eq "Enter your question here"){} does not work and when I trace it there is a linebreak after the text for some reason.
If I change the form to be single line, it all works fine !?!
ehmmm... help
Trying To Build A Dynamic Form. Input Sections Duplicated By User Defined Number.
Hi
I'm about to start a project, but I'm having a hard time wrapping my head around how to code it.
Lets see if I can describe what I want to do.
I'm building a form composed of two groups.
Group one:
8 text input fields.
Group two: 7 Text fields plus 3 Radio buttons.
I need the user to enter a number between 1 - ∞.
This number needs to dynamically define how many unique instances of Group two are available to fill out and submit with the rest of the form.
(Form results need to be sent, via PHP, to my email address)
Group two is a group of text fields that are defined as the same, but the user will need to input unique information into each one.
For example, Group two has a group of questions similar (but not very close) to this:
List the People in your town
"Group two" 01
Gender:
Name:
Age:
Street Number:
Hair color:
Since I cannot determine beforehand the number of "Group two" instances the user needs to fill out I need them to choose the number above (8th text field of Group one) and have X amount of Group two to be available to fill out. Probably the best way for the user to move between Group two - 09, 11, 12 etc.. is via next and previous buttons.
But despite my need for this, I can't seem to code it.
I'd appreciate any hints and suggestions, and I'd love it if someone would point me towards some sort of working example (you don't have to build one, I know your busy. Its just worth asking you never know until you try)
Not only am I stuck on how to code it via Actionscript 2 I'm even more uncertain as to how the PHP script is supposed to recieve an unknown, unplannable amount of text fields/information. The way I setup my PHP scripts to sent Email from Flash is to manually input the varable names and titles inside the php file. But how do I get it to do that dynamically as well?
Something tells me I still didn't clarify this well enough (or this post is too big to most people to bother reading through) so I'll way a few days or a week for replies, if I don't get anything, I'll try again but with a visual (static/movie) example of what I'm trying to build.
Thank you for taking the time to read this.
It's quite likely you have more pressing things to do, the fact that you read this suggests you intended to help. And thats appreciated.
Even if you were as stumped as I am
Passing User Input Values(text Form) Into A Text File
Hey,
I've created a form-like input to receive user input in the form of text in a frame. Now, I would like to pass that input into an external text file. I hope to get help to implement this. Let's assume that this app will be only used locally and not over the web.
Thanks
User Levels, Cell Phones, And User Registration, Plus Cookies
I need to quote a client on the following and need to know how much work is involved, ie hours. The programming may be done in PHP (unless its easier to do it all with AS), and the so the .swf needs
to talk to other files on the server.
Requirments are as follows:
1. contact form that: validate form, generate email, generate SMS for cell phones
2. registration form that: validates form, checks record, stores record if new, creates and sets cookie so they don't have to login next time, re-directs to appropriate page, sends email confirmation, deletes record if bad.
3. "extranet": validate i/p, check group (user level), send to user group destination
I just need to know if this is a simple couple thousand dollar thing or a complex many thousand dollar thing.
I can't guarantee anything (I don't write the cheques around here), and depending on the complexity of it we may be looking to subcontract some of it out.
Email me directly at: jonny@northstudio.com if you can be of any help.
Flash Form+php(kirupa Tutorial)/messages Sent By Form Show Strange Characters
Flash form+php(kirupa tutorial)/messages sent by form show strange characters - uncorrect stressing for latin languages
I tested flash + php form (http://www.kirupa.com/developer/act...h_php_email.htm) , and noticed message field does not send messages correctly when words stressing is needed (á à , é , í , ó , ão ) ;
I received strange characters when typed stressed words :
á é i ó u ão à pão cão árvore ;
what has to be changed on the code to allow stressing ??
cheers
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
Form Application, How To Make Not Clickable Thing In Parent Form
I am making a form application and in one form i have some child forms.
When i open (make visible) one of the child objects all the clickable items in the parent form are still working.
how can i "deactivate" them?
i have seen that it happens the same not only with parent-child forms but also with the "brothers" forms, even if the clickable items are not shown.
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
Help: Form Mail (CGI-style Email Form) In Flash
Anyone have a nice .FLA file to share so I can get in and play with the AS?
I need to setup a CGI-style email submission (request info, etc) completely within the MX2004 pro environment--for a client.
I'm not completely fluent in AS2.0, but I can run with changing the fields and calls so long as the sample is not too complex.
Much appreciated.
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
Simple Form Troubleshoot For Form Mail
Hey guys...
I can't get the attached form to work no matter what I do. I have to use my host's form mail script. This file is loaded with a loadmovie command on level 3...if that matters.
thank you so much for your time...this is killing me.
tony
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.
[F8] Flash Form Pops Up With The Php Url When Submitting Form
Hey guys,
I have a very minor issue here. I've created a contact form that uses a loadVars function to send the information to a php script and then on to my email. I've got everything working perfect except for the fact that when the user clicks submit it pops up a page with the address of my php script in order to run it. This is a bit annoying, so i was wondering if there was anyway to stop this from happening (but still run the script).
At the moment my code is:
PHP Code:
details_lv = new LoadVars ();
details_lv.userName = text2_mc.name_txt.text;
details_lv.userEmail = text2_mc.email_txt.text;
details_lv.userSubject = text2_mc.subject_txt.text;
details_lv.userMessage = text2_mc.message_txt.text;
details_lv.send("contact.php", "POST");
Any help would be appreciated,
Thx
Form Tab To Auto Scroll Form
I have created a long form that the user needs to scroll down to view and fill in. At the moment the user needs to operate the scroll bar with the mouse when they come to the end of the visible section. i would like the user to be able to tab through the text fields and the form to auto scroll up so the text field is visible.
Any ideas????
Reseting A Form...validating A Form
i have an address book online. Users can add/edit/delete at will. All great, but i need to validate a few of the buttons. Thus far, if a user adds an entry, opon the lvConfirm, the form visualy resets with the original text ("Name", "Number"). That is great, but lets say the user then decides to click the update button...well, while the form says name and number, a duplicate entry is entered. Worse, if instead the user clicks delete, it will delete the last entered entry....not desired...any ideas on how to validate this form so after an enter/update/or delete the forms variables are cleared?
Code:
var lvGet:LoadVars = new LoadVars();
var lvConfirm:LoadVars = new LoadVars();
var lvConfirmSearch:LoadVars = new LoadVars();
mcAddEntry.onRelease = function() {
if(inputName.valid!=true || inputNumber.valid!=true){
txStatus.text="not valid entry";
}else{
lvGet.leaderName = newName;
lvGet.leaderNumber = newNumber;
lvGet.sendAndLoad(rootURL+"insertEntryToPhonebook.php", lvConfirm, "GET");
}
};
lvConfirm.onLoad = function(success) {
if (success) {
leaderlist.load(rootURL+"getphonebook.php");
inputName.text = "name";
inputNumber.text = "number";
dragger._x=0
selectedDays=[];
lvGet.leaderName=""
lvGet.leaderNumber="";
}
};
//______________________________________________________________________________edit entry
mcUpdate.onRelease = function() {
if(inputName.valid!=true || inputNumber.valid!=true){
txStatus.text="Please update at least one field";
}else{
lvGet.leaderName = newName;
lvGet.leaderNumber = newNumber;
lvGet.Id=leaderId;
lvGet.sendAndLoad(rootURL+"editEntryById.php", lvConfirm, "GET");
}
};
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.
[AS] [Form] Simple Form Check ?
Hi.
I got a form for my website and i want flash to check it wether any of the fields is empty.
This is what i got so far, but i does not do anything:
Note: i got 8 fields in my form with the vars: vname, nname, strasse, hnr, plz, ort, telefon and email.
ActionScript Code:
if (vname != "" && nname != "" && strasse != "" && hnr != "" && plz != "" && ort != "" && email.indexOf("@") != -1 || email.indexOf(".") != -1) {
loadVariables("http://www.incorp.de/info.php", "", "GET");
gotoAndStop(3);
_root.regid = 1;
} else if (vname == "") {
gotoAndStop(2);
reg.fehler = "Bitte tragen Sie einen Vornamen ein.";
} else if (nname == "") {
gotoAndStop(2);
reg.fehler = "Bitte tragen Sie einen Nachnamen ein.";
} else if (strasse == "") {
gotoAndStop(2);
reg.fehler = "Bitte tragen Sie eine Adresse ein.";
} else if (hnr == "") {
gotoAndStop(2);
reg.fehler = "Bitte tragen Sie eine Hausnummer ein";
} else if (plz == "") {
gotoAndStop(2);
reg.fehler = "Sie haben die Postleitzahl vergessen.";
} else if (ort == "") {
gotoAndStop(2);
reg.fehler = "Sie haben den Wohnort vergessen.";
} else if (email.indexOf("@") == -1 || email.indexOf(".") == -1) {
gotoAndStop(2);
reg.fehler = "Bitte prüfen Sie Ihre E-mail Adresse";
}
Why doesn't it work?
Flash/CGI E-mail Form -- Form Sends Info To E-mail? HELP Please (AIM/ICQ)
I am trying to make a flash file where you enter in information and then you click send and it sends the data in the form to my e-mail address. I tried customizing all of the cgi ones from the movies section of flashkit, and modifyied the cgi script accordingly. No matter what I've tried, I won't receive the information in my e-mail. For me, this matter is too hard to resolve over e-mail or a forum, so if you would like to, please help me out over instant messenger. I will be online under AIM name: blizzardmedia and ICQ number 64322480
Thanks for your help.
Form (Form + Script)
Hello. I am in need of help with creating a functional form. I have been working on making one work for a very long time except with no success. I am not understanding many of the tutorials, movies, and searching many places. All of the tutorials really never explained anything. I have searched just about everywhere for an answer, and this is my last resort.
I have made an example form, just a test and added a script I found but substituted the variables. Yet, it does not work.
I would like to know, what am I doing wrong? (Bit general question)
Also, when I open up the example script, it opens with SimpleText, change the necesary variables, and save it.
Is this acceptable, the script is just a text file?
Could someone fill some holes in for me?
Moving From Form To Form.
Ok total noob here.
Just started a form based project. My first form is a splash screen, which plays a animation. Whats the best way, at the end of the animation to goto the next form?
Also do I have to unload/load forms or can i just hide and unhide them.
Thanks in advance
Form In Flash, Tab Goes Off Form
Sorry - I really feel at a loss here as there is nowhere I can find to set up a control for the order in which you can move from one field to another. But as I test my form, and tab from one field to the next - the cursor goes from first to second field, then off the form to the menu bar, tab again and you end up in the third field of the form, tab again and you go off form to the next option on the menu bar, tab again and you go back to the last two fields in the form. What can I do to keep the cursor in the form going from one field to the next? PLEASE!?
PHP Form To Flash Form
Hello everyone, I have a form php that I want to convert to flash, but do not know how to do it, this it is the code.
Code:
<form action="www.ejemplo.com/algo" method="post" name="comment" enctype="multipart/form-data">
<p>Comentario</p>
<textarea id="cftext" name="text" rows="8" cols="50" class="formfield">Escribe tu comentario</textarea>
<input name="rate" id="cfrate" value="0" type="hidden">
<input name="system_content" value="function" type="hidden">
<input name="system_lib" value="algo" type="hidden">
<input name="system_name" value="algo" type="hidden">
<input name="system_type" value="algo" type="hidden">
<input name="system_cid" value="algo" type="hidden">
<input name="system_tpl_success" value="algo" type="hidden">
<input name="system_tpl_error" value="algo" type="hidden">
<br>
<p align="center"><input name="submit" value="POST COMMENT" type="submit"></p>
</form>
PLEASE, HELP ME!!!
AS2 Form Data To ASP Form
I've scoured the forum for a possible solution and nothing I've found seems to work. I have a form in Flash AS2 that I want to pass that data to an ASP page where it's processed, but it should also send the user to that page.
FLA has two form fields "userName" and "pword"
My actionscript looks like
buttonSubmit.onRelease = function() {
myVars = new LoadVars();
myVars.userName = regFields.userName.text;
myVars.send("login.asp","_self","POST");
}
I've even tried just using the getURL("login.asp","_self","POST"); method and I cannot get the variable info to send to the page.
I've also tried sendAndLoad too with no success as that won't send the user to the next page.
How Do I Get A User's I.p
how do i get a user's i.p and display it in a textfield in flash an be abl to save it to file?
anybody
cheers
How Do I Use My User's Mic In MX?
I noticedt in the settings in flash 6, it says "give this movie access to your microphone?" How in the world do i use the user's microphone? I want to set up a free version of "guitarWars.com" and have online battles. Help greatly appriciated!
New User
I am wondering how to use flash I am a new user and I keep readin trhe tutorials but it is still hard to do I have even done the lessons, so I have a little knowledge. I am trying to create my own web page and I need help. Big time. Maybe I am a slow learner! Anyways I am using flash 5 because I am waiting for my mx to arrive hopefuuly soon. Anyways what do you peeps suggest? P.S. I even have a book on it and it thinks I'm dumb
User Name
is there any way of changing your user name?
i'm sick of bacon man. i thought of it in a hurry when i became a member and now i'm stuck with it, aaaahhhhhhhr
New User
Hi everyone.
Just installed Flash MX and have no idea what i'm doing.
Would someone mind telling me how i view the code for .fla file?
any help would be greatly appreciated, thanks
User Log-ins
Hi,
I am currently building a flash site which will require users to log-in, and then use cookies or something to keep verifying theyre logged on everytime they load a different movie after that. I would like to do the verification by mysql.
Could anyone point me to any good tutorials for this?
Cheers
Help For A New User Please
Greetings,
I am sure that you have answered most of my question a thousand times, but here goes.
First let me begin by saying I am completely new to flash 6.0 (er, and Flash in general).
What I wish to accomplish:
A very simple intro, with an MP3 playing throughout the movie. In the movie will be 10 - 12 images which fade in, remain a few seconds, then fade out in sequence.
If anyone would please point me to a web tutorial which would help me complete this little project it would be greatly appreciated.
Thank you in advance
imagewerks
New User
i am a new flash user, an art student.
I am not a computer friendly person.
I have been instructed to research "masks" and "motion guide"
you can monitor my progress @ www.sparkpod.com/sashakristine
Mac User
Are there any good free flash animators for Mac? If so, where can I find one? I want to start making flash toons but I don't have the resources to buy a commercial animator.
|