Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting 1

Status
Not open for further replies.

NothingArt

Programmer
Dec 19, 2001
19
US
Hey,
I'm not even sure if this can be done, but I have forms set up on my site but it's not cgi or php, I use bravenet as a formhandler. Can I make a form in flash and have it work using bravenet as the form handler? Help is greatly appreciated
 
hi

Just checked out Bravenet and they use PHP to process email forms.

Don't know if it would work, but if you look at the code they give you to process forms and extract from that the PHP file address and variable definitions, you might be able to process a flash form.

I'll have a go at it for you just now and let you know my results, unless someone else comes in who has already tried with Bravenet.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
ok, you can get the Bravenet email form to kick in from a flash movie.

I just modified my FAQ form to relflect the requirements of the Bravenet PHP script.

What you have to do first is get the HTML code that your using for your Bravenet form. Now, dtermine the textfields and variables you need for your movie, ie to emulate the following typical Bravenet HTML email form code:

Code:
<!---------------- BEGIN BRAVENET CODE -------------->

<div align=&quot;center&quot;><br /><br />
<form action=&quot;[URL unfurl="true"]http://pub5.bravenet.com/emailfwd/senddata.php&quot;[/URL] method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;>
<input type=&quot;hidden&quot; name=&quot;usernum&quot; value=&quot;##yourusernum##&quot; />
<input type=&quot;hidden&quot; name=&quot;cpv&quot; value=&quot;##yourcpvnum##&quot; />
<table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; border=&quot;0&quot; bgcolor=&quot;#999999&quot;><tr><td>
<table border=&quot;0&quot; cellpadding=&quot;10&quot; cellspacing=&quot;1&quot; bgcolor=&quot;#999999&quot;><tr bgcolor=&quot;cornsilk&quot;><td>
<font face=&quot;Verdana,Arial,Helvetica&quot; size=&quot;1&quot;><b>What is your name?</b></font><br />
<input type=&quot;text&quot; name=&quot;name&quot; size=&quot;20&quot; /><br />
<font face=&quot;Verdana,Arial,Helvetica&quot; size=&quot;1&quot;><b>Where are you from?</b></font><br />
<input type=&quot;text&quot; name=&quot;where&quot; size=&quot;20&quot; /><br>
<font face=&quot;Verdana,Arial,Helvetica&quot; size=&quot;1&quot;><b>E-mail address?</b></font><br />
<input type=&quot;text&quot; name=&quot;replyemail&quot; size=&quot;20&quot;><br />
<br /><div align=&quot;center&quot;>
<input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot; Send &quot;>
<input type=&quot;reset&quot; name=&quot;reset&quot; value=&quot; Clear &quot;>
</div></td></tr></table></td></tr></table>
<br /><a href=&quot;[URL unfurl="true"]http://www.bravenet.com/&quot;>[/URL]
<img src=&quot;[URL unfurl="true"]http://images.bravenet.com/brpics/formbutt.gif&quot;[/URL] border=&quot;0&quot; width=&quot;100&quot; height=&quot;35&quot; /></a>
</form></div>


<!--------------- END BRAVENET CODE --------------->

.....you have to set up dynamic text fields in your flash movie with variables name,where and replyemail. And in the first frame of your movie you have to define your username and cpv number in the form:
Code:
usernum = &quot;your_usernum&quot;;
cpv = &quot;your_cpv_num&quot;;

Finally, your 'send' button should contain the server route the senddata.php file, thus:

Code:
on (release) {
    getURL (&quot;[URL unfurl="true"]http://pub5.bravenet.com/emailfwd/senddata.php&quot;,[/URL] &quot;&quot;, &quot;GET&quot;);

}
But check your given HTML coding to find that route, it may differ from the one I got if your using a different form.

You can see my test example at:
And download my FLA at:

If you have any problems just shout. ;-)

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
links are dead dave..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top