Radio Buttons for Flash PHP email.
Hi.
I need to add a sign-up form for services to a flash AS2 web site.
I found a very simple example of a Flash/ PHP email form at Kirupa.
It works fine, but I need to add some radio buttons.
My web site will offer various services.
Ideally I would like to be able for viewers to sign up for a service by clicking the appropriate right radio buttons
F.ex;
• Service 1
• Service 2
• Service 3
• Service 4
The email should reflect the choices made by listing the text on the selected services (radio buttons).
Please download the FLA and the PHP file (at the bottom of the tutorial) here:
http://www.kirupa.com/developer/actionscript/flash_php_email.htm
I have uploaded a working version here:
http://gggraphic.com/flash_mail/simple_flash_mail.php
How do I add and script the radio buttons with both AS and the PHP to make it happen?
Thank you on beforehand for your help
ggaarde
Hi Again
Maybe check buttons would be a more natural option for this. You should be able to select more than one service.
Thanks
ggaarde
Similar Messages
-
Radio button variable not being emailed through php file.
Dear Forum,
I have a contact form in a AS 2.0 file that sends the form data just fine to my email. But it doesn't send the radio button selection variable.
I am definately doing something wrong here. Either with the setup of the radio buttons in flash, or with the php file.
I was wondering if someone can tell me the error in my ways.
I have included a screenshot of flash page, download link with all files, and the php code below.
Any advice or help would be greatly appreciated.
Thanks
Jeff
Boise, ID
email: aaajeff<at>hotmail.com
http://www.thevodkarevolution.com/email.zip
http://www.thevodkarevolution.com/flashscreenshot.jpg
Email.php file:
<?php
$sendTo = "[email protected]";
$subject = "revolution - message";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" .
$_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$body = $_POST["name"] ." ". $_POST["email"] ." ". $_POST["message"] ." ".
$_POST["industry"];
mail($sendTo, $subject, $body, $headers);
?>I solve that problem, you also have to add the property
radioButton1.setOnClick("common_timeoutSubmitForm(this.form, 'rbID');");
and with this method will call the othe method :D
Hope this is not too latte. :D -
I set up a survey, and I need the info from the radio button
groups to send to a php form that will email me the results. So far
I have not been able to get it to work. All I have so far is the
code below attached to the submit button. I had a working contact
form that I am trying to add radio buttons to, but they do not pass
their info like the input text boxs do. I am a beginner with
actionscript so I am having trouble finding where to get this to
work. I have all my peramiters set on each radio button too. I just
do not know what script to add to what I have so it will pass the
data over to the php form.
I have the survey as one MC which is inside a scroll pane if
that matters. What I have so far can be seen here.
http://ebinx.com/carrand/freestuffswf.swf
Thanksbump
-
How to make a fullscreen button for Flash Catalyst?
Hey everyone. I really hope someone can help me with this. How can I make a fullscreen button in Flash Professional that would make my Flash Catalyst project go fullscreen?
I'm sorry I really don't know Flash Catalyst as much as I'd like to. Designing interfaces is left up to me, no designers at my agency use Catalyst. Though this is the Flash forum so that's as much as I can tell you. I didn't know Catalyst didn't support basic scripts (I thought I read that it did).
Ultimately, for a very cheap price you can do something like go to http://www.lynda.com/ and buy a membership. Dirt cheap compared to what you get. They offer many courses on all this stuff and I'm sure your answer would lie in one of the (nicely broken up by subject) video training videos.
Just searching for Catalyst brings up a bunch of courses:
http://www.lynda.com/search?q=catalyst&x=0&y=0
edit:
For instance I watched the essential CS5.5 training and I saw in 2 minutes flat that when you click on a button you should have an "Interactions" panel that lets you do things. If they didn't put fullscreen as an interaction that's another thing but I'm just pointing out it's very easy to learn how to do all sorts of things in video training. If you do not want to purchase a membership there just find a video you think would have the info in it and I'll watch it and let you know if it told me how to do it, and how to do it. -
Is there a reliable way / workaround to get the browser buttons (meaning the back and forward arrows) to work on an all flash website (
I have Dreamweaver CS4 if that helps)?
I'd been directed to SWFAddress a few months ago, but I couldn't get that working even after digging around on the Asual site and elsewhere for instructions on how to integrate this deep linking feature.
Thanks for any recommendations.Nevermind... I found out his Flash Player was WIN 9,0,47,0
while everyone else is WIN 9,0,124,0 . He upgraded & it is
working. -
Playback buttons for flash movie
Hello, im having some difficulty adding a play, pause and
stop button to a movie I imported into flash.
The movie was imported using the import wizard in flash 8. I
did not add a skin because when I tried adding it , the skin would
not show through once I imported the finished swf file in
Trainersoft. ONly the movie would come through. So, then I decided
to add my own playback buttons to the movie. I imported the movie
again using the import wizard, i did not select a skin. The movie
was imported fine into flash. I added a play, pause and stop
buttons as new symbols each in their own layer. I added the correct
action scripting to the buttons, i preview movie and the buttons
appear correctly but nothing happens when I click each of the
buttons, the movie keeps playing without reacting to me clicking on
either the pause or stop button, or the play button.
Here is thte scripting im using.
For Play: on (release) {
myButton.onrelease = function() {
trace("onrelease called");
on (release) {
play();
For Pause:
on (release) {
myButton.onrelease = function() {
trace("onrelease called");
on (release) {
stop();
For Stop
on (release) {
" Movie".gotoAndStop (1) ;
I would love to hear from someone to help me out. Thank
you!!First, create your play button. Click on it, and open up the
Properties Panel (Shift + F3). Type in:
play_btn for the <Instance Name>.
Then, create a new Layer in your Flash file, called Actions.
Click on the first frame of the Actions layer, and open up the
Actions panel (F9).
Type in:
stop();
play_btn.onRelease = function(){
play();
} -
Back button & Replay button for Flash movie on website
Three questions all related:
1. I need to add a "Back" and a "Replay" button to a Flash movie that plays full screen when the link is clicked on a website. I have created the two buttons and placed them on the stage. I've given them the names back_btn and play_btn. I've tried several scripts from postings on the Forum for the replay button but all of them come up with errors such as, "1119: Access of possibly undefined property onRelease through a reference with static type flash.display:SimpleButton" when I use this script:
stop();
play_btn.onRelease = function()
play();
I also tried this script:
stop();
play_btn.addEventListener(MouseEvent.CLICK, playMovie);
function playMovie(event)
play();
It didn't report any errors, but it didn't work.
2. I saw a posting that said one needs to name the movie clip and reference it in the script. Would this be the file name of the movie after it is exported? I am unclear on this.
3. For the "Back" button, would I include the whole url to get the viewers back to the previous page or is there a shortcut way to get them back there?
If you can help, please provide detailed script as I do not know Action script.
Thank you,
MarilynHi, Ned:
I have a presentation completed that is already up on a website and now I need the "Back" button and "Replay" button, so whether I'm ready or not, I have to find a solution. I know I'm missing some important step. I have Lynda.com and I can usually figure out what's wrong with the lessons on there, but this one has me stumped.
I did try the code change you sent and I was unable to get the movie to replay. I'm attaching two screen shots so you'll see that I did have the button instance named properly and the Action Script correctly written. You can "Ctrl" "Scroll" to enlarge the images on your screen.
Marilyn -
Radio button for every row in a table
Can anyone tell me how to get abutton for every row of a table.This button is used for selecting taht particular row.
Thanks in advanceCreate a table region in Jdev. Then right click on it New--> Choose Single Selection.
Thanks
--Anil -
Buy Now paypal buttons for flash 8 basic
I just bought these buttons off the web and I am trying to use them. Flash says it cannot open the fla files because they contain screens. What does this mean?
Are you using CS5?
I guess the screens functionality is removed in CS5
http://cs5.org/?p=179
refer to Miscellaneous section, which says--
"Screens functionality is removed. Screens FLA cannot be opened or saved. A new Screens document cannot be created." -
How can't I reset my security question
You need to contact Apple to get the questions reset. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
(95007) -
I am having a problem getting radio button data into php and I can not seem to find any answers. My project is simple I have a group of radio buttons, when one is selected and a submit button is pressed I want the data from the radio button to populate the subject line of an email and send it. It sounds simple but I am having a lot of problems figuring it out and would appreciate any help I can get. I am good (not great) with flash, ok with PHP but for some reason this is taking a long time to fugure out. I can make a form work with input fields but not with radio button data.
Use variables, not the text field var option from the Properties panel... not a reliable resource. Give the textfield an instance name and use its text property to assign the value to a variable.
I haven't dealt with AS2 to PHP much, but are you using the LoadVars class to manage getting the data to the PHP file? I think the send() or sendAndLoad() methods are what you want to use.
If you search Google using "AS2 LoadVars" you are likely to find a number of helpful tutorials, including those that focus on PHP being in the picture. -
Flash 8 UI Component: Radio Button
Hi:
May someone kindly guide me how to bind a radio button to a
text area? Perhaps without using action script.
What's the trick of binding the Radio Button in Flash 8 as
the attempt to bing ComboBox or some other UI components has no
problem at all; but only the Radion Button.
Thanks!Thanks for the response.
After i posted I kept digging and found where the code is
that sets the font for the Radio buttons in the quizzes when you do
an export to flash. What I found out is listed below in case anyone
else ever needs the information- hopefully it will save someone
else some time.
The ".as" file is --
C:\Documents and Settings\YOUR NAME HERE\Local
Settings\Application Data\Macromedia\Flash
8\en\Configuration\Classes\AdobeCaptivate\quiz\CpMultipleChoice.as
Strating at line 106 there is the following code
p._font.name = "Arial";
p._font.size = 12;
p._name = "" + numAnswers;
I was then able to make the font size larger to match the
other text on the screen (i do have to say it's rather annoying
that those attributes don't get exported from the captivate file,
because i set the font properties before exporting - but i guess
there is probably a reason for that) -
NO-DISPLAY option for Radio buttons
Hi All,
I want to hide the 2 radio buttons on the selection screen using the NO-DISPLAY option. when i worked with that its giving an error like 'no-display and radio button group can be specified together'.
my question was is it possible to use NO-DISPLAY option with radio buttons?
Thanks
Kumar.See this sample code
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-h01.
*Radio button for Process PO invoice
PARAMETERS : rb_po RADIOBUTTON GROUP inv USER-COMMAND rad.
" PO Invoice
*Radio button for FI Invoice
PARAMETERS : rb_fi RADIOBUTTON GROUP inv.
" FI Invoice
*Radio button for Process PO & FI Invoice
PARAMETERS : rb_pofi RADIOBUTTON GROUP inv.
" PO & FI Invoice
SELECTION-SCREEN END OF BLOCK b3.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
SELECT-OPTIONS:
s_bukrs FOR rbkp-bukrs, "Company Code
s_ekorg FOR ekko-ekorg NO INTERVALS MODIF ID md2,
"Purchasing Org.
s_ekgrp FOR ekko-ekgrp NO INTERVALS MODIF ID md2,
"Purchasing Group
s_werks FOR rseg-werks NO INTERVALS MODIF ID md2,
"Plant
s_lifnr FOR rbkp-lifnr NO INTERVALS,
"Vendor
s_matkl FOR ekpo-matkl NO INTERVALS
MODIF ID md1,
"Material Group
s_belnr FOR rbkp-belnr NO INTERVALS,
"Invoice Number
s_ebeln FOR rseg-ebeln NO INTERVALS MODIF ID md2,
"Purchasing Document No
s_gjahr FOR rbkp-gjahr NO INTERVALS,
"Fiscal year
s_budat FOR rbkp-budat NO INTERVALS,
"Posting date
s_blart FOR bkpf-blart NO INTERVALS,
" Document Type
s_bldat FOR bkpf-bldat NO INTERVALS,
" Invoice Date
s_usnam FOR rbkp-usnam NO INTERVALS.
"User
*Report type
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
SELECTION-SCREEN BEGIN OF LINE.
*Radio button for User Report
PARAMETERS : rb_user RADIOBUTTON GROUP za DEFAULT 'X' <b>USER-COMMAND rad MODIF ID md2.</b>"User report
SELECTION-SCREEN COMMENT 3(20) text-003 FOR FIELD rb_user MODIF ID md2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
*Radio button for Managing Report
PARAMETERS : rb_man RADIOBUTTON GROUP za
<b>MODIF ID md2.</b>
"Management Report
SELECTION-SCREEN COMMENT 3(20) text-004 FOR FIELD rb_man
MODIF ID md2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT.
* Checking Radiobuttons and modifing Material Group field .
PERFORM f13000_check_radio.
FORM f13000_check_radio.
* When the FI button is selected hide the fields under group md1 and MD2
LOOP AT SCREEN.
IF screen-group1 = 'MD2'
OR screen-group1 = 'MD1'.
IF rb_fi = c_x
OR rb_pofi = c_x.
screen-active = 0.
ELSE.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
* If the user output radiobutton is checked then make the screen
* input of Material Group off
<b> LOOP AT SCREEN.
IF screen-group1 = 'MD1'.
IF rb_user = 'X'.
screen-active = 0.
ELSE.
screen-active = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.</b>
IF rb_user = 'X'.
* When display for material group is off
* then refresh the select option for material
* group
REFRESH s_matkl.
ENDIF.
ENDFORM. " f13000_check_radio
hope this helps. -
Provide code for desplay radio button in POP UP window(REUSE_ALV_POP
Dear Experts,
I m using Function module REUSE_ALV_POPUP_TO_SELECT . I can use check box but radio button is required. How to declared that radio button in main Program and I need radio button on POPUP window also along with other fields. That radio button should not display on my main selection screen, Radio Button should be display on POPUP window only .
Pl provide me code for .....
Thanks & Regards,
Swapnika
Edited by: swapnika on Nov 28, 2011 8:09 AMHi,
Using radio button for single selection.
You can double click at the line for the single selection instead of radio button by leaving I_CHECKBOX_FIELDNAME blank.
Hope this help.
Tiwa N. -
Radio Button Problem in Webdynpro For Java
Hi to all,
I am new to Webdynpro. I want to create four Radio buttons which will fetch the data from the RFC. I have created a Context value node called options and created four value attribute under that options node.
The Problem is if i use the Radio button group by index i could map only one attribute at the "texts" field of Radio button group. how do i map the other values.
or Is there any other way of using Radio button for such of requirements.
Please if any one bring me the Solution to this issue it would be more help ful to me.
Thanks in advance...
Regards,
Malar.Hi Thenmalar,
If you want to have four radiobutton then you need to have only one value attribute within the node.
Assume you want to have 4 radio buttons named one, two, three and four
1. Create a value node called Radio and create a value attribute within this node called Value
2. Bind this attribute to the radiobutton group.
3. Define the values of these radiobuttongroup at runtime(in WDDoInit() method of the view)
IPrivate<viewname>.IRadioElement ele = wdContext.nodeRadio().createRadioElement();
ele.setValue("one");
wdContext.nodeRadio().addElement(ele);
IPrivate<viewname>.IRadioElement ele1 = wdContext.nodeRadio().createRadioElement();
ele1.setValue("two");
wdContext.nodeRadio().addElement(ele1);
IPrivate<viewname>.IRadioElement ele2 = wdContext.nodeRadio().createRadioElement();
ele2.setValue("three");
wdContext.nodeRadio().addElement(ele2);
IPrivate<viewname>.IRadioElement ele3 = wdContext.nodeRadio().createRadioElement();
ele3.setValue("four");
wdContext.nodeRadio().addElement(ele3);
You will get the values one, two, three and four at runtime.
Regards,
Murtuza
Maybe you are looking for
-
My calendar and contacts will not open on my pc
the calendar and contacts from my ipad were working fine on my pc, now they will not open.
-
IPod Touch Wont Connect to Belkin Router
Ok so if I turn off my router security it connects fine, gets assigned an IP by DHCP but the minute I turn on the WEP again it says 'Unable to join the network'. Very annoying!! I have tried using all caps, lower case, spaces inbetween, you name it a
-
Cannot expand 2007 iMac to 4GB - freezes
Hi all. I have a 24-inch Mid 2007 iMac model iMac7,1 with a 2.4 GHz Intel Core 2 Duo processor and 2 GB of memory. I purchased a pair of PNY 2 GB DDR2 PC2-5300 SODIMM memory modules. When I replace the two 1GB modules with the two 2 GB modules, th
-
I'm trying to draw on CS6 and the screen keeps flickering Black, I've tried to switch off using the graphics card and switching to Basic mode, that hasn't helped. How do I fix this? OS: Win 8 Intel R HD Graphics 3000 4GB RAM Not sure if there is any
-
OS X 10.6.8 incompatibility with Firewire 800 or LaCie Firewire 800?
Somewhere along the line my MAC OS X running version 10.6.8 stopped supporting Firewire 800. When I connect my LaCie remote disks the MAC seems not to see them. Since I have two separate LaCie disks and have tried several cables, I think I can elim