How Do I Submit a Form to a Server?

Overview
- I am working on forms for two seperate websites.
- I have the server information for website1, but I don't
have the information for website2's server at the moment.
- I set up a form on dreamweaver 8.0 and I am trying to get
the user to submit it to my server.
Questions:
1. Do I make the form a PHP file since I want the user to
submit it to a server? If so, I have PHP/ MySQL set up on my
webserver for website1. I hear that email is a very unreliable/
unsafe way to submit forms.
2. What is the code for this or is there a tutorial one of
you might know?
3. Website1 is an FTP and I believe that website2 is a local
server. Would there be a difference in the code besides the
rootfolder?
4. When someone submits a form to the server, is there a new
file that is created in the rootfolder or is it manifested in the
database somehow? I am very unfamiliar with databases.
I have searched over and over again in google and these
forums. All I can find is how to email a form. Even when I tried
that, all I get attached in the email is an .att file that I can't
open unless I download some rogue program that I really don't
trust. I feel submitting to a database is the way to go. Please
help me.
-- Carrion Misery

What you need to find out is what server side scripting can
be used on the
hosting. ASP or PHP or ?
What does the hosting's FAQ/support pages say about form to
email scripts?
Is there a hosting control panel or CPanel? If yes- look in
there.
If you can use PHP scripting, here's a quick list of
instructions for a
particular script:
If you don't want to create the php script yourself- here's a
very short set
of instructions to get a free script working in a few
minutes. Refer to the
docs folder in the expanded zip file for more info.
1)go to
http://boaddrink.com
-->phpformmail
download it.
extract the ZIP file.
2) open formmail.php in dreamweaver
Make the following changes (in code view, turn line numbers
on)
2a)
line 4,
define('CHECK_REFERER', true);
change to:
define('CHECK_REFERER', false);
reason: too many people use a firewall or Norton security to
restrict this.
2b)
Line 43
$referers = array('www.example.com', 'example.com');
change to the url address of your web site.
reason: this probably isn't needed since we just turned the
referrer
checking off. but change it anyway.
2c)  *this is to hard-code the recipient address into
the php
file, where it is totally invisible *
Line 46
$recipient_array = array();
change to:
$recipient_array = array('me' =>
'[email protected]);
**of course, replace [email protected]  with
the email address
you want to receive the form data
reason: this sets the email address the form results will be
sent to.
2d) give the script a default "From" address to use.
Go to line 41
Change:
define('FROM', null);
to:
define('FROM', 'Example Name <[email protected]>');
substituting your name and email address.
3) now do a File-->Save As and save this file to within
this Local Site
folder. save it as anythingyouwant.php
4) in dw's File Panel, find anythingyouwant.php and upload it
to the remote
site.
5) Now open your form html file in dreamweaver,
5a)click the mouse into the form area, and select the
<form> tag on the
lower left margin of the design window.
In the Property Inspector, it should now show the properties
of the <form>
tag. In the Property Inspector, to the right of the ACTION
line, click the
folder icon and browse to and select the anythingyouwant.php
file
you've saved to within this site.
5b) now go to dw menu-->Insert-->Form
Objects-->Hidden Field
This inserts a hidden form field.
In the property inspector, change the NAME/ID of this field
to: recipient
And the VALUE of this field to: me
the code should look like:
<input name="recipient" type="hidden" id="recipient"
value="me">
This tells the script to use the "me" recipient_alias value
as the email
address to send the form to.
5c: Do you have a form field to collect the user's email
address?
If yes, if this field is named exactly "email" then the
script will use the
user's email as the reply to in the outgoing email
6) Save and upload the form page.
Try the form from the website.
Optional:
1-make a new page for a thank you for submitting message.
In the form, insert another hidden field.
Name: redirect
Value:  the full absolute
http:// address to the new thank you page.
If you don't set a redirect value- the form script will build
a "thank you,
here is what you submitted" page. If you want to use that
dynamic page-
upload the .css file that it uses.
2- If you have a field in the form to collect the visitor's
email address,
IF you name this field  in the form exactly  
 email   then the visitor's
email address will be the Reply To address in the outgoing
email.
There are 30 or so other optional form fields to control the
form- see the
readme in the docs folder. One of those optional control
fields is
verification.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/

Similar Messages

  • How do I submit my form as PDF in email?

    I just completed a PDF form with a Submit by email button, I was able to set the email id but when i press Submit by Email button, it attaches an XML. How do I make LiveCycle Designer save the form as pdf and attach it to the set email id? Help please

    Open your form in Acrobat Professional.  Using the Advanced pull down menu choose, "Extend Features in Adobe Reader".  You'll get a warning message which includes the following note - "Once reader enabled, certain functions,such as editing document content or inserting and deleting pages will be restricted." Read so you are sure this is what you want then choose Save Now.  Reader rights are now enabled.
    To answer your question on usage rights, I went right to the acrobate users group and copied their indepth explanation
    "To summarize the EULA as it relates to enabling PDFs, you are granted permission for enabling a PDF for a maximum of 500 uses. This means that if you post a PDF enabled form on your Web site and 500 people fill out the form, you're within the licensing agreement. If you enable a form where more than 500 people fill out and submit the form back to you, you're not complying with the licensing in the EULA. There are many uses for staying within the 500 limit. You might want to enable files used as a purchase order form, a travel expense form, a vacation leave form, etc. The form can be used by several Adobe Reader users many times, but needs to stay within the 500 use limitation.
    For a huge number of appliications this new enabling feature is designed for people who don't have industrial strength needs for forms distribution that require purchase of LRES. A charity golf tournament, a small conference, a PTA event, etc. are all likely candidates for using the new enabling features in Acrobat Professional."

  • How can I submit the form back to the server, then reload the page again

    Hi
    I have 2 comboboxes, one is already populated with data by the time the page is loaded. The second combobox will be populated depending on the value chosen from the first combobox
    I need to know how can submit the form to go back to the server with the selected value from the first combobox, get some data from the database and then regenerate the whole page again filling the second combobox with the collected data
    for example, here s my select tag:
    <select name="country" id="firstBox" onchange="populateSecondList()">
         <option value="" SELECTED>
         </select>
    <select name="city" id="firstBox">
         <option value="">
         </select>
    what should I have to add in the retrieveSecondOptions() function?

    declare a second combo box in a iframe and to iframe tag there is attribute to which you can sepcify the file name like one.jsp
    now call onchange event on first combo box and forward request to one.jsp

  • How to automatically submit a form without clicking the button?

    Hi,
    Is there any way to submit a form without clicking the button? Any idea is greatly appreciated.
    -Joey

    well if you are filling some textfields you can do a onchange call so you can submit the form, or use any of the existing functions to do that.

  • How to download PDF output forms to presentation server without display

    Hi All,
    My requirement is to download the Sales Order forms and save it in local system.
    I have created a custom program where I am passing a range of Sales Order no, Partner Function, Output type and Application as my input in selection screen.
    Logic:
    I am calling my Sales Order Abodeform using the FM: 'FP_FUNCTION_MODULE_NAME' and thereby I got the function module name of my form.
    Then I am calling the FM:
    Input to the FM:  
      ls_outputparams-nodialog = abap_true.
      ls_outputparams-authority = 'X'.
      ls_outputparams-getpdf = 'X'.
      ls_outputparams-dest = 'LP03'.
      ls_outputparams-nopreview = abap_true.
      ls_outputparams-reqimm = abap_true.
      CALL FUNCTION 'FP_JOB_OPEN' 
        CHANGING
          ie_outputparams = ls_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
    followed by,  CALL FUNCTION (FM name)
         EXPORTING
          archive_index        = toa_dara
          archive_parameters   = arc_params
          control_parameters   = ls_control_param
          mail_recipient       = ls_recipient
          mail_sender          = ls_sender
          output_options       = ls_output_param
          user_settings         = ' '
          is_nast                 = nast
          is_vbdka               = vbdka
          is_addres             = addr_key
        IMPORTING
          document_output_info = document_output_info
          job_output_info      = job_output_info
          job_output_options   = job_output_options
        TABLES
          it_vbdpa             = tvbdpa    "Item information
          it_vbdpau            = tvbdpau   "Subitem numbers
          it_vedpa             = tkomservp  "Contract Item Validity
          it_vedka             = tkomservh  "Contract Header Validity
          it_vedpn             = tkomservpn "Contract Item Cancellation Data
          it_vedkn             = tkomservhn "Contract Header Cancellation DA
        EXCEPTIONS
          formatting_error     = 1
          internal_error       = 2
          send_error           = 3
          user_canceled        = 4
          OTHERS               = 5.
    then ,  CALL FUNCTION 'FP_JOB_CLOSE'
        IMPORTING
          e_result       = ls_result
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
    then i am using the below FM to get the OTF data if any available.
    CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
        IMPORTING
          bin_filesize          = lv_binfilesize
          bin_file              = lv_bin_file
        TABLES
          otf                   = ls_output_info-otfdata-> i am not sure which data to pass here. i am getting sy-subrc value as 4.
          lines                 = lt_lines
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          OTHERS                = 5.
    Now I dont no how to link the PDF forms to below method.
    CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          bin_filesize = v_size
          filename     = D://x.pdf
          filetype     =   'BIN'
        CHANGING
          data_tab     = lt_pdf.
    Because in smartforms, we will convert the OTF output to PDF and that value is passed to GUI_DOWNLOAD FM as input (lt_pdf) , whereas in adobeforms the output itself is in PDF so i dont how to retreive the values from adobeforms and pass it to the above FM, so that I can save 'N' no. of sales order outputs in one PDF file.
    Kindly help me out in this.
    Thanks & Regards,
    Karthikeyan G.

    Hi Vishnu,
    I read the GUI_DOWNLOAD FM documentation, if I am trying to download binary type of file, It is mandatory to pass file size.
    In my case, since I am having PDF file, so i don't no how to get the size of the pdf file.
    As you said, if i use Convert_OTF FM, i don't have data to pass to the OTF and LINES tables.
    I am having values of PDF in xstring format in ls_output1-pdf, which i got using the below FM.
    CALL FUNCTION lv_funcname (FM name)
        EXPORTING
          /1bcdwb/docparams  = ls_docparams
          is_vbdka           = vbdka
        IMPORTING
          /1bcdwb/formoutput = ls_output1
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4.
    Kindly tell me what values i need to pass to the FM you mentioned in order to get the size of the file.
    Thanks & Regards,
    Karthikeyan G.
    But still I am not sure, how the pdf output is coming for single input whereas if i give in a range, its failing. In single input, i am not giving binary file size still the output is coming.. but for range its not. Kindly help me out in this.

  • How can I submit a form that depends on another form?

    Hello,
    I have a jsp with 2 different forms. The one is a Login form and the other one does some calculations.
    In my servlet I want to be able to proceed with the calculation form (when I click submit) only if someone is logged in.
    How can I do that? Any suggestions please?

    Actually what I did is when I submit the calculation form in my servlet I am requesting the login bean ( this is where I store the username and password if a customer logs in, plus a boolean variable to keep track if someone is logged in or not) like that:
    Login login = (Login)session.getAttribute("login");
    But I want somehow to get the Bean boolen variable and check if it is true or false, but I don't know how to do it. I did the following and it didn't work:
    //create a new boolean variable to store the Bean boolean
    boolean checkLoggedIn = request.getIsLogged();
    Any suggestions?

  • How do I submit a form as e-mail in xml and pdf form?

    Hi,
    can I set up the submit button to send the form data as xml and also include a copy of the filled out pdf-form?
    I can make it work whith either xml-file or pdf-form, but not both at the same time.
    Hope anyone can help.
    K

    I know I can import data to a blank form in Acrobat Pro. Is it possible to call Acrobat from the command prompt?
    It would be really fine, if we could make Acrobat work together with our in house systems. Or is there another way to import data to a blank form?
    As I see it LiveCycle Forms is not an option, because the form data will be handled in a closed enviroment.
    K

  • How do I submit a form to a LC process using the process fields component in LC Designer

    I have a PDF Form with the Process Fields component attached.<br /><br />In the FSSubmit component, I have set the URL to <br />http://localhost:8080/soap/services/SAPS_Submission?wsdl, <br />where SAPS_Submission is the name of my process.<br /><br />I open the form through a Flex app, fill out the form and press submit, but get the following error:<br /><br />  <?xml version="1.0" encoding="utf-8" ?> <br />- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><br />- <soapenv:Body><br />- <soapenv:Fault><br />  <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode> <br />  <faultstring>no SOAPAction header!</faultstring> <br />- <detail><br />  <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">dtross</ns2:hostname> <br />  </detail><br />  </soapenv:Fault><br />  </soapenv:Body><br />  </soapenv:Envelope><br /><br />The LC process has the schema for the form as an input variable, which is used in the execution of a insertSQLStatement.<br /><br />My knowledge of the process fields component is sketchy at best, but from what I understand, I can use it to submit to workbench without using a servlet?<br /><br />Any help with getting the data from the form to the process using this technique, or clarification about what I should actually be doing would be greatly appreciated...<br /><br />Thanks<br /><br />Ross Malan

    The process fields are ONLY needed if you're planning to use the form offline or through email. If you submit the data back to a servlet, you just need to put a submit button on the form.
    Jasmin

  • How do users submit a form?

    Once I post a link to my form and someone fills it out, how is it submitted?

    Yes, they will be able to fill-in and save, but it's important that you tell your users to use Adobe Reader. Some PDF viewers (e.g., ones built into browsers like Chrome and FIrefox) do not allow form filling, or if they do, don't have the same functionality as Reader does.
    As far as submitting, you can set up a button that when clicked will attempt to initiate an email. Whether this works depends on whether the user's system (email client in particular) is set up. User can always manually attach a file to an email that they initiate, so it's helpful to provide some instructions for this. Don't forget to include the email address.
    Finaly, email can't be considered secure, so don't use it for anything that needs to be secure. It also not the most reliable method.

  • How do I submit PDF Form data as an XML file rather than as an XFDF file?

    Can anyone tell me what I need to do to make this statement work?
    var cSubLine = this.getField("SurnameInits").value;
    var cBody1 = "Main Instruction data file attached";
    var cDest = this.getField("DestEmail").value;
    var cEmailURL = "mailto:" + cDest + "?subject=" + cSubLine + "&body=" + cBody1;
    this.submitForm({cURL: cEmailURL, cSubmitAs: "XML"});
    No file is attached the email that is generated so I assume there is something wrong with the submitForm parameters...If I change XML to XFDF, it works fine.

    Try this...
    this.submitForm({cURL: cEmailURL, cSubmitAs:"XML", cCharSet:"utf-8"});

  • How to connect a PDF form to SQL server database through web service?

    Hi,
    I'm new to LiveCycle designer. I have designed a PDF form in LC designer ES2, which suppose to take a personnel number and retrieve the personnel information from a SQL server database. Currently its working fine with XML data and a search button, but I need to securly connect to a database through web service. I know how to connect to a wsdl file through designer. What I need is a wsdl file to connect the form to database. For this purpose, is there any WSDL code to use as the web service?
    I really appreciate your help and advice.

    Hi,
    I'm new to LiveCycle designer. I have designed a PDF form in LC designer ES2, which suppose to take a personnel number and retrieve the personnel information from a SQL server database. Currently its working fine with XML data and a search button, but I need to securly connect to a database through web service. I know how to connect to a wsdl file through designer. What I need is a wsdl file to connect the form to database. For this purpose, is there any WSDL code to use as the web service?
    I really appreciate your help and advice.

  • How to submit a form in jsp from tag handler class

    I have a form in jsp.I created some more links in the tag handler class.Based on the link we click form action will take place.Now how can i submit the form in tag handler class for the links i created in that class.

    I have a form in jsp.I created some more links in the tag handler class.Based on the link we click form action will take place.Now how can i submit the form in tag handler class for the links i created in that class.

  • Submit a form conatining a Collection

    How do I submit a form conatining a collection?
    I can set the collection in the actionForm before the page is rendered and use the NetUI repeater to itterate thru the collection. The problem is that if I edit any of the fields, the collection is passed back as null while any other elecments of the form are passed back.
    Any Ideas?

    Are you able to solve this,I have the same problem I know this can be solved using indexed properties I dont how to approach.

  • Unable to submit a form

    Hi,
    We are trying to submit a form on the server. We get the following error when we try to do it. Appreciate if any one can help us.
      com.adobe.livecycle.formsservice.exception.ProcessFormSubmissionException: com.adobe.livecycle.formsservice.exception.FormServerException: XMLFormFactory, PAexecute failure: "(com.adobe.document.xmlform.ReturnStatus@76e676e6) Context node <form1[0].#pageSet[0].ScreenMaster[0].Save[1]> not found; can't execute script contained in node 'execEvent[0]'."

    It looks like your form has a script on an object called Save that it could not execute server side.  If it is a script that should only fire on the client make sure it is marked that way in the designer.

  • How to submit a form with checkboxes in a page flow?

    I'm having some trouble with a form that contains several checkboxes, and
    how to submit this form within a page flow...
    I have a JSP page containing a form with N checkboxes. The value and
    checked/unchecked status of each checkbox is generated from parsing an XML
    document. Here is the (simplified) code:
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <netui:form action="doUpdate">
    <x:forEach select="...">
    <input type="checkbox" name="id"
    <x:if ...>checked</x:if> value="<x:out ... />">
    </x:forEach>
    <netui:anchor formSubmit="true" action="doUpdate">Submit</netui:anchor>
    <netui:anchor action="doCancel">Cancel</netui:anchor>
    </netui:form>
    When this form is submitted, the checkbox values are lost -- the following
    code (in the action) produces an empty array:
    String[] prefs = this.getRequest().getParameterValues("id");
    I looked at the <netui:checkbox> tag, but it does not appear to give me a
    way to set the state and value (unless I've missed something).
    Can I submit a form without using a form bean? If I do use a form bean, can
    I set the state and value from my JSP?
    Any suggestions on how to do this (or insights into what I'm doing wrong)
    are welcome...
    -- Craig

    I am new to this, but I think this may solve your problem:
    I am not sure if this is what you are looking for, but you can create a LinkedHashMap
    with the req key/value pairs in the page-calling action in the pageflow and then
    pass that via a getRequest().setAttribute("myCheckboxes",myCheckboxHashMap);
    You can then access it in code using the optionsDataSource portion of the netui:checkBoxGroup
    - ie
    <netui:checkBoxGroup dataSource="{actionForm.thisCheckbox}" optionsDataSource="{request.myCheckboxes}">
    Hope this helps!
    m
    "Craig Coffin" <craig+1268fbec@nfld-dot-com> wrote:
    I'm having some trouble with a form that contains several checkboxes,
    and
    how to submit this form within a page flow...
    I have a JSP page containing a form with N checkboxes. The value and
    checked/unchecked status of each checkbox is generated from parsing an
    XML
    document. Here is the (simplified) code:
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <netui:form action="doUpdate">
    <x:forEach select="...">
    <input type="checkbox" name="id"
    <x:if ...>checked</x:if> value="<x:out ... />">
    </x:forEach>
    <netui:anchor formSubmit="true" action="doUpdate">Submit</netui:anchor>
    <netui:anchor action="doCancel">Cancel</netui:anchor>
    </netui:form>
    When this form is submitted, the checkbox values are lost -- the following
    code (in the action) produces an empty array:
    String[] prefs = this.getRequest().getParameterValues("id");
    I looked at the <netui:checkbox> tag, but it does not appear to give
    me a
    way to set the state and value (unless I've missed something).
    Can I submit a form without using a form bean? If I do use a form bean,
    can
    I set the state and value from my JSP?
    Any suggestions on how to do this (or insights into what I'm doing wrong)
    are welcome...
    -- Craig

Maybe you are looking for

  • Read multi-tabbed excel file attachments from Sender Mail Adapter.

    There is a need to read excel attachments from incoming email to a mailbox. We know we can use Sender Mail adapter to easily read .xml, .txt or .csv attachments. For excel attachments we know from SDN that you have to write adapter modules to handle

  • How to calculate the value of key figure by considering other char or kf

    Hi My requirement is like this: I have a key figure which gives me the planned issues and receipts but i know that if only from locaton is blank  and to loc is filled then that are receipts and if both the from and to location values are filled then

  • Value adjustment field in sq01

    Hi There is a requirement to fetch "value adjustment" field (in asset explorer)  in an asset report (designed through sq01, logical database ada). I tried abumn & value adjustment field gets populated for the asset but I can not trace out the table &

  • Creating an AAF file to move a PP CC 2014 project to Avid Media Composer 8.2.0

    Hi Fellow Premiere Pro users. I have a client who doesn't want to make the switch from Avid to Premiere Pro. He's had little luck transferring the project with AAF files, mostly because batch importing within Avid to relink the media can take hours.

  • Why are my Photoshop images interlaced?

    Is that just an effect FCP throws into to make the progressive frames look like the rest of your footage, or is FCP actually interlacing my Photoshop files? I can run some tests and figure it out but if someone has a quick answer, it'd be much apprec