Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Email form with pictures - Flash CS3 and PHP

This is a discussion on Email form with pictures - Flash CS3 and PHP within the FlepStudio utilities forums, part of the Tutorials category; Hi, try the following: change this line : if(checkRequiredFields()) with this: if(checkRequiredFields()&&file!=null)...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Tutorials > FlepStudio utilities

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #51 (permalink)  
Old 27-08-08, 06:02
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Re: Email form with pictures - Flash CS3 and PHP

Hi,
try the following:
change this line :
if(checkRequiredFields())
with this:
if(checkRequiredFields()&&file!=null)
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #52 (permalink)  
Old 27-08-08, 15:09
Junior Member
 
Join Date: Aug 2008
Posts: 6
Rep Power: 0
codezpecg is on a distinguished road
Re: Email form with pictures - Flash CS3 and PHP

That works perfect, thanks so much.

I tried adding radio buttons and check boxes, I took a look at your Pro form which has radio buttons but get errors everytime I try to make them work on this form.

Is there a tutorial or quick way you can explain how to add radio buttons and check boxes with action script 3.0?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #53 (permalink)  
Old 28-08-08, 05:19
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Re: Email form with pictures - Flash CS3 and PHP

Quote:
Originally Posted by codezpecg View Post
That works perfect, thanks so much.

I tried adding radio buttons and check boxes, I took a look at your Pro form which has radio buttons but get errors everytime I try to make them work on this form.

Is there a tutorial or quick way you can explain how to add radio buttons and check boxes with action script 3.0?

Thanks
Have a look:

RadioButton component of Flash CS3
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #54 (permalink)  
Old 28-08-08, 17:48
Junior Member
 
Join Date: Aug 2008
Posts: 6
Rep Power: 0
codezpecg is on a distinguished road
Re: Email form with pictures - Flash CS3 and PHP

Thanks, but I found that right after I asked. I got it so the checkboxes work but I cant seem to figure out how to get it in email, it only shows up as [object CheckBox] in an email.

I dont know how to declare it correctly this is what I have (only parts of code)

var homeCh:CheckBox = new CheckBox();
var homeHc:CheckBox = new CheckBox();
var underRb:RadioButton = new RadioButton();
var overRb:RadioButton = new RadioButton();

private function CheckBox2():void
{
addChild(homeCh);
addChild(homeHc);
addChild(underRb);
addChild(overRb);
underRb.groupName = "valueGrp";
overRb.groupName = "valueGrp";
homeCh.move(12.6, 255.0);
homeCh.width = 120;
homeCh.label = "";
homeHc.move(12.6, 269.4);
homeHc.width = 120;
homeHc.label = "";
underRb.move(13.1, 301.4);
underRb.enabled = true;
underRb.width = 120;
underRb.label = "";
overRb.move(13.1, 344.4);
overRb.enabled = true;
overRb.width = 120;
overRb.label = "";
homeCh.addEventListener(MouseEvent.CLICK, clickHandler);
homeHc.addEventListener(MouseEvent.CLICK, clickHandler2);

}
function clickHandler(event:MouseEvent):void {

underRb.enabled = event.target.selected;
overRb.enabled = event.target.selected;
}

private function sendMessage():void
{
var variables:URLVariables=new URLVariables();
variables.abs_url=THIS_FORM_ABSOLUTE_URL;
variables.firstName=_first;
variables.lastName=_last;
variables.email=_email;
variables.phone=_phone;
variables.city=_city;
variables.state=_state;
variables.zip=_zip;
variables.country=_country;
variables.comment=_comment;
variables.homeHc22=homeHc;

homeHc is the one of the checkboxes any help? thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #55 (permalink)  
Old 29-08-08, 07:17
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Re: Email form with pictures - Flash CS3 and PHP

What's the error you get ?
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Flash Multi Gallery
  #56 (permalink)  
Old 01-09-08, 05:54
Junior Member
 
Join Date: Aug 2008
Posts: 6
Rep Power: 0
codezpecg is on a distinguished road
Re: Email form with pictures - Flash CS3 and PHP

I dont get an error, I just get [object CheckBox] displayed in the email. I am guessing I am not declaring checkbox correctly to have the value?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #57 (permalink)  
Old 02-09-08, 15:59
Junior Member
 
Join Date: Aug 2008
Posts: 6
Rep Power: 0
codezpecg is on a distinguished road
Re: Email form with pictures - Flash CS3 and PHP

How can I make radio buttons and check boxes required fields?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #58 (permalink)  
Old 26-09-08, 09:12
Junior Member
 
Join Date: Sep 2008
Posts: 1
Rep Power: 0
jafilos is on a distinguished road
Re: Email form with pictures - Flash CS3 and PHP

Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #59 (permalink)  
Old 28-09-08, 00:13
Junior Member
 
Join Date: Sep 2008
Location: Thailand
Posts: 2
Rep Power: 0
kit58 is on a distinguished road
Re: Email form with pictures - Flash CS3 and PHP

Wow It's great...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #60 (permalink)  
Old 07-10-08, 01:27
Junior Member
 
Join Date: Sep 2008
Posts: 1
Rep Power: 0
purpledragon143 is on a distinguished road
Re: Email form with pictures - Flash CS3 and PHP

The form is great it was working for me then a few hours later it decided to just keep loading and never sending the email. I have double checked the instillation and have reinstalled many times and it keeps doing the same thing. If anyone else has run into this problem please let me know I have given the uploadFiles permissions to 777. Let me know if you need the URL to see the form.

Thank you in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Email form con Flash CS3 e PHP Flep Utilità di FlepStudio 109 11-11-08 11:14
Email form Flash CS3 and ColdFusion 8 Flep FlepStudio utilities 1 29-10-08 12:56
Email form Flash CS3 e ColdFusion 8 Flep Utilità di FlepStudio 3 24-10-08 09:20
Flash CS3 Classic Email form Flash CS3 and PHP ions Flash CS3 eng 0 27-06-08 17:07
Flash CS3 email form AS2 seokutsa Flash CS3 | PHP | mySQL 1 15-02-08 11:06


All times are GMT. The time now is 19:33.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406