-
Simple Email List Subscription Form!!!
Hi Folks!
First, thanks to anyone that can lend any help...I'm sort of banging my head against the desk on this one!
I'm making an email signup form for people to input their email address to get sent to a php form (hosted on another site)...I took a look at the tutorial on AS.org and thought I did everything right, but it's not quite working! I've also done a search but everyone seems to fix there problems before someone can help them!
My HTML tag is as follows:
PHP Code:
<form method=post action=http://www.ymlp.com/subscribe.php?bottleofjustus>
<table border=0>
**<tr>
****<td><input type="text" name="YMLP0" size="20"></td>
****<td><input type="submit" value="Submit"></td>
**</tr>
</table>
</form>
Now my AS in my MC (this MC is contained in a huge movie scene) for my "submit" button is this:
PHP Code:
on (release) {
getURL("http://www.ymlp.com/subscribe.php?bottleofjustus", "_blank", "POST");
}
And I have an input text field with the variable YMLP0...which is what it should be, correct?
I've uploaded a simple FLA/SWF here.
The form get's sent to the page fine, but it's telling me I haven't input an email address...so if you guys have any thoughts, please let me know!
Thanks so much!
Dave
-
Doh....anyone have any idea? Maybe a place to get me started? Thanks so much!
-Dave
-
Rainy Day Member
Re: Simple Email List Subscription Form!!!
You dont need the HTML tags.
all you need to do is have a input text field with a variable name in this case we will call it "YMLP0", and a button.
this code will be on the button in the same frame and on the same level as the text field. I prefer inside a seporate movie clip myself.
Code:
on(release){
loadVariablesNum("http://www.ymlp.com/subscribe.php?bottleofjustus",0,"POST");
}
that should solve your problem
use the loadVariablesNum as you cannot post using getURL
Variables will not pass from flash to a new browser window with the post method. So you will send it by loading the page into flash. Then you will have to create a thankyou or signed up frame in your flash movie to goto.
Last edited by eightamrock; 03-01-2005 at 08:40 PM.
"Shhhhh I have insomnia and Im trying to sleep it off."
-
Hey,
Awesome, thanks for the reply! I'll see if I can give it a whirl when I get home tonight. I thought about using the loadVariablesNum but wasn't quite sure if it would solve my problem.
Thanks again for the help!
-Dave
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
|