Question:
Dreamweaver/Form Question - How do I add a form on a page to join a mailing list? I need to know the Action?
Bri
2009-07-19 14:24:29 UTC
I'm able to build the form properly on the front end, so it appears correctly on the page. However, I don't know what to put in for the action type. For method I have "post". I want the data they enter into the field to be emailed to me, how do I put that into the "Action" section. Do I put something like "submit:myemailaddress@yahoo.com"?
Three answers:
anonymous
2009-07-19 14:39:33 UTC
Action is the name of the file that does the actual work. It's usually a PHP program, but it can be an ASP program if you run on a Microsoft server. You'd put something like "join.php" Then, in join.php, you'd have code that would take the data from the $_POST[] variables (the text boxes and other controls you have on the form) and do what's needed to "join" the user to the mailing list - add him to a database or send an email to the mailing list, send a confirmation email to the user, send him a "you have been added to the mailing list" page, etc.
maffia
2016-12-24 22:33:58 UTC
hi I surely have been real here on Yahoo suggestions an prolonged time. do now no longer enable the date on My Account fool You. it particularly is surely My seventh Account (the previous six having been deleted via employing Yahoo) the undeniable actuality is that there isn't any set form of Violations that get You Suspended/Deleted. you will get Deleted for basically one if it is the incorrect form of Violation, enable Me make sparkling, there are a number of categories of Violations on Y!A. some are lots extra desirable severe than others...examples the main severe Harrassment or Abuse interior the path of yet yet another Member (purely one or 2 of those and you're Toast) next Step Down Phishing, Fraud (One or 2 of those and back, Toast) next factor Down direct mail (5 to 10 0f those and Your Day is achieved) the backside Rung (Chatting, now no longer a Q or A) (those are minor violations, you ought to rack up surely DOZENS and not get suspended, I also have a minimum of 40 of this way against My modern Account real now and that i'm nonetheless real here) choose i replaced into of a few provider to You. And beautiful basically works approximately 20% of the time. Out of each a hundred Appeals approximately 20 are overturned via employing Yahoo, so which you're real to "now no longer carry you're breath"
kkrimmer
2009-07-19 15:47:52 UTC
I've made up sample files before to answer the same question.

You can download the files one at a time

http://indranet.com/form/form.html

or all are in this zip

http://indranet.com/form/form.zip - includes the php and form reply file



You will need to change the php file, put in your email address and the Subject you want in the email you receive. Unless you are changing the form that's the only change you need to make to the php file.



If you are going to add more fields to the form then just add (copy/paste/edit) in the php file a line, for example "\n Email " . $_REQUEST['email'] .



Always make a copy of what works first.



You can delete the requirement for email address, it's above in the form.html file. If you want to add more required fields to be filled out just copy/paste/edit the 5 lines starting with "if"


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...