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.

Similar Messages

  • Scripting  for Form Guides in ES2?

    Hi,
    I started developing  guides in ES2 and able to genarate the  some  examples successfully.
    I am able to pre populate  the data  into Forms.
    But I  paused writing the script for form guides. Please  let me know good material for scripting  the form guides in ES2.
    And   more thing is how to draw static Table (normal table) on the form guides ?
    Thanks
    Praveen

    I'm not aware of any tutorial. The documentation team has not created one, but there is an overview video here:
    http://my.adobe.acrobat.com/lces2fsp_guide_based_applications/
    The help on how to create guides is here:
    http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/003610.html
    How to use a guide in a process is documented in the Creating Human-Centric Process section of the Workbench ES2 help:
    http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/000217.html
    Scott

  • 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?

  • 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.

  • 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,

  • 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

  • Linux Startup script for Forms Services 11g with Weblogic

    Hi,
    Does anybody know where I can find info about the startup script process for Forms Service 11g under linux? I can't find it googling it... I think I have to startup weblogic first... isnt it ? or opmnctl works alone ?
    In 10g we just need to set env vars and then "opmnctl startall" and if we need enterprise manager "emctl start iasconsole" ... what about on 11g?
    Regards
    Ricardo

    You can start directly the WLS_FORMS without starting the Admin and Node manager ..
    I think if you go through this link , you will get more information ..
    Re: Forms 11g - Installation steps for a developer machine

  • 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 Form validator in head causes error

    When I use the Window/Behaveiors/ to create a form validator, Dreamweaver CS5 puts script in the Head of page, and seems to work ok. But when I validate page with W3c it says there are errors with code and as Dreamweaver created this I have no idea what to do to put right, so could someone please help. This is code generated by Dreamweaver, all other pages have past with flying colors!
    <script type="text/javascript">
    function MM_validateForm() { //v4.0
      if (document.getElementById){
        var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
        for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
          if (val) { nm=val.name; if ((val=val.value)!="") {
            if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
              if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
            } else if (test!='R') { num = parseFloat(val);
              if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
              if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
                min=test.substring(8,p); max=test.substring(p+1);
                if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
          } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
        } if (errors) alert('The following error(s) occurred:\n'+errors);
        document.MM_returnValue = (errors == '');
    </script>

    If the script is working fine in all browsers, you could put it in an external JS file and link to it, then the W3C validator won't find an error.
    If you don't know already, learn about how to do this:
    http://www.hypergurl.com/jsfiles.html

  • PHP script for form to upload 2 files to FTP

    Hi,
    I have scoured the internet for quite a while now looking for
    a free php script that will enable me to:
    1. Put a form on a page that has two uplaod boxes for a
    client to upload two file svia theeir browser
    2.The files will be one image (jpg) and one pdf
    3. The files will always (each day) be called headshot.jpg
    and resume.pdf
    4. The script must allow the files on the server to be
    overwritten by the new files of the same name each day
    I have found MANY scripts, som eof which i can get to work,
    but they were too sofisticated (checked for many things taht i was
    not concerned for, didnt allow files to be overwritten, changed
    directories of where the files were uplaoded to, changed the file
    names automatically) and many that i wasnt able to get to work.
    I just need something simple like the above. Unfortunately I
    am no scripter, so when i tried to decifer the ready made scripts
    and rearrange them to suit my needs, i messed things up.
    Thanks immensely in advance of anyone who canb offer m eany
    help or point me in a better direction. I wasnt sure where to post
    this query/help plea.
    Cheska

    Go to
    http://www.php.net and read about
    file uploads there. You will find
    several scripts that will work just fine for you.
    Or try this -
    <?php
    //places files into same dir as form resides
    if(isset($_POST['Submit'])) {
    $target=$_SERVER['DOCUMENT_ROOT']."/uploads";
    foreach ($_FILES["files"]["error"] as $key => $error) {
    if ($error == UPLOAD_ERR_OK) {
    $tmp_name = $_FILES["files"]["tmp_name"][$key];
    $name = $_FILES["files"]["name"][$key];
    if(move_uploaded_file($tmp_name, "$target/$name")}
    print "Upload completed";
    else
    print "Upload failed";
    ?>
    <body>
    <form action="" method="post"
    enctype="multipart/form-data">
    <p>Pictures:
    <input type="file" name="files[]" />
    <input type="file" name="files[]" />
    <input type="submit" name="Submit" value="Send" />
    </p>
    </form>
    This assumes that the incoming files will be properly named,
    and that the
    upload destination is a folder called "/uploads".
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "ccesca" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi,
    >
    > I have scoured the internet for quite a while now
    looking for a free php
    > script that will enable me to:
    >
    > 1. Put a form on a page that has two uplaod boxes for a
    client to upload
    > two
    > file svia theeir browser
    > 2.The files will be one image (jpg) and one pdf
    > 3. The files will always (each day) be called
    headshot.jpg and resume.pdf
    > 4. The script must allow the files on the server to be
    overwritten by the
    > new
    > files of the same name each day
    >
    > I have found MANY scripts, som eof which i can get to
    work, but they were
    > too
    > sofisticated (checked for many things taht i was not
    concerned for, didnt
    > allow
    > files to be overwritten, changed directories of where
    the files were
    > uplaoded
    > to, changed the file names automatically) and many that
    i wasnt able to
    > get to
    > work.
    >
    > I just need something simple like the above.
    Unfortunately I am no
    > scripter,
    > so when i tried to decifer the ready made scripts and
    rearrange them to
    > suit my
    > needs, i messed things up.
    >
    > Thanks immensely in advance of anyone who canb offer m
    eany help or point
    > me
    > in a better direction. I wasnt sure where to post this
    query/help plea.
    >
    > Cheska
    >
    >
    >

  • 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

  • Scritping  for Form Guides  in ES2 ?.

    Hi,
    I am able to do scripting for form(pdfs) and  developed some interactive pdfs.
    As per new requirements, I would like to develop some form  guides  which have   rich look and feel than forms.
    I developed some guides but I am  not able to write scripting for guides.
    I am able to  do  small  things  like  sum  of  user enetered values. But i did  not any clue   on how to  write  logical  expresions like
    if conditions and  showing alert  messgages.
    Please let me know any materail on how to write scripting   for guides. Please  help  me ASAP.
    Thanks
    Praveen

    I'm not aware of any tutorial. The documentation team has not created one, but there is an overview video here:
    http://my.adobe.acrobat.com/lces2fsp_guide_based_applications/
    The help on how to create guides is here:
    http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/003610.html
    How to use a guide in a process is documented in the Creating Human-Centric Process section of the Workbench ES2 help:
    http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/000217.html
    Scott

  • 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.

Maybe you are looking for