# Urgent help required in form submission through flash

**URL:** <https://forum.kirupa.com/t/urgent-help-required-in-form-submission-through-flash/284933>\
**Category:** Uncategorized\
**Created:** [March 25, 2009, 9:33am UTC](https://forum.kirupa.com/t/urgent-help-required-in-form-submission-through-flash/284933 "2009-03-25T09:33:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coolgirl](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@coolgirl](https://forum.kirupa.com/u/coolgirl)\
**Post date:** [March 25, 2009, 9:33am UTC](https://forum.kirupa.com/t/urgent-help-required-in-form-submission-through-flash/284933/1 "2009-03-25T09:33:49Z")

</div>

Hi there,

I have a form in flash asking username, email and message. A submit button is there to submit the info to the perl script.

On click of submit button I have written this code:

on (release) {  
// send variables in form movieclip (the textfields)  
// to email PHP page which will send the mail  
form.loadVariables(“[http://www.coolgirl.com/perl/cool/mailtofriend.html](http://www.coolgirl.com/perl/cool/mailtofriend.html)”, “POST”);  
}

\*\*This code is not working and also along with it I just want the ID of the video that is running. \*\*

Sturcture of video.xml is as follows :

\<ratings\>  
\<video file=“video1.flv”\>  
\<title\>Lays\</title\>  
\<runtime\>auto\</runtime\>  
\<author\>Bharati 1\</author\>  
\<views\>1\</views\>  
\<commercialid\>\</commercialid\>  
\</video\>  
\<video file=“video2.flv”\>  
\<title\>Incredible India\</title\>  
\<runtime\>auto\</runtime\>  
\<author\>Bharati 2\</author\>  
\<views\>1\</views\>  
\<commercialid\>2\</commercialid\>  
\</video\>  
\<video file=“video3.flv”\>  
\<title\>Mc Donals Happy Meal\</title\>  
\<runtime\>auto\</runtime\>  
\<author\>Bharati 3\</author\>  
\<views\>0\</views\>  
\<commercialid\>\</commercialid\>  
\</video\>  
\<video file=“video4.flv”\>  
\<title\>Last\</title\>  
\<runtime\>auto\</runtime\>  
\<author\>Bharati 4\</author\>  
\<views\>1\</views\>  
\<commercialid\>\</commercialid\>  
\</video\>  
\<commercials\>  
\<commercial id=“default”\>video1.flv\</commercial\>  
\<commercial id=“1”\>video1.flv\</commercial\>  
\<commercial id=“2”\>video2.flv\</commercial\>  
\<commercial id=“3”\>video3.flv\</commercial\>  
\</commercials\>  
\</ratings\>

Should I pass ID through this XML like this :

\<video file=“video8.flv”\>  
\<title\>Eight\</title\>  
\<runtime\>auto\</runtime\>  
\<author\>Bharati 8\</author\>  
\<views\>0\</views\>  
\<myID\>6567\</myID\>  
\<commercialid\>\</commercialid\>  
\</video\>

If I do so then how do I get this ID in my this code :  
on (release) {  
// send variables in form movieclip (the textfields)  
// to email PHP page which will send the mail  
form.loadVariables(“[http://www.afaqs.com/perl/advertising/creative\_showcase/mailtofriend.html](http://www.afaqs.com/perl/advertising/creative_showcase/mailtofriend.html)”, “POST”);  
}

Can anybody help me out. Its very urgent.  
Thanx.
