ASP Form Problem

I need to create a form that is a single form page (i.e not
having different parts depending on differnt selections on
different pages) that gives the user different options depening on
previous selections.
Im using ASP Mailer as my form script.
So, the first option is to select an office from a dropdown -
depending on the chosen office, the form is sent to a specfic email
address. (A different recipient per selection made)
The second option is the thype of enquiry - this can be a
choice of 3, and depending on the answer generates one of 3
different enquiry forms for completion below.
Is any of this possible, and how?
Thanks
John

>Heres a link to the form Ive been requested to redevelop.
Yes, the process should be streamlined. I would create a
single form with all fields and then use the 'Enquiring About'
field to toggle the visibiity of the relevent fields. The form
processing script can then assemble the correct fields for the
email based on the value of the Equiring About field. And the
recipient of the field would be based on their office selection. So
you can do it all with 1 step and 1 form rather than 3.

Similar Messages

  • Problems installing ASP Form Captcha plugin

    Hi,
    I have just purchased and downloaded this plugin for Dreamweaver www.hotdreamweaver.com/asp-form-captcha . I am running DW MX.
    When I try to run the installation I get the following error message:
    'This extension package is not applicable with this version of Macromedia Extension Manager, you need a newer version of the package or the Extension Manager. Please visit the Macromedia Exchange website to obtain a copy. The extension will not be installed.'
    I cannot find anything of assistance and would appreciate it enormously if anyone could kindly point me in the right direction with this.
    Thanks
    Graham

    Sorry,
    found it, thanks anyway.
    Graham

  • Trying to create a XML file from an ASP Form

    I have an ASP form on my website that generates a XML data
    file, but there are a few problems with it. First, when I generate
    the file, it creates a new file every time a user clicks on
    "Submit" and I would like the data to just be appended to a
    particular, existing XML file...how can I append the data to the
    XML file? The code I am currently using is shown below.
    Secondly, I need to nest/repeat certain fields within the XML
    file. Basically, I want the XML file to look like this (I
    simplified the code for ease of writing, so don't bother with the
    syntax):
    <Recipe>
    <RecipeName>
    <SubmittedBy>
    <Ingredients>
    <Amount>
    <Unit>
    <Ingredient>
    <Description>
    <Directions>
    <Recipe>
    <RecipeName>
    etc...
    How would I create a form that would create that type of XML
    file? Think of a MS Access form with linked subforms, but I don't
    want to repeat more data than I have to.
    Any advice or help would be very appreciated!!! Also, if you
    know of a 3-party product that might solve this for me, I am open
    to that also!
    Thanks!!!
    ASP Page Code:

    You may find this article useful
    http://xmlfiles.com/articles/michael/appendxml/default.asp
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "kbeveridge6778" <[email protected]> wrote
    in message
    news:[email protected]...
    >I have an ASP form on my website that generates a XML
    data file, but there
    >are
    > a few problems with it. First, when I generate the file,
    it creates a new
    > file
    > every time a user clicks on "Submit" and I would like
    the data to just be
    > appended to a particular, existing XML file...how can I
    append the data to
    > the
    > XML file? The code I am currently using is shown below.
    >
    > Secondly, I need to nest/repeat certain fields within
    the XML file.
    > Basically, I want the XML file to look like this (I
    simplified the code
    > for
    > ease of writing, so don't bother with the syntax):
    > <Recipe>
    > <RecipeName>
    > <SubmittedBy>
    > <Ingredients>
    > <Amount>
    > <Unit>
    > <Ingredient>
    > <Description>
    > <Directions>
    > <Recipe>
    > <RecipeName>
    > etc...
    > How would I create a form that would create that type of
    XML file? Think
    > of a
    > MS Access form with linked subforms, but I don't want to
    repeat more data
    > than
    > I have to.
    >
    > Any advice or help would be very appreciated!!! Also, if
    you know of a
    > 3-party product that might solve this for me, I am open
    to that also!
    >
    > Thanks!!!
    >
    > ASP Page Code:
    >
    > Function saveXMLData(strPath, strFileName)
    >
    > 'Declare local variables.
    > Dim aXMLDoca
    > Dim aRootNode
    > Dim aFormVar
    > Dim aPI
    > Dim Item
    >
    > 'Create an XMLDOM Object
    > Set aXMLDoca = server.CreateObject("Microsoft.XMLDOM")
    > aXMLDoca.preserveWhiteSpace = True
    >
    >
    > 'Create the root node for the document
    > Set aRootNode = aXMLDoca.createElement("function")
    > aXMLDoca.appendChild aRootNode
    >
    >
    > 'Iterate the Request Object for all form data
    > For Each item in Request.Form
    >
    > 'Do not include the variable if it contains btn
    > If instr(1,item,"btn") = 0 Then
    > Set aFormVar =aXMLDoca.createElement(item)
    > aFormVar.Text = Request.Form(item)
    > aRootNode.appendChild aFormVar
    > End If
    >
    > Next
    >
    >
    > 'Append the processing instruction
    >
    > Set aPI =
    aXMLDoca.createProcessingInstruction("xml","version='1.0'")
    > aXMLDoca.insertBefore aPI, aXMLDoca.childNodes(0)
    >
    >
    > 'Save the XML document.
    > aXMLDoca.save strPath & "\" & strFileName
    >
    >
    > 'Release all references.
    > Set aXMLDoca = Nothing
    > Set aRootNode = Nothing
    > Set aFormVar= Nothing
    > Set item = Nothing
    > Set aPI = Nothing
    > End Function
    >
    > dim strFullFile
    >
    > Function DoesFileExist(ByVal strFullFile)
    > Dim objFSO
    >
    > 'If InStr(strFullFile, ":") = 0 Then
    > 'strFileNam = Server.MapPath(strFullFile)
    > 'End If
    >
    > Set objFSO =
    Server.CreateObject("Scripting.FileSystemObject")
    > DoesFileExist = objFSO.FileExists(strFullFile)
    > Set objFSO = Nothing
    > End Function
    >
    >
    > Const cont_Num=10000
    > Randomize
    > Dim intNumber
    > dim strFile
    > Dim blnYes
    >
    > blnYes=False
    >
    > Do Until blnYes=True
    >
    > intNumber=Int((Cont_Num * Rnd)+1)
    >
    > 'Create a random file name so you don't write over the
    same file
    > strFile="Recipe"& intNumber &".xml"
    >
    > strFullFile="c:\inetpub\wwwroot\xmltest\" & strFile
    >
    > if DoesFileExist(strFullFile)=False then
    > blnYes=True
    > End If
    > Loop
    >
    > ' The page starts here
    > On Error Resume Next
    >
    > ' Save the XML Data
    > SaveXMLData "c:\inetpub\wwwroot\xmltest",strFile
    >

  • Reset .asp form on page load

    I produced an .asp fillable form in DWCS5 using ASP Form 2 Email extension. Worked very well. Problem -- ONLY with IE. When I "submit" the form, I get the "success" page. If I hit the back button on the browser, all the form info is still there. I inserted the "pragma" meta into the <head> and it resolved the problem in all browsers EXCEPT IE. Any suggestions as to how I can force the cache to clear on page load? Or, maybe a way to disable the "back" button on the browser when the success page has appeared?
    Tom

    DelMar wrote:
    > DW8 / PHP / MySQL
    > How can I submit a form when the user enters the page? I
    want to emulate the
    > user selecting the page and clicking the submit button.
    Can this be done
    > easily?
    Perhaps you're not phrasing your question correctly, but what
    you're
    suggesting is nonsense/not necessary. A form is designed for
    user input.
    If you want the form to be submitted when the page loads, the
    user has
    no opportunity to enter any input before it's submitted. If
    you don't
    want any user input, there is no need to submit a form. You
    simply write
    a PHP script that runs automatically when the page loads.
    Forms play no
    role in your scenario.
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • Training: ASP/Forms/Database

    Where do I begin? I am a Dreamweaver user (approx 5 years). Now need to learn how to connect my site using DW to a SQL Database. Need an overall understanding/overview of asp/forms/database. The site I am working on has forms created in DW using ASP. How to get the data captured in the form to transfer to the database. Thanks much.

    Was this a bump?
    I also had to re-learn...I started using DW back when it was a Macromedia product (around 1998 and later) and the web standard was still static HTML and XHTML. Needless to say, those were the extent of my language repertoire (looked at ASP at the time but didn't feel it was necessary). I left the web design scene somewhere around the time MX2004 came out and had moved on to other things but stayed using the entire Macromedia design series to this date (I currently use CS5).
    I had recently been asked to help out with a website and it was suggested that it be a dynamic site with php and a mysql database. I wanted to hold on to my geek badge so I started learning php and mysql (still learning). I found that the best way to learn these languages is W3Schools. That is an awesome reference and education site and they've been around for 10+ years. I used W3Schools and jumped from php/sql forum to php/sql forum for help with specific problems I ran into with coding. Forums are indispensable for getting the help you need but you should be looking at language-speciic forums (php,ASP,sql,CF...). Fortunately php and mysql are relatively easy languages to learn and if you have any web design background, you should be able to self-learn with little difficulty. 
    Good luck.

  • Smart Form problem with address layout

    Hello everyone,
    I need your help please for a smart form problem. We need the address layout for great britain with street1, street2 etc. but currently street2 is alligned before street1.
    We are using the FM ADDRESS_INTO_PRINTFORM (SAP standard address node) and according to the documenation the layout for GB is different as we see it currently.
    We have checked the sold-to and all contact persons, they have as country GB and language EN maintained.
    In customizing for address screen layout there is nothing chosen (tested to set up Europe, but did not change anything).
    For the customizing 'specify my countries...' we have maintained GB as country with the address layout key 006, vehicle country key GB and language key EN.
    For the described setting shouldn't there be designed the address in our smart forms according to 006? Anyhting in customizing we missed?
    Thanks a lot for your answers.
    Torsten

    Hi,
    Try to use line priority of FM, below is a brief of documentation. You can read it more in FM documentation:
    Control Parameters
    See also the parameter documentation.
    ADDRESS_TYPE - Address type (from 3.0C)
    There are three types of address:
    Address type '1': addresses of firms or organizations; the address
    structure which is used in most SAP applications as 'Address'.
    Address type '2': address of a person
    Address type '3': work address, usually the address of a contact person
    in a company
    The default value SPACE for the address type is handled like type '1',
    and is needed for the upwards-compatibility of the function module.
    Which parameters are used for which address type is explained in the
    ADDRESS_TYPE parameter documentation.
    The three character "address layout key" of the recipient country (LAND1) controls which of the available country-specific routines is used to format addresses for the country in question. This key is stored in field T005-ADDRS and is entered in Customizing under Global settings -> Set countries -> Define countries, on the detail screen under "Address layout key".
    Keys for customer routines in the SAP enhancement SZAD0001 can be
    maintained via the transaction SM30 (extended table maintenance),table
    name T005A, in the customer name range, and be assigned in country customizing.
    The address attributes are passed in the structures ADDRESS1 (type 1), ADDRESS2 (type 2), ADDRESS3 (type 3) or ADRSWA_IN (type SPACE).
    NUMBER_OF_LINES (ADRSWA_IN-ANZZL)
    The number of lines available for the address layout. If the number of
    lines is not sufficient for the complete layout of an address, then
    lines are consecutively suppressed according to the rules of the country in question. Use the parameter LINE_PRIORITY (ADRSWA_IN-PRIOR) overrules the standard sequence in which the output lines are to be suppressed.
    LINE_PRIORITY (ADRSWA_IN-PRIOR)
    If not equal to SPACE, this field overwrites the standard sequence in
    which the lines are suppressed if the available number of lines ANZZL is
    insufficient.
    The standard sequence is defined as follows:
    Type 1:   'AP43HRT7I86LC2BS5O'       (GB:  'APRT4327I86CBS5LO')
    Type 2:   'APHRT7I86LCBS5O'          (GB:  'PRT7I86CBS5LO')
    Type 3:   'APF43HR7I86TLC2BSND5O'    (GB:  'APRT4327I86CBS5LNDIO')
    where (if they occupy a line of their own):
    A = Title
    P = Mandatory empty line 1
    F = Function of the contact person in the company
    4 = Name 4
    3 = Name 3
    H = Different city
    R = Region
    T = District
    L = Name of country
    C = Postal code
    T = District
    7 = Street 3 (field STR_SUPPL2)
    I = Street 5 (field LOCATION)
    8 = Street 4 (field STR_SUPPL3)
    6 = Street 2 (field STR_SUPPL1)
    L = Country
    C = Postal code
    2 = Name 2
    B = PO Box
    S = Street or PO Box
    5 = c/o name
    N = Name (and title) of a person
    D = Department
    O = City
    Which of these attributes are available for maintenance can vary. All
    fields exist in Business Address Services.
    STREET_HAS_PRIORITY (ADRSWA_IN-WAREN)
    'X': Street has priority over PO Box (delivery address for example)
    ' ': PO Box has priority over street. This is the default value.
    regards,

  • How to track an ASP form

    My friend and I are trying to find a script that enables us
    to track the asp form sent to us with its own specific number. With
    either numbers or letters, so far we have not been able to do
    either. We have a webform on a server, so when somebody fills out
    the form out and when it is sent to us we want the email with the
    information filled out with its own specific number. Please
    help...Thank You

    Hi VLN,
    Use external breakpoint for Debuging ---> keep in mind that both the userid should belong to the same user (user name should be same on portal as well as ECC.60).
    ~BD

  • Muse CC 2014 contact web forms problems

    Hi I recently created a website using muse cc 2014 and I uploaded it to the hosting server a free one at freehosting.com I set up everything I know of and when I uploaded the site using muse it gave a error message saying something about PHP mail??? I setup the mail account for my admin user and entered that in the muse contact form. If I test the contact form I do not get the messages and I even added a email to have it forwarded to my yahoo account. If I go in my email account and enter the hosting email account I however do see the message on the server's webmail page and it gets forwarded to the email I set to be the forward email. I checked everything and I'm really confused as what needs to be done. I also submitted a ticket asking customer service they have yet to respond. To note I'm using a free hosting company as it's just a personal website that I don't need all the fancy stuff just the basic needed components to make it work. my website does show up and the pages work EXCEPT the contact form which is needed and important. I ran the script and this is the results
    PHP Version - OK
    mail configured incorrectly
    SQL configuration problem
    The last two  items I really don't understand what is the problem
    Im using Cpanel and here is some basic info on the  host server. Please help me. Thanks
    Hosting package
    Free Website
    Server Name
    customers
    cPanel Version
    11.44.0 (build 16)
    Theme
    x3
    Apache version
    2.4.9
    PHP version
    5.4.26
    MySQL version
    5.5.37-cll
    Architecture
    x86_64
    Operating system
    linux
    Shared IP Address
    Path to sendmail
    /usr/sbin/sendmail
    Path to Perl
    /usr/bin/perl
    Perl version
    5.10.1
    Kernel version
    3.14.3
    cPanel Pro
    1.0 (RC1) 

    What would be the fix or proper setup for the "SQL configuration problem?" I too am having form problems on a third party host, and after checking the PHP diagnostics, the "php version" reads ok, the "mail configuration" is ok, but the SQL configuration is not.
    I guess I just need to know what I need to communicate to the hosting administrator about the SQL so they will configure it properly.
    Thanks

  • Error in ASP Form

    Hi
    I have put a very basic .asp form to mail on a contact page
    but when the form is processed, the only info received are the
    labels (i.e. Email Address, Name, Message etc.) but no actual
    content. There is obviously an error in the code somewhere. I'd be
    grateful for some asp wizard to give me a few pointers.
    Thanks
    martin
    The form
    <form action="confirmation.asp" method="post"
    name="YourFormName" id="YourFormName">
    <table>
    <tr>
    <td>Email: </td>
    <td><input type="text" name="Email" size="50"
    /></td>
    </tr>
    <tr>
    <td>First Name: </td>
    <td><input type="text" name="FirstName" size="50"
    /></td>
    </tr>
    <tr>
    <td>Last Name: </td>
    <td><input type="text" name="LastName" size="50"
    /></td>
    </tr>
    <tr>
    <td>Subject: </td>
    <td><input type="text" name="Subject" size="50"
    /></td>
    </tr>
    <tr>
    <td>Message:</td>
    <td><textarea name="Comments" cols="40"
    rows="5"></textarea></td>
    </tr>
    </table>
    <input type="submit" name="Submit" value="Submit Form"
    />
    </form>
    The server Script
    <body><%
    DIM strEmail, strName, strMessage, mail, reply, objMail
    strEmail = request.form("Email")
    strName = request.form("Name")
    strMessage = request.form("Message")
    mail = "[email protected]"
    reply = request.form("Email")
    Set objMail = Server.CreateObject("CDONTS.NewMail")
    objMail.From = reply
    objMail.Subject = "Contact from website"
    objMail.To = mail
    objMail.Body = "Email: " & strEmail & vbCrLf & _
    "Name: " & strName & vbCrLf & _
    "Message: " & vbCrLf & strMessage
    objMail.Send
    Set objMail = nothing
    %>
    <P>
    <%
    strName = request.form("Name")
    Response.Write strName
    %>
    </P>
    <div align="center"><P class="thankyou">Thank you
    for your email. <br/>
    We will be in touch shortly.</P>
    </div>

    Oh yea, missed that; stated element name and requested don't
    match.
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    > <body><%
    > DIM strEmail, strName, strMessage, mail, reply, objMail
    > strEmail = request.form("Email")
    > strName = request.form("FirstName") & " " &
    request.form("LastName")
    > strMessage = request.form("Comments")
    >
    > mail = "[email protected]"
    > reply = request.form("Email")
    > Set objMail = Server.CreateObject("CDONTS.NewMail")
    > objMail.From = reply
    > objMail.Subject = "Contact from website" & "--"
    & request.form("Subject")
    > objMail.To = mail
    > objMail.Body = "Email: " & strEmail & vbCrLf
    > "Name: " & strName & vbCrLf & _
    > "Message: " & vbCrLf & strMessage
    >
    > objMail.Send
    > Set objMail = nothing
    > %>
    >
    >
    > --
    > 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
    > ==================
    >
    >
    > "martinstan" <[email protected]> wrote
    in message
    > news:[email protected]...
    >> Hi
    >> I have put a very basic .asp form to mail on a
    contact page but when the
    >> form
    >> is processed, the only info received are the labels
    (i.e. Email Address,
    >> Name,
    >> Message etc.) but no actual content. There is
    obviously an error in the
    >> code
    >> somewhere. I'd be grateful for some asp wizard to
    give me a few pointers.
    >> Thanks
    >> martin
    >>
    >> The form
    >>
    >> <form action="confirmation.asp" method="post"
    name="YourFormName"
    >> id="YourFormName">
    >> <table>
    >> <tr>
    >> <td>Email: </td>
    >> <td><input type="text" name="Email"
    size="50" /></td>
    >> </tr>
    >> <tr>
    >> <td>First Name: </td>
    >> <td><input type="text" name="FirstName"
    size="50" /></td>
    >> </tr>
    >> <tr>
    >> <td>Last Name: </td>
    >> <td><input type="text" name="LastName"
    size="50" /></td>
    >> </tr>
    >> <tr>
    >> <td>Subject: </td>
    >> <td><input type="text" name="Subject"
    size="50" /></td>
    >> </tr>
    >> <tr>
    >> <td>Message:</td>
    >> <td><textarea name="Comments" cols="40"
    rows="5"></textarea></td>
    >> </tr>
    >> </table>
    >> <input type="submit" name="Submit" value="Submit
    Form" />
    >> </form>
    >>
    >> The server Script
    >>
    >> <body><%
    >> DIM strEmail, strName, strMessage, mail, reply,
    objMail
    >> strEmail = request.form("Email")
    >> strName = request.form("Name")
    >> strMessage = request.form("Message")
    >>
    >> mail = "[email protected]"
    >> reply = request.form("Email")
    >> Set objMail = Server.CreateObject("CDONTS.NewMail")
    >> objMail.From = reply
    >> objMail.Subject = "Contact from website"
    >> objMail.To = mail
    >> objMail.Body = "Email: " & strEmail & vbCrLf
    >> "Name: " & strName & vbCrLf & _
    >> "Message: " & vbCrLf & strMessage
    >>
    >> objMail.Send
    >> Set objMail = nothing
    >> %>
    >>
    >> <P>
    >> <%
    >> strName = request.form("Name")
    >> Response.Write strName
    >> %>
    >> </P>
    >>
    >> <div align="center"><P
    class="thankyou">Thank you for your email. <br/>
    >> We will be in touch shortly.</P>
    >> </div>
    >>
    >
    >

  • Internet Explorer Error while running VS2005 asp form from devt envt.

    Compilation Error
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
    Compiler Error Message: BC30560: 'OracleDataAdapter' is ambiguous in the namespace 'Oracle.DataAccess.Client'.
    Source Error:
    Line 22405: Inherits Global.System.ComponentModel.Component
    Line 22406:
    Line 22407: Private WithEvents _adapter As Global.Oracle.DataAccess.Client.OracleDataAdapter
    Line 22408:
    Line 22409: Private _connection As Global.Oracle.DataAccess.Client.OracleConnection
    Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web_appl\2ace2c5c\69644e29\App_Code.ecqjnnlx.5.vb Line: 22407

    you form is running in the browser with the help of Jinitiator which is nothing but A JavaInitiator.
    as your machine files located in the System32 folder of your windows directory as .DLL. are not able to communicate with the Jinitiator DLL Files being used
    for the JRE.
    The Form is sending the request to the internet explorer to run the object of applet ttype which is nothing but the Oracle Java Applet named as OC4J(Oracle Container for Java)
    if your form is running or trying to run and hangged due to some problems and your machine got abnormal shutdown then at that time the DLL fiels communicating each other may got corrupt
    due to any abmormal shutdown of your machine...
    the problem is there with the Java Side...
    There is no solution other then reloading the JRE and Jinitiator as per the error being thrown by your machine

  • Form problem-Hit submit and get a blank page

    Hi and thanks for the help!
    I have a form I created in Dreamweaver using Spry validation.  It works most of the time, however,  a few times the visitor hits the submit button and receives a blank screen but the results are submitted.  Of course they have no way of knowing that as they stare down a blank page. Here is the website: http://tinyurl.com/klej69
    I have successfully submitted it on Mac-Safari & Firefox and on PC on Firefox and Explorer 7.
    The client wanted the questions numbered-is there a problem with the "name" starting with a number?  I do have the "id" all lower case, no numbers.
    Thanks so much for any help you can give me!
    Cheers,
    Janell

    Since it's not a consistent problem, you are likely having issues with specific browsers. Is the form page targeting another page, or is it submitting back to its self and supposed to be showing some sort of message?
    I would venture to guess that there's a problem with the validation java script with some browsers.  What it is probably doing is trying to validate and failing, which causes the blank screen, but since the validation failed the form get's submitted anyway.  Try looking at the submitted forms to see any information, or lack of it that should have triggered a message. If you find it, the validation for that field could be your culprit.
    Hope this helps you debug it.
    Lawrence   *Adobe Community Expert*
    www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

  • Survey Form Problem

    I have a survey form whose results post back to a .CSV form.
    My problem is that if someone does not answer all of the questions
    (and none are mandatory), the answers end up in the wrong columns.
    Questions are answered such as:
    <input type="radio" name="RadioGroup1" value="5">5
    <input type="radio" name="RadioGroup1" value="4">4
    <input type="radio" name="RadioGroup1" value="3">3
    <input type="radio" name="RadioGroup1" value="2">2
    <input type="radio" name="RadioGroup1" value="1">1
    <input type="radio" name="RadioGroup1" value="na">na
    Also on the form are checkboxes and a text field. What do I
    need to add that will report a blank answer if a radio or checkbox
    is not answered? If it helps, following is the code for the form
    that processes the answers:
    Dim datafile, redirectpage
    datafile=Request.Form("filesave")
    redirectpage=Request.Form("redirpage")
    Dim fso, f
    Set fso=Server.CreateObject("Scripting.FileSystemObject")
    Set f=fso.OpenTextFile(Server.MapPath ("myfile.csv"), 8,
    True)
    f.WriteBlankLines(1)
    f.WriteLine "Date : " & CStr(Date)
    For Each field in Request.Form
    If field<>"filesave" And field<>"redirpage" Then
    f.WriteLine field & " : " & Request.Form(field)
    End If
    Next
    f.WriteBlankLines(1)
    f.Close
    Set f=Nothing
    Set fso=Nothing
    Response.Redirect "thankyou.asp"
    Thanks in advance for your help on this!

    bake01 wrote:
    > I have a survey form whose results post back to a .CSV
    form. My problem is
    > that if someone does not answer all of the questions
    (and none are mandatory),
    > the answers end up in the wrong columns.
    Your problem is due to the way radio buttons and checkboxes
    work. If
    nothing is selected in a radio button group or a checkbox is
    left
    unselected, it doesn't appear in the form data. So, if the
    user selects
    nothing in RadioGroup1, RadioGroup1 doesn't have a blank
    value, nothing
    is passed to your script.
    One approach with radio buttons is to set "No answer" as the
    default by
    inserting checked="checked" in the <input> tag. That
    way, you will
    always get a value from a radio button group: the default "no
    answer" or
    whatever the user selects.
    You can't do that with checkboxes. Basically, you need to
    check your
    form data array to find if there's a value for each checkbox.
    If any
    checkbox is missing, you need to insert a "no answer" value
    in the array
    at the appropriate point. I could write a script to do this
    in PHP, but
    not VB Script. In pseudocode, it would go something like
    this:
    if (length of form array is not equal to maximum possible
    answers) {
    if (checkbox A not in form array) {
    insert '' in array at appropriate position
    if (checkbox B not in form array) {
    insert '' in array at appropriate position
    process form data as before
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Asp upload problem

    I have a ultrascript file upload which works okay as long as
    the page is not
    re-directed ie
    <form method="post" enctype="multipart/form-data"
    action="ultra6.asp">
    if I change this to say
    <form method="post" enctype="multipart/form-data"
    action="new1.asp">
    The page re-directs but does not upload the files.....
    Is there a way to use <form method="post"
    enctype="multipart/form-data"
    action="ultra6.asp">
    then have a 2sec timer to re-direct to new1.asp.
    Cheers
    SteveW

    Hello,
    Please see this thread http://www.adobeforums.com/cgi-bin/webx/.3bc3c678/2
    for the same problem.
    Regards,
    Razvan RACASANU

  • Help with ASP form mail code PLEASE

    Hello
    I am SOOooo close to this form mail code working correctly.
    It is correctly sending the forms info to the form owner via
    an email.
    The only problem is it also sends an email as soon as the
    page spawns and before the form is filled out. (with just the
    labels of course)
    Could someone PLEASE take a look and tell me specifically
    what to change? Trying to woo the boss!
    Thank you.
    (I included the code for the form mail only....let me know if
    I need to post the code for the whole ASP doc)

    See: http://developers.sun.com/techtopics/mobility/midp/articles/midp2network/

  • Open form - close form problem

    Hi. Using JDeveloper 10.1.3.3., ADF BC.
    Simple, yet not so simple problem: I have two forms, Main and Detail (JFrame). Main form has menu item which I use to open Detail form:
    try {
    FormDetail frmDetail = new FormDetail();
    frmDetail.setBindingContext(panelBinding.getBindingContext());
    // center jframe, visible = true
    showNewForm(frmDetail);
    } catch (Exception ex) {
    ex.printStackTrace();
    } finally {
    I want to create new instance every time I show Detail form. But I have problem closing detail form. Here is Detail constructor:
    public FormDetail() {
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    dispose();
    Here are actions:
    1) start Main form
    2) open Detail form
    3) close Detail form
    4) try to open Detail form - oracle.jbo.JboException 35001.
    I've read about this error, but I don't know how to avoid it.
    I cannot accept that I always have to use setVisible(true) and setVisible(false) on all my forms. There has to be a way to dispose of detail forms, and re-create them. Can someone please help?
    Also, read article on Re: ADF-JClient bug
    No solution there

    I have looked at it before. I am not working with MDI forms, so I cannot apply this.
    I found this article which could solve my problem, but I don't know how is "thedude" creating that Abstract class he was talking about...
    Link: Re: how to release panelbinding correctly?
    As I understood, I should release panel binding before I can release the form...
    Default behavior of detail form's window listener is Exit(0). I want to reinstantiate form every time I open it.

Maybe you are looking for