|
-
Enter information and send it to an address
Greetings fellowflashers
This is a somewhat boring and simple problem, which could probably be answered by virtually anyone of you ... but it's got me.
In a straightforward text input box..... standard astuff...
Name
Address
E-mail
telephone no., etc
I have placed the standard "PRESS' button at the bottom.
The visitor simply presses ...'PRESS' and the I would like the information to be sent (in any shape or form) .... to an e-mail address ...
A CONTACT US ..button is not really what iam looking for... I know how that works. It's the above thing.
As I said ... pretty simple and boring ... but would appreciate the answer.
Regards from sunny Spain
Highlander
-
Hello Every One,
I am not a very good literate of Flash.
I have the similar Problem.
I wish to collect data from the text field and on click of submit button wished all that information to be transferred or post into an email acc for example: [email protected]
Example of text field are as follow :
[IMG]s803.photobucket.com/albums/yy312/hasnain125/?action=view¤t=textbox-1.png[/IMG]
Action Script used to re check data field is as follow:
on (release)
{
NameOk = true;
count = 1;
if (name eq "")
{
NameOk = false;
} // end if
if (Number(NameOk) == Number(true))
{
error1 = "OK";
}
else
{
error1 = "Incorrect Name";
} // end if
okat = 0;
okdot = 0;
okspace = 0;
okfirst = 0;
for (count = 1; Number(count) <= Number(length(email)); count = Number(count) + 1)
{
mail = substring(email, count, 1);
if (Number(ord(mail)) == Number(64))
{
okat = Number(okat) + 1;
continue;
} // end if
if (Number(ord(mail)) == Number(46))
{
okdot = Number(okdot) + 1;
continue;
} // end if
if (Number(ord(mail)) == Number(32))
{
okspace = Number(okspace) + 1;
} // end if
} // end of for
if (substring(email, 1, 1) eq "@" || substring(email, length(email), 1) eq "@" || substring(email, 1, 1) eq "." || substring(email, length(email), 1) eq ".")
{
okfirst = Number(okfirst) + 1;
} // end if
if (Number(okat) == Number(true) && Number(okdot) > 0 && Number(okspace) == 0 && Number(okfirst) == 0)
{
error2 = "OK";
}
else
{
error2 = "E-MAIL INCORRECT";
} // end if
}
If anyone can post code which should include in this & if above code has some mistake please correct it for me I would be delighted and appreciate your efforts.
Thanks,
Regards,
Hash_Flash
-
You need to send the variables to a programming language such as PHP/ASP
http://www.macromediahelp.com/flash/..._contact_form/
-
Thank you Wemustdesing .....
can you suggest me as I have done everything in flash and publish an HTML page ... where should I include that PHP script .... I might sound dumb but I really can't understand it
-
You simply need to:
- Export your swf from Flash
- Include it in your html page
- Then copy the php code from the tutorial, save it as mailer.php in the same directory as your flash/ html page
- Then you should be good to go
-
Thank you very much, Just a Last Question Wemustdesing
its should be written in notepad and saved as mailer.php
-
yes. paste that php code into a notepad file and save it as mailer.php
-
thank you every1 i am sorted thanks 4 the help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|