CGI script for simple form

Can anyone give me a CGI script that will make a form
automatlly e-mail the information gathered from an online form?
Can that code be placed right into the html file?

There are only two ways to process form data -
1. Use mailto:[email protected] as the action of the form
2. Use a server-side scripting method to a) harvest the
form's data, b)
process it in some manner, e.g., enter it into a database, c)
formulate and
send an email to one or more email recipients, and d)
redirect the visitor
to some ending page
Method 1 is quite simple, and is also the least reliable. It
depends both
on your visitor having an email client already installed on
their computer -
this eliminates public computers, or home users without email
clients
installed (more and more it seems) - and on the installed
email client
responding to
the mailto call. It is not possible to use this method *and*
send the
visitor to a
thank you page as well.
Method 2a is the preferred method, since it eliminates the
problems of
method
1, but it means that you have to grapple with
server-scripting somehow (ASP,
CF, PHP, perl, etc.).
Method 2b would be to use some third-party form processing,
like
http://www.bebosoft.com/products/formstogo/,
or if your server supports PHP,
you could investigate
http://www.geekministry.com/formbuilder/,
a very nice
product by a frequent poster here.
You would have to decide which of these methods is best for
your needs,
but if it's Method 2a, then start by asking your host what
they provide for
form
processing. If it's 2b, then read their FAQ/instructions
carefully.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"inhouse7" <[email protected]> wrote in
message
news:gda6ap$79k$[email protected]..
> Can anyone give me a CGI script that will make a form
automatlly e-mail
> the information gathered from an online form?
> Can that code be placed right into the html file?

Similar Messages

  • CGI script for forms

    Hi,
    I have to add form elements to my help topics for getting
    feedback from users. This requires a CGI script to recognizes the
    form elements. While I understand that this is primarily the job of
    a developer, can anyone help me with a reusable script so that I
    can work on my own.
    Thanks much!

    Try
    here.. I think the
    "FormMail" script is the one you need.

  • Help Scripting for PDF Form List Box

    I am attempting to write JavaScript for an Adobe Acrobat X Pro form. I would like to set an action script for a List Box titled "customer_name" so that when a specific customer name is selected, a corresponding text box titled "cutomer_number" will automatically fill with the correct number. I am not very familiar with JavaScript so any help would be greatly appreciated.

    The easiest way to do this is to set the export value of each list box item to the corresponding customer number. The script for the custom number field could then simply be:
    // Set this field's value to the export value of the selected item in the list box
    event.value = getField("customer_name").valueAsString;
    Post again if you don't want to set up the list box that way for some reason since there are other ways to deal with this.

  • Best Layout for Simple forms

    I am sick of having to do all of these workarounds for create simple forms using the Swing API. What is the easiest and most effective way to create a simple form ? And whats Layouts should I use. Below is an example of what the form would look like.
    Name{Label}: {TextField}
    Address:{Label} {TextField}
    etc.. etc..
    all aligned. What is the best solution for this type of typical form. Currently I'm trying to utilize the BoxLayout nested but its very difficult to align the labels and the text fields or likewise the text fields etc.. Any help would be greatly appreciated.

    ParagraphLayout. it was designed exactly for this type of thisng
    label1 : textfield1
    label2:  textarea in scrollpane
               :  // text area occupies severals column (based on te preferred height)
    label3:  textfield2
               :  textfield3
    label4:  combobox1 gap label5: combobox2
    // the code to generate th edata entry form abouve using ParagraphLayout
    JPanel p = new JPanel(new ParapgraphLayout());
    p.add(label1, ParagraphLayout.NEW_PARAGRAPH);
    p.add(textfield1);
    p.add(label2, ParagraphLayout.NEW_PARAGRAPH);
    p.add(textareaScrollpanel1);
    p.add(label3, ParagraphLayout.NEW_PARAGRAPH);
    p.add(textfield2);
    p.add(textfield3, ParagraphLayout.NEW_LINE);
    p.add(label4, ParagraphLayout.NEW_PARAGRAPH);
    p.add(combobox1);
    p.add(Box.createHorizontalStrut(10));  // 10  pixel gap
    p.add(label5);
    p.add(Box.createHorizontalStrut(10));  // 10  pixel gap
    p.add(combobox2); you can get the Paragraph layout at: http://www.jhlabs.com/java/layout/
    they also have other nice layout (like GridLayoutPlus - similiar to GridLayout, but allows different row and column size)

  • Any Suggestions for CGI Script for Web Slide Slow?

    Do you have any suggestions for creating a slideshow for my web site, 6 same-size jpgs that rotate automatically?
    I think I prefer a cgi script. However, I've tried two that don't work on Firefox or Safari. One developer tells me that he can see the rotating photos.
    I'm also open to software to create this. However, I'd prefer to use html code.
    Of course, it must work cross platform.
    Any suggestions?
    G5 Quad; Mini Mac; PowerBook G3; iPods   Mac OS X (10.4.8)   Using Dreamweaver 8

    Oh, what a beautiful baby! Is he/she yours?
    She is mine. At least that's what the Mrs. tells me!
    When you say gif, I am assuming that you mean the
    format really must be gif and not jpg. Is that
    correct?
    Yes, the file is a GIF file. It's actually an animated GIF file, meaning that the images that you see are all frames of animation in a single GIF file. There are a lot of apps out there that can create animated GIFs. I happen to use Adobe ImageReady because that is what is on the hard drive.
    Can you give me a hint about the dithering issue? Do
    I dither or not dither, that is the question.
    This is the major downside of the GIF format. It is a really old format...from back in the CompuServe bulletin board days...maybe older. Anyways, it is my understanding that GIFs can only hold information for 256 colors....any 256 colors, but no more and no less. So now in the days of "millions of colors" jpegs, you can imagine that a 256 color palette is limiting. But if the colors of your images are sufficiently close, its possible that 256 colors makes for perfectly acceptable images across all images. This is the one variable of converting images to GIF that can make it or break it for you. If your image has a pretty broad tonal range...like fleshtones or any other gradient...then 256 colors is going to represent things poorly. Then you will get dithering artifacts which is like averaging errors...colors are close...as close as possible...but not close enough to make a smooth gradation. Anyways, that's my layperson's understanding.
    But for some images, it looks just fine.

  • CGI Script for Go Daddy hosting

    I just transferred my website to GoDaddy web hosting. I m
    trying to figure out what script or code to use for my Form, but
    nothing seems to work. Does anybody know about this? Also, what to
    put into the Property Inspector for Form Action and Method and Enc
    Type. Many,many thanks!

    Just ignore the naysayers?
    Why? Are our experience with GoDaddy invalid, trivial or a
    fluke compared to yours?
    "With difficulty on the way"..... Why? Is this something that
    might have been avoided without so many restrictions on server
    functionality? I had some very friendly reps there try to help, and
    they were great, but they couldn't resolve a some "known" issues.
    Is the "difficulty" you experienced something a person new to
    building websites would find more difficult than you did? Do you
    use other hosts where you can say you have experienced the same
    difficulty?
    Please don't take me wrong.
    I used to be in the same position as you. I had a few sites,
    including 2 Cartweaver sites, hosted there with no problem. I think
    the reason I had no problems was in large part to the fact that I
    didn't need support in setting up things like database connections
    and so on. I was able to figure out how to do things on the servers
    from experience, with some work arounds.
    I do remember thinking a few times that it would have been
    very difficult doing some of the things I did if I were still
    learning, especially with a couple ecommerce sites. That's the
    point.
    I saw many complaints and issues in this forum as well as
    others, including Cartweaver's newsgroups, about dynamic sites
    there and I didn't "ignore" all of the naysayers even though I
    hadn't had trouble yet.
    I figured there must be some truth to their experience. They
    certainly weren't making things up.
    Besides, who was I to say my experience was the norm and
    others should expect the same because that's how it is for me?
    I did have better support and service, with less "difficulty"
    and restrictions at a few other hosts I was using, but it wasn't a
    big issue as I wasn't having major trouble at GD.
    Unfortunately, my luck ran out.
    However, because I didn't ignore the naysayers I had decided
    to test them longer before migrating more sites. It's a good thing
    I did, and I'm grateful to those who shared their experiences,
    because I only had to move a few sites off and not many more.
    The latest was a "known issue" on a certain server causing an
    HTTP error intermittently, for hours. For weeks, I went back and
    forth as it was "fixed" and reappeared again. This was a Cartweaver
    site.
    Obviously, the client pulled the plug. You can't hang an
    "Open intermittently" sign on an online store.
    The site was moved, with no changes what-so-ever to any code,
    to another host. The problem immediately disappeared, and has
    remained gone.
    I do still have 1 CW site hosted with them that hasn't had
    major trouble yet. It's on another server and low traffic.
    The point is, I have experienced trouble too many times that
    cost time and money and shouldn't have.
    There is value to this experience, and others who have had
    the same.
    You can certainly say you've had no trouble, and that's
    great. There's value in that, as well.
    However, telling someone relatively new to just "ignore"
    issues that others have had doesn't make sense to me.
    If some web developers have reported trouble, isn't it a good
    idea to do some research or at least see how one site works there
    for a while before putting up a lot more?
    Experiences others have had, especially when they are trying
    to help someone new, shouldn't be ignored just because yours is
    different. You can't guarantee the person will have the same
    experience as you, so all points of view should be listened to and
    weighed.
    Take care,
    Tim

  • Include type scripts for validating forms

    hello,
    I'm new to AIF, but to internet development. here is my question.
    I have a template of a form that our HR department use in 94 different variations.
    I will use the AIF with the form and data merging to be presented to the end-user. they will have the ability to fill online or download with fill option.
    My concern is the client side validation for each form variation. Is there a way to include a client side script file to eliminate an unique form for each variation or having the specific script in each form.

    my guess- the recipient email address is using spam assassin
    or a similar
    filter. It's seeing the default first line of the email and
    giving it two
    points on it's rating system thinking it's the old matt
    wright formmail 1.6
    script.
    the fix- if it's a script you installed and can touch and
    modify, is to edit
    the script so it's got a different first line in the body of
    the email.
    If it's a host installed system wide script you can't touch-
    install your
    own like nms-formmail or phpformmail (and edit the first line
    of the
    outgoing email's body text)
    This is the line to search for in the script:
    Below is the result of your feedback form. It was submitted
    by
    change it to something else. Watch out for any characters you
    might need to
    escape in that scripting language like ' when making the
    edit.
    further sluthing- ask the client to send you the full source
    of the incoming
    email, or the email that's been sent to their spam box so you
    can see the
    email headers. Spam Assassin put it's scores in the header
    and you can see
    why it's been trashed.
    > interesting read, but my problem is different. The
    results of the form are
    > being flagged as spam by the people receiving.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • CGI Scripts for Mysite website?

    Hi everyone. I'd like to thank you in advance if you give me any information about my following question. I own webspace from Verizon. I don't use the SiteBuilder, but instead I make my webpages from CSS, HTML, Javascript, ect. and use FTP to transfer the files onto my webspace. I have read that Verizon lets users incorporate pre-made CGI scripts into their page, so I thought I'd give it a try. I have been trying to use the "Guestbook" script, following exactly what they say to do to install it. But once I have installed everything into a page and FTP it to my webspace, it gives me a 404 Error, saying it can't find "../guestbook.exe" (after submiting my comment). Can anyone help me with this problem? I followed these directions exactly:
    http://www.verizon.net/central/vzc.portal?_nfpb=true&action=Using%20the%20Guestbook%20Script&_pageLa...
    Please help me. Thank you.

    It seems they have wrong info on there.
    This is the code on my site using the site builder.
    <p>
    <!--gem:tlx.tlx.guestbook-->
    <p align="center"><font face="Arial,Helvetica,sans-serif" size="1" color="cccccc"><b><a href="http://svcs.verizon.net/svcs/dcc.jsp?tpage=upub:index.html&amp;dsrc=gb:842877486280280279/DS_TLXGuestbook_1264975106653.xml&amp;partner=verizon&amp;pcon=yes&amp;xsl=dccfile:gb.xsl&amp;obpp=zlrc2O5cwtTqxMLU6M5QntrawH5c5PrOaGL6yg..&amp;ret_url=http://mysite.verizon.net/your_use_rname/index.html&amp;page=sign"><font color="cccccc"><img border="0" src="/imagelib/sitebuilder/gem/guestbook/sign_my_guestbook_gray.gif"></font></a>&nbsp;&nbsp;<a href="http://svcs.verizon.net/svcs/dcc.jsp?tpage=upub:mypersonalsite/index.html&amp;dsrc=gb:842877486280280279/DS_TLXGuestbook_1264975106653.xml&amp;partner=verizon&amp;pcon=yes&amp;xsl=dccfile:gb.xsl&amp;obpp=zlrc2O5cwtTqxMLU6M5QntrawH5c5PrOaGL6yg..&amp;ret_url=http://mysite.verizon.net/your_user_name/index.html&amp;page=1"><font color="cccccc"><img border="0" src="/imagelib/sitebuilder/gem/guestbook/view_my_guestbook_gray.gif"></font></a></b></font>
    </p>
    <!--end gem--><!--"''"-->
    </p>
    Where your_user_name is what ever my user name is (In your case, what ever your user name is).
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • Script for simple quiz

    I'm working on a pilot for an educational DVD with a simple quiz.
    The idea is to match a word in the left column with another word in the right column. E.g. in the quiz Opposites, the first 'question' is the word 'Large'. From the other column the viewer has to select 'Small' from among 5 other words. When the selected word is correct, you automatically proceed to question 2; if you selected the incorrect word, you have to try again.
    Can anyone give me a hint in the right direction and approach? Thanks...
    G   Mac OS X (10.4.8)  

    There can be a few ways to approach this - not sure if you want people to be able to navigate back to column 1 after they select the column 1 choice ( or do you meean there is just one selection in column 1?)
    Going with the assumption there is just one thing in Column 1 (just Large) and Coolumn 2 has the 5 choices, the general way is as follows:
    Make the buttons in order over the choices
    Then this script (My comments italics) which is attached as the action for each button
    // moves the value of the button which was selected, which is SPRM 8 into a GPRM. I just happen to choose GPRM 0. Make sure the buttons are made in order from top to bottom when you create them, or the buttons will have different values
    mov GPRM 0, SPRM 8
    // SPRM 8 is in multiples of 1024, such as 1024, 2048, etc. Makes them 1-5 to make it easier to work with
    div GPRM 0, 1024
    // assume button 4 covers the proper answer, if correct goes to where you want the user to go, otherwise jumps back to the menu for the question
    jump MenuQuestion 2: if (GPRM 0 = 4)
    Jump MenuQuestion 1
    So the whole script is:
    mov GPRM 0, SPRM 8
    div GPRM 0, 1024
    jump MenuQuestion 2: if (GPRM 0 = 4)
    Jump MenuQuestion 1

  • Cgi script for VMS.

    Hello Folks,
    I want sample code for CGI in VMS operating system.
    Pls if anybody has the script pls post it here.
    Thanks,Raghu.K

    Raghu,
    I think you have landed on the wrong forum. This one is for Oracle HTML DB.
    Sergio

  • Is there an alternative html script for embedded forms?

    I recently read the guidelines on embeding forms on a site:
    http://forums.adobe.com/docs/DOC-1991
    Previously we were using iFrame but the trouble-shooting guide suggested to use the code generated from the distribute tab. However, I noticed it used the scipt html tag which is prohibited on the site I'm using to display the form. What other alternatives are there to overcome this issue to enable to have the form correctly displaying on the site?

    Sorry this change has caused you issues. We’ve had a lot of people embedding forms improperly. When it’s done without the embed code the form often doesn’t work properly (its cropped on the side/bottom, submit doesn’t work, etc). Because of that, we now catch the improperly embedded form and tell people the right way to embed it. 
    I’m talking with my engineering team to see if there is anything we can do.
    Randy

  • How to Enable Custom Java Scripts for forms in Planning 11.1.2.2

    I am working on Planning 11.1.2.2 right now.
    Planning admin guide says, there is no explicit requirement to enable java Script for planning forms.
    I set simple alert to see text "Hello World" in function validateForm() function in custom/validateData.js file - to see and test that alert when I save data for my selected application/form.
    Closed javascript file and workspace, and planning application web page. Since I have not to do anything new to enable this java script alert, I opened that form and saved data to see if I can see my alert.. I got no alert, except "data are saved".
    Has anything changed since last version? Am I missing something? Or, do I need to recycle services to get this alert?
    thanks in advance.

    Thanks guys, for your quick replies..!
    Not sure what I missed, but I still have a hard time finding my "Hello World" alert.
    What I did, is here.
    a. Cleared all cookies and temp files from IE.
    b. Updated validateData.js file from ear / war files using 7-zip program at given path from your link.
    c. Stopped EPM services
    d. Dropped tmp folder.
    e. Started EPM services and let system deploy ear file (with my java script code).
    All services are up. I can see EAR file deployed and java script file ValidateData.js has all my changes in new tmp folder now.
    I am able to open my application and form.
    But, my "Hello World" alert is still not appearing. Form is saved and saw message as usual.
    One exception I noticed in my path. I have ....user_projects\domains\EPMSystem\servers\EPMServer0\.... in place of ....user_projects\domains\EPMSystem\servers\Planning_0\.... in my path. Planning_0 is replaced by EPMServer0 in this version. Rest is all same.
    Any clue? thanks in advance,

  • New to Flash, create a flash form which is emailed using CGI script when submit button is pressed

    I'm trying to build a form in flash that is emailed using CGI
    script. I'm just lost and confused and I just can't seem to figure
    this out.
    This is the CGI coding for HTML and I just need to convert it
    to use in CS3:
    <form action="
    http://www.hostmonster.com/monstermail"
    enctype="multipart/form-data" method="POST">
    Name: <input type="text" name="Name"><br>
    Email: <input type="text" name="mailfrom"><br>
    Phone: <input type="text" name="Phone"><br>
    Service: <input type="text" name="Service"><br>
    <input type="hidden" name="sendtoemail"
    value="[email protected]"><br>
    <input type="submit" value="Send Email">
    </form>
    This is a link to what I'm working on:
    http://www.alternativesolutionsforyou.com/contact.htm

    OK, sorry....no more errors when I test the movie but when I
    test it live....nothing happens???? Here's the link again:
    http://www.alternativesolutionsforyou.com/contact.htm
    Code as it is:
    lv=new LoadVars();
    lv.Name=name.text;
    lv.mailfrom=email.text;
    lv.Phone=phone.text;
    lv.Service=service.text;
    lv.sendtoemail="[email protected]"
    yourSubmitButton.onPress=function(){
    lv.sendAndLoad("
    http://www.hostmonster.com/monstermail",lv,"POST");
    lv.onData=function(){
    // data successfully sent
    // this will execute if your cgi script returns something
    after executing
    I haven't adjusted what happens after you his the submit
    button yet.....just trying to get the email working.

  • Multiple form recipients from CGI script

    Is there any way to code a cgi script to deliver the form to
    more than one recipient. I've tried a couple of things and can't
    seem to make anything work.

    So the mail server you are sending through does address verification.
    Maybe you should explain to them that it is a pointless exercise, as many mail servers on the internet will not allow verification. Thus, you will reject legit mail.
    I don't know if your CGI script can be modified as I have never seen it and am no psychic
    You can create a www user and set the shell to none. The user must be allowed to login, just don't give it a shell.
    Alternatively, check if your script will allow for authenticated SMTP and ask your sysadmin to allow you through when authenticated.

  • LoadVariablesNum on button to access cgi script mail form

    Greetings: I've used this method many times in the past to create an email form in a movie clip with a "send button" that accesses a perl, cgi script to email text input fields. It worked fine in past versions of Flash, but now I'm using Flash CS3 (v9.0, AS 2.0). I've tried 3 different cgi scripts I found online for this purpose and am sure the configurations for sendmail server & perl bins, etc are correct. All of the other "if" and "else" statements on the button work fine. But I can see a Safari (browser) error message saying POST was not used, but clearly it is. I'm trying to trouble shoot whether the problem is from the flash button or the cgi script.
    Has something changed in Flash CS3 from previous versions, where I'm certain it has worked before???
    Here is my button code:
    on (release) {
    //Make sure the user filled in all the required fields.
    if (name1 ne "" and name2 ne "" and subject ne "" and email ne "") {
    //Check to make sure the email address includes and @.
    i = "0";
    validmail = 0;
    while (Number(i)<=Number(length(email))) {
    if (substring(email, i, 1) eq "@") {
    validmail = 1;
    i = Number(i)+1;
    //If there's no @ in the email go to the error page.
    if (Number(validmail) == 0) {
    gotoAndStop("error");
    } else {
    //The line below assumes the script is in the same directory as the HTML page.
    loadVariablesNum("http://www.companyname.com/cgi-bin/FormMail.pl", 0, "POST");
    //Go to the confirmation frame.
    gotoAndStop("thankyou");
    } else {
    //if the user left required fields blank, show them an error message.
    gotoAndStop("error");
    Here is the error message I can access on Safari>window>activity:
    "The HTML form fails to specify the POST method, so it would not be correct for this script to take any action in response to your request.
    If you are attempting to configure this form to run with FormMail, you need to set the request method to POST in the opening form tag, like this: <form action="/cgi-bin/FormMail.pl" method="post">
    Why isn't the command from the button in the Flash swf file, being recognized by the html page?
    Thanks in advance for any help.
    Janis

    in version 6, case didn't count. after version 6, it counts.
    so, gotoandPlay(3), used to work but, not now.  you need to use gotoAndPlay(3).
    also, undefined numeric variables were assigned a default value of 0 with flash 6 and prior.  not now, they're undefined.  so, watch for code like
    while(var1<1){
    do something
    var1++;
    where var1 is never initialized.
    about policy files:  check the security class'es loadPolicyFile() method.

Maybe you are looking for

  • How do I get song lyrics entered in the GetInfo song link to sync properly with my other devices?

    I'm running iTunes on a Windows 7 machine, and sometimes the lyrics sync up properly and sometimes not; sometimes only on one device, and not the others. Syncing via wifi or manually, or from the computer based iTunes or from the actual device produc

  • Poor Performance with Webi on top of BW - Large Navigational Attributes

    We have recently developed a reporting model based on having a BW cube of approx 20 million records. This has 2 very large line item dimensions (one 14 million records, on 6 million records) that both have navigational attributes stored against them.

  • MaxDB 7.6.05.09 Create db inst fails on 'auto_extend'

    Hello I have loaded MaxDB 7.6.05.09 and DBMGUI 7.6.00.37 (148140) on Windows Server 2003 SP2. I try and create a database instance with the DBMGUI but it fails on 'auto_extend' with return code -24805. Here are the steps I did: Start DBMGUI Use the C

  • Oc4j is not working

    hi, i have started oc4j service & when i run my form it shows "page cannot be displayed" on browser . when i see oc4j it shows C:\Documents and Settings\Administrator>D:\OraFR\jdk\bin\java -Xbootclasspath/p: D:\OraFR\vbroker4\lib\vbjboot.jar -Doracle

  • Cant get IMovie to reconize camera

    Hi everyone, I cant get Imovie to reconize that I have my camera plugged in. I set the camera mode to VCR (which i think it is just on PLAY), plug the camera in and start Imovie. Then in IMovie click the switch onto camera in the bottom left hand cor