Submit button wont align

Hi
Ive tried to work this out for myself (and my friend Google),
and spent all
day without getting anywhere.
I am trying to get the submit button, which I have made an
image, align
nicely under the right hand side of the above input box. ie.
the right edge
of the button, flush with the right edge of the input box.
I cannot get FF and IE to come close to agreeing where it
should go.
I even resorted to sticking the fields into table cells.
Didnt work.
Could someone maybe enlighten me as to the correct way to
align this right?
Fiona

It worked a treat Sinclair.
So, I have now learned that you can float a submit button.
Thankyou
Regards
Fiona
"fiona" <[email protected]> wrote in message
news:gnsg8l$qnl$[email protected]..
> "djinn" <[email protected]> wrote in
message
> news:gnm6ei$1hg$[email protected]..
>>
>> You could try something like...
>>
>> <form id="form1" name="form1" method="post"
>> action="
http://www.equilibriumnaturalproducts.com.au/">
>> <input style="margin-top: 36px; margin-left: 9px;
margin-right: 9px;
>> width:140px;" name="" id="name" value="name"
type="text">
>> <input style="margin-top: 5px; margin-left: 9px;
margin-right: 9px;
>> width:140px;" name="email" value="email"
type="text">
>> <input style="float:right; margin-right: 9px;
"name=""
>> src="skins/Legend/styleImages/subscribe.jpg"
alt="subscribe" type="image"
>> width="63" border="0">
>> </form>
>>
>> HTH
>>
>> --
>> chin chin
>> Sinclair
>
> Thankyou Sinclair,
> I will give that a try this afternoon,
>
> Regards
> Fiona
>

Similar Messages

  • Fillable form that i can fill in but the submit button wont work

    i have adobe pdf reader that will open a fillable form allow me to fill in the details but the submit button wont work the lap top has windows 8 on my other laptop with windows vista i can fill in and submit the same form help needed please

    also adobe reader touch wont submit either

  • Submit button from Adobe form doesn't trigger event???

    Hi all,
    I am having this weird problem, the submit button wont trigger any event i register to "submit" and so as to the "check" event. when i send the link to one of my colleagues, the button can trigger the event.
    i am using adobe reader 8 on IE 6, didn't solve the problem when i downgrade it to reader 7.
    any advice???
    Thank you.

    Hi,
    I too had a similar problem sometime back regarding the Submit button. Since you are saying that it is working for your colleague but not you, I predict that something wrong with the network you are in, compared to that of your friend.  Have you provided the Preprocessor URL for the button in the Adobe designer?
    Cheers
    Madhu

  • Form Alignment issue in table: Custom submit button

    Yesterday as I was putting together a "check availability"
    form within a horizontal table, I ran into difficulties getting the
    form to vertically align in the middle, it kept aligning to the
    top. I was able to correct the problem using the following CSS:
    <style>
    form {
    display:inline;
    </style>
    Now this morning I was switching the generic "submit" button
    with a custom gif button using this code within the form:
    <input type="image" name="submit" src="image.jpg"
    width="110" height="20">
    This worked fine, but every part of the form is aligning to
    the middle correctly except the custom button which is sticking to
    the top. I'm completely lost on how to resolve this issue. If
    anyone has any information on how I can fix the button to align
    with the rest of the form I would greatly appreciate your help. I
    am a beginner at adjusting code.
    Thank you so very much!

    Hello Ram,
    > No custom coding.
    The current forum is for developers. That's why I'd recommend asking non-programming questions in the
    Using SharePoint Designer, InfoPath and Other Customizations forum instead.

  • The submit button in compressor wont become active , even after I assign...

    The submit button in compressor wont become active , even after I assign presets and destinations to source files. Ive read compressor help and I cant find anything that relates to this problem. Could anyone please help me out, id really appreciate it.
    permahex
    IBG4 - MBP   Mac OS X (10.4.6)  

    Please list what exactly you're doing and what versions of the relevant software you're using. All those details do matter.

  • Submit button on the align RIGHT

         How do I configure SUMBIT button align on the RIGHT?
    https://adobeformscentral.com/?f=htqvZrOU2kz3MeZD-kmuWg
    Thanks!

    Sorry this is not something you can configure. The submit button on online form is always on the left.
    Gen

  • I created a form and I'm not sure how to make the 'submit' button send me the collected information.

    Hello everybody. I am a web designer (NOT a developer)
    I created a form and I'm not sure how to make the 'submit' button send me the collected information.
    I have used phpform.org/ to custom build a submission form. Then I opened that html in dreamweaver (so that I could edit colors, fonts, and delete the phpform.org advetisement)
    Now I need to link the 'submit button' so that it will e-mail me the completed form.
    (formphp.org wants me to subscribe to a servie that I pay for in order to have the form e-mailed to myself.)
    (after I get the submit button linked to an e-mail I will pull the html of my completed form into Muse- but I don't think that is really relevent)
    I'm sure one of you can help point me in the right direction! I can't write my own code so detailed help is appreciated!
    -Brenna
    The e-mail I would like the form sent to is:
    [email protected]
    Here is the the code for my form 'as is' :
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Create a Profile</title>
    <link rel="stylesheet" type="text/css" href="file:///C|/Users/Tommy/AppData/Local/Temp/Temp1_form.zip/form/view.css" media="all">
    <script type="text/javascript" src="file:///C|/Users/Tommy/AppData/Local/Temp/Temp1_form.zip/form/view.js"></script>
    </head>
    <body id="main_body" >
              <img id="top" src="file:///C|/Users/Tommy/AppData/Local/Temp/Temp1_form.zip/form/top.png" alt="">
              <div id="form_container">
                        <h1><a>Create a Profile</a></h1>
                <form id="form_836144" class="appnitro" enctype="multipart/form-data" method="post" action="">
                        <div class="form_description">
                                  <h2 align="center">Create a Tommy Lemonade Profile</h2>
                                  <p></p>
                        </div>
                          <ul >
                                              <li id="li_1" >
                        <label class="description" for="element_1">Name </label>
                        <span>
                                  <input id="element_1_1" name= "element_1_1" class="element text" maxlength="255" size="8" value=""/>
                                  <label>First</label>
                        </span>
                        <span>
                                  <input id="element_1_2" name= "element_1_2" class="element text" maxlength="255" size="14" value=""/>
                                  <label>Last</label>
                        </span>
                        </li>                    <li id="li_23" >
                        <label class="description" for="element_23">Service Provider Type </label>
                        <span>
                                  <input id="element_23_1" name="element_23_1" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_23_1">Barber</label>
    <input id="element_23_2" name="element_23_2" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_23_2">Hairstylist</label>
    <input id="element_23_3" name="element_23_3" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_23_3">Nail Technician</label>
    <input id="element_23_4" name="element_23_4" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_23_4">Massage Therapist</label>
    <input id="element_23_5" name="element_23_5" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_23_5">Skin Care</label>
    <input id="element_23_6" name="element_23_6" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_23_6">Esthetician</label>
    <input id="element_23_7" name="element_23_7" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_23_7">Make Up Artist</label>
                        </span><p class="guidelines" id="guide_23"><small>Select all that apply.</small></p>
                        </li>                    <li id="li_19" >
                        <label class="description" for="element_19">Top 5 services </label>
                        <div>
                                  <textarea id="element_19" name="element_19" class="element textarea medium"></textarea>
                        </div><p class="guidelines" id="guide_19"><small>Please list your top 5 services</small></p>
                        </li>                    <li id="li_20" >
                        <label class="description" for="element_20">List all services you offer & thier starting price </label>
                        <div>
                                  <textarea id="element_20" name="element_20" class="element textarea medium"></textarea>
                        </div><p class="guidelines" id="guide_20"><small>please use a new line for each service. You can do this by pressing 'enter' after each starting price.
    </small></p>
                        </li>                    <li id="li_12" >
                        <label class="description" for="element_12">Personal Phone </label>
                        <span>
                                  <input id="element_12_1" name="element_12_1" class="element text" size="3" maxlength="3" value="" type="text"> -
                                  <label for="element_12_1">(###)</label>
                        </span>
                        <span>
                                  <input id="element_12_2" name="element_12_2" class="element text" size="3" maxlength="3" value="" type="text"> -
                                  <label for="element_12_2">###</label>
                        </span>
                        <span>
                                   <input id="element_12_3" name="element_12_3" class="element text" size="4" maxlength="4" value="" type="text">
                                  <label for="element_12_3">####</label>
                        </span>
                        <p class="guidelines" id="guide_12"><small>Only fill in if you want clients to be able to contact you on your personal phone line rather than the phone at your place of employment. </small></p>
                        </li>                    <li id="li_21" >
                        <label class="description" for="element_21">E-mail (Required)  </label>
                        <div>
                                  <input id="element_21" name="element_21" class="element text medium" type="text" maxlength="255" value=""/>
                        </div><p class="guidelines" id="guide_21"><small>Staff at Tommy Lemonade will use this e-mail as your primary contact information. it will also be seen by your potential clients.</small></p>
                        </li>                    <li id="li_6" >
                        <label class="description" for="element_6">Confirm your e-mail (Required)  </label>
                        <div>
                                  <input id="element_6" name="element_6" class="element text medium" type="text" maxlength="255" value=""/>
                        </div><p class="guidelines" id="guide_6"><small>Please re-type your e-mail address</small></p>
                        </li>                    <li id="li_3" >
                        <label class="description" for="element_3">Web Site </label>
                        <div>
                                  <input id="element_3" name="element_3" class="element text medium" type="text" maxlength="255" value="http://"/>
                        </div><p class="guidelines" id="guide_3"><small>If you don't have your own website feel free to link your professional Facebook, Google+ etc... </small></p>
                        </li>                    <li id="li_4" >
                        <label class="description" for="element_4">Place of employment </label>
                        <div>
                                  <input id="element_4" name="element_4" class="element text medium" type="text" maxlength="255" value=""/>
                        </div>
                        </li>                    <li id="li_2" >
                        <label class="description" for="element_2">Work Address </label>
                        <div>
                                  <input id="element_2_1" name="element_2_1" class="element text large" value="" type="text">
                                  <label for="element_2_1">Street Address</label>
                        </div>
                        <div>
                                  <input id="element_2_2" name="element_2_2" class="element text large" value="" type="text">
                                  <label for="element_2_2">Address Line 2</label>
                        </div>
                        <div class="left">
                                  <input id="element_2_3" name="element_2_3" class="element text medium" value="" type="text">
                                  <label for="element_2_3">City</label>
                        </div>
                        <div class="right">
                                  <input id="element_2_4" name="element_2_4" class="element text medium" value="" type="text">
                                  <label for="element_2_4">State / Province / Region</label>
                        </div>
                        <div class="left">
                                  <input id="element_2_5" name="element_2_5" class="element text medium" maxlength="15" value="" type="text">
                                  <label for="element_2_5">Postal / Zip Code</label>
                        </div>
                        <div class="right">
                                  <select class="element select medium" id="element_2_6" name="element_2_6">
                                  <option value="" selected="selected"></option>
    <option value="Afghanistan" >Afghanistan</option>
    <option value="Albania" >Albania</option>
    <option value="Algeria" >Algeria</option>
    <option value="Andorra" >Andorra</option>
    <option value="Antigua and Barbuda" >Antigua and Barbuda</option>
    <option value="Argentina" >Argentina</option>
    <option value="Armenia" >Armenia</option>
    <option value="Australia" >Australia</option>
    <option value="Austria" >Austria</option>
    <option value="Azerbaijan" >Azerbaijan</option>
    <option value="Bahamas" >Bahamas</option>
    <option value="Bahrain" >Bahrain</option>
    <option value="Bangladesh" >Bangladesh</option>
    <option value="Barbados" >Barbados</option>
    <option value="Belarus" >Belarus</option>
    <option value="Belgium" >Belgium</option>
    <option value="Belize" >Belize</option>
    <option value="Benin" >Benin</option>
    <option value="Bhutan" >Bhutan</option>
    <option value="Bolivia" >Bolivia</option>
    <option value="Bosnia and Herzegovina" >Bosnia and Herzegovina</option>
    <option value="Botswana" >Botswana</option>
    <option value="Brazil" >Brazil</option>
    <option value="Brunei" >Brunei</option>
    <option value="Bulgaria" >Bulgaria</option>
    <option value="Burkina Faso" >Burkina Faso</option>
    <option value="Burundi" >Burundi</option>
    <option value="Cambodia" >Cambodia</option>
    <option value="Cameroon" >Cameroon</option>
    <option value="Canada" >Canada</option>
    <option value="Cape Verde" >Cape Verde</option>
    <option value="Central African Republic" >Central African Republic</option>
    <option value="Chad" >Chad</option>
    <option value="Chile" >Chile</option>
    <option value="China" >China</option>
    <option value="Colombia" >Colombia</option>
    <option value="Comoros" >Comoros</option>
    <option value="Congo" >Congo</option>
    <option value="Costa Rica" >Costa Rica</option>
    <option value="Côte d'Ivoire" >Côte d'Ivoire</option>
    <option value="Croatia" >Croatia</option>
    <option value="Cuba" >Cuba</option>
    <option value="Cyprus" >Cyprus</option>
    <option value="Czech Republic" >Czech Republic</option>
    <option value="Denmark" >Denmark</option>
    <option value="Djibouti" >Djibouti</option>
    <option value="Dominica" >Dominica</option>
    <option value="Dominican Republic" >Dominican Republic</option>
    <option value="East Timor" >East Timor</option>
    <option value="Ecuador" >Ecuador</option>
    <option value="Egypt" >Egypt</option>
    <option value="El Salvador" >El Salvador</option>
    <option value="Equatorial Guinea" >Equatorial Guinea</option>
    <option value="Eritrea" >Eritrea</option>
    <option value="Estonia" >Estonia</option>
    <option value="Ethiopia" >Ethiopia</option>
    <option value="Fiji" >Fiji</option>
    <option value="Finland" >Finland</option>
    <option value="France" >France</option>
    <option value="Gabon" >Gabon</option>
    <option value="Gambia" >Gambia</option>
    <option value="Georgia" >Georgia</option>
    <option value="Germany" >Germany</option>
    <option value="Ghana" >Ghana</option>
    <option value="Greece" >Greece</option>
    <option value="Grenada" >Grenada</option>
    <option value="Guatemala" >Guatemala</option>
    <option value="Guinea" >Guinea</option>
    <option value="Guinea-Bissau" >Guinea-Bissau</option>
    <option value="Guyana" >Guyana</option>
    <option value="Haiti" >Haiti</option>
    <option value="Honduras" >Honduras</option>
    <option value="Hong Kong" >Hong Kong</option>
    <option value="Hungary" >Hungary</option>
    <option value="Iceland" >Iceland</option>
    <option value="India" >India</option>
    <option value="Indonesia" >Indonesia</option>
    <option value="Iran" >Iran</option>
    <option value="Iraq" >Iraq</option>
    <option value="Ireland" >Ireland</option>
    <option value="Israel" >Israel</option>
    <option value="Italy" >Italy</option>
    <option value="Jamaica" >Jamaica</option>
    <option value="Japan" >Japan</option>
    <option value="Jordan" >Jordan</option>
    <option value="Kazakhstan" >Kazakhstan</option>
    <option value="Kenya" >Kenya</option>
    <option value="Kiribati" >Kiribati</option>
    <option value="North Korea" >North Korea</option>
    <option value="South Korea" >South Korea</option>
    <option value="Kuwait" >Kuwait</option>
    <option value="Kyrgyzstan" >Kyrgyzstan</option>
    <option value="Laos" >Laos</option>
    <option value="Latvia" >Latvia</option>
    <option value="Lebanon" >Lebanon</option>
    <option value="Lesotho" >Lesotho</option>
    <option value="Liberia" >Liberia</option>
    <option value="Libya" >Libya</option>
    <option value="Liechtenstein" >Liechtenstein</option>
    <option value="Lithuania" >Lithuania</option>
    <option value="Luxembourg" >Luxembourg</option>
    <option value="Macedonia" >Macedonia</option>
    <option value="Madagascar" >Madagascar</option>
    <option value="Malawi" >Malawi</option>
    <option value="Malaysia" >Malaysia</option>
    <option value="Maldives" >Maldives</option>
    <option value="Mali" >Mali</option>
    <option value="Malta" >Malta</option>
    <option value="Marshall Islands" >Marshall Islands</option>
    <option value="Mauritania" >Mauritania</option>
    <option value="Mauritius" >Mauritius</option>
    <option value="Mexico" >Mexico</option>
    <option value="Micronesia" >Micronesia</option>
    <option value="Moldova" >Moldova</option>
    <option value="Monaco" >Monaco</option>
    <option value="Mongolia" >Mongolia</option>
    <option value="Montenegro" >Montenegro</option>
    <option value="Morocco" >Morocco</option>
    <option value="Mozambique" >Mozambique</option>
    <option value="Myanmar" >Myanmar</option>
    <option value="Namibia" >Namibia</option>
    <option value="Nauru" >Nauru</option>
    <option value="Nepal" >Nepal</option>
    <option value="Netherlands" >Netherlands</option>
    <option value="New Zealand" >New Zealand</option>
    <option value="Nicaragua" >Nicaragua</option>
    <option value="Niger" >Niger</option>
    <option value="Nigeria" >Nigeria</option>
    <option value="Norway" >Norway</option>
    <option value="Oman" >Oman</option>
    <option value="Pakistan" >Pakistan</option>
    <option value="Palau" >Palau</option>
    <option value="Panama" >Panama</option>
    <option value="Papua New Guinea" >Papua New Guinea</option>
    <option value="Paraguay" >Paraguay</option>
    <option value="Peru" >Peru</option>
    <option value="Philippines" >Philippines</option>
    <option value="Poland" >Poland</option>
    <option value="Portugal" >Portugal</option>
    <option value="Puerto Rico" >Puerto Rico</option>
    <option value="Qatar" >Qatar</option>
    <option value="Romania" >Romania</option>
    <option value="Russia" >Russia</option>
    <option value="Rwanda" >Rwanda</option>
    <option value="Saint Kitts and Nevis" >Saint Kitts and Nevis</option>
    <option value="Saint Lucia" >Saint Lucia</option>
    <option value="Saint Vincent and the Grenadines" >Saint Vincent and the Grenadines</option>
    <option value="Samoa" >Samoa</option>
    <option value="San Marino" >San Marino</option>
    <option value="Sao Tome and Principe" >Sao Tome and Principe</option>
    <option value="Saudi Arabia" >Saudi Arabia</option>
    <option value="Senegal" >Senegal</option>
    <option value="Serbia and Montenegro" >Serbia and Montenegro</option>
    <option value="Seychelles" >Seychelles</option>
    <option value="Sierra Leone" >Sierra Leone</option>
    <option value="Singapore" >Singapore</option>
    <option value="Slovakia" >Slovakia</option>
    <option value="Slovenia" >Slovenia</option>
    <option value="Solomon Islands" >Solomon Islands</option>
    <option value="Somalia" >Somalia</option>
    <option value="South Africa" >South Africa</option>
    <option value="Spain" >Spain</option>
    <option value="Sri Lanka" >Sri Lanka</option>
    <option value="Sudan" >Sudan</option>
    <option value="Suriname" >Suriname</option>
    <option value="Swaziland" >Swaziland</option>
    <option value="Sweden" >Sweden</option>
    <option value="Switzerland" >Switzerland</option>
    <option value="Syria" >Syria</option>
    <option value="Taiwan" >Taiwan</option>
    <option value="Tajikistan" >Tajikistan</option>
    <option value="Tanzania" >Tanzania</option>
    <option value="Thailand" >Thailand</option>
    <option value="Togo" >Togo</option>
    <option value="Tonga" >Tonga</option>
    <option value="Trinidad and Tobago" >Trinidad and Tobago</option>
    <option value="Tunisia" >Tunisia</option>
    <option value="Turkey" >Turkey</option>
    <option value="Turkmenistan" >Turkmenistan</option>
    <option value="Tuvalu" >Tuvalu</option>
    <option value="Uganda" >Uganda</option>
    <option value="Ukraine" >Ukraine</option>
    <option value="United Arab Emirates" >United Arab Emirates</option>
    <option value="United Kingdom" >United Kingdom</option>
    <option value="United States" >United States</option>
    <option value="Uruguay" >Uruguay</option>
    <option value="Uzbekistan" >Uzbekistan</option>
    <option value="Vanuatu" >Vanuatu</option>
    <option value="Vatican City" >Vatican City</option>
    <option value="Venezuela" >Venezuela</option>
    <option value="Vietnam" >Vietnam</option>
    <option value="Yemen" >Yemen</option>
    <option value="Zambia" >Zambia</option>
    <option value="Zimbabwe" >Zimbabwe</option>
                                  </select>
                        <label for="element_2_6">Country</label>
              </div>
                        </li>                    <li id="li_5" >
                        <label class="description" for="element_5">Work Phone </label>
                        <span>
                                  <input id="element_5_1" name="element_5_1" class="element text" size="3" maxlength="3" value="" type="text"> -
                                  <label for="element_5_1">(###)</label>
                        </span>
                        <span>
                                  <input id="element_5_2" name="element_5_2" class="element text" size="3" maxlength="3" value="" type="text"> -
                                  <label for="element_5_2">###</label>
                        </span>
                        <span>
                                   <input id="element_5_3" name="element_5_3" class="element text" size="4" maxlength="4" value="" type="text">
                                  <label for="element_5_3">####</label>
                        </span>
                        <p class="guidelines" id="guide_5"><small>Please enter the phone number of the establishment where you work if applicable. </small></p>
                        </li>                    <li id="li_22" >
                        <label class="description" for="element_22">Schedule </label>
                        <div>
                                  <textarea id="element_22" name="element_22" class="element textarea medium"></textarea>
                        </div><p class="guidelines" id="guide_22"><small>Please feel free to include your schedule. What days you work, when are you days off, be sure to include your hours available (example: 9am-7pm) or if you have any 'by appointment only' days. </small></p>
                        </li>                    <li id="li_7" >
                        <label class="description" for="element_7">Profile Picture </label>
                        <div>
                                  <input id="element_7" name="element_7" class="element file" type="file"/>
                        </div> 
                        </li>                    <li id="li_8" >
                        <label class="description" for="element_8">Portfolio image  </label>
                        <div>
                                  <input id="element_8" name="element_8" class="element file" type="file"/>
                        </div> 
                        </li>                    <li id="li_9" >
                        <label class="description" for="element_9">Portfolio image  </label>
                        <div>
                                  <input id="element_9" name="element_9" class="element file" type="file"/>
                        </div> 
                        </li>                    <li id="li_10" >
                        <label class="description" for="element_10">Portfolio image  </label>
                        <div>
                                  <input id="element_10" name="element_10" class="element file" type="file"/>
                        </div> 
                        </li>                    <li id="li_11" >
                        <label class="description" for="element_11">Portfolio image  </label>
                        <div>
                                  <input id="element_11" name="element_11" class="element file" type="file"/>
                        </div> 
                        </li>                    <li id="li_13" >
                        <label class="description" for="element_13">Portfolio image  </label>
                        <div>
                                  <input id="element_13" name="element_13" class="element file" type="file"/>
                        </div> 
                        </li>                    <li id="li_14" >
                        <label class="description" for="element_14">Portfolio image  </label>
                        <div>
                                  <input id="element_14" name="element_14" class="element file" type="file"/>
                        </div> 
                        </li>                    <li id="li_15" >
                        <label class="description" for="element_15">Portfolio image  </label>
                        <div>
                                  <input id="element_15" name="element_15" class="element file" type="file"/>
                        </div> 
                        </li>                    <li id="li_16" >
                        <label class="description" for="element_16">Portfolio image  </label>
                        <div>
                                  <input id="element_16" name="element_16" class="element file" type="file"/>
                        </div> 
                        </li>                    <li id="li_17" >
                        <label class="description" for="element_17">Portfolio image  </label>
                        <div>
                                  <input id="element_17" name="element_17" class="element file" type="file"/>
                        </div> 
                        </li>                    <li id="li_18" >
                        <label class="description" for="element_18">Portfolio image  </label>
                        <div>
                                  <input id="element_18" name="element_18" class="element file" type="file"/>
                        </div> 
                        </li>
                            <li class="buttons">
                              <input type="hidden" name="form_id" value="836144" />
                        <input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" />
                            </li>
                          </ul>
                        </form>
                        <div id="footer">
                        </div>
              </div>
              <img id="bottom" src="file:///C|/Users/Tommy/AppData/Local/Temp/Temp1_form.zip/form/bottom.png" alt="">
              </body>
    </html>

    I'm afraid not.    It's not rocket science but you need to do some coding. 
    You'll need to find a script (php) and save it to your local site folder.  Then reference the script in your form's action attribute like so.
         <form action="path/form-to-email-script.php" >
    The input fields in your HTML form need to exactly match the script variables. 
    I'm  assuming you're hosted on a Linux server which uses PHP code.  Linux servers are also case sensitive, so upper case names are not the same as lower case names.  It's usually best to use all lower case names in your form and script to avoid confusion.
    Related Links:
    Formm@ailer PHP from DB Masters
    http://dbmasters.net/index.php?id=4
    Tectite
    http://www.tectite.com/formmailpage.php
    If this is all a bit beyond your skill set, look at:
    Wufoo.com (on-line form service)
    http://wufoo.com/
    Nancy O.

  • How to use multiple submit buttons in jsp form

    hello dextors,
    Im using a jsp page which have got some 'n' no submit buttons according to the Iterator ..each iterator display a row contains few fields plus submit button ..ex., If ' n' rows means 'n' respective submit buttons..the problem here is when i click any of the submit button only the value of the first row goes
    to the other jsp page..no matter wat ever button I click only first row goes..
    remember the page displays all the rows correctly and though the values of submit button are also different it gives the same result...
    what could be the reason please help it out...
    my jsp page contains
    <%@ page language="java" import="java.util.*" %>
    <%@ page language="java" import="java.io.*" %>
    <form name="frmChangeCorrection" method="post" target="childwindow" action="popup.jsp" >
    <body>
    <%
    RFTrackerDAOFactory factory = new RFTrackerDAOFactory();
         DailyDataDAO dailyDAO = factory.getDailyDataDAO();
         String month = request.getParameter("month");
         String year = request.getParameter("year");
         String empNo = request.getParameter("empno");          
         Collection coll = dailyDAO.getMonthyEmployeeData(empNo,month,year);
    Iterator iter = coll.iterator();     
    %>
    <div align="center">
    <center>
    <table border="1" width="75%" bgcolor="#B6C7E5">
    <tr>
    <th width="11%">EMPNO</th>
    <th width="30%">EMPLOYEE NAME</th>
    <th width="11%">DATE</th>
    <th width="11%">IN TIME</th>
    <th width="11%" >OUT TIME </th>
    <th width="15%" >TOTAL HRS</th>
    <th width="11%" >MODIFY</th>
    </tr>
    </table>
    </center>
    </div>
    <%
    int count=0;
    while(iter.hasNext())
         EmployeeData data = (EmployeeData)iter.next();
         String str=data.getDuration();
         String str1= str.substring( 0, 5 );
    count++;
    %>
    <div align="center">
    <center>
    <table border="1" width="75%" bgcolor="#B6C7E5">
    <tr>
    <td width="11%"> <%= data.getEmpNo() %> </td>
    <input type="hidden" name="empno" value="<%=data.getEmpNo() %>">
    <td width="30%"> <%= data.getEmpName() %> </td>
    <input type="hidden" name="empname" value="<%= data.getEmpName() %>">
    <td width="11%"><%= data.getDate() %> </td>
    <input type="hidden" name="date" value="<%= data.getDate() %>">
    <td width="11%"><%= data.getInTime() %> </td>
    <td width="11%" > <%= data.getOutTime() %> </td>
    <td width="15%" > <%= str1 %> </td>
    <td width="11%" > <input type="submit" name="Change" value="<% =count%>" onclick="popupResult()" >
    <input type="hidden" name="Change" value="<%=count%>" >
    </td>
    </tr>
    </table>
    </center>
    </div>
    <%
    %>
    </form>          
    </p>
    </table>
    </body>
    <script>
    function popupResult(){
    window.open('about:blank','childwindow', 'height=300,width=300');
    </script>

    It is assumed that one submit button will function for a form..if you want more that one submit form try to build as many forms as u need and put the submit inside that
    that will cure your problem
    and y do you want to create so many submit buttons.. instead you can make use of select button

  • The Submit button doesn't work

    Hi all,
    this is my first post, so first off all sorry for any bad
    english.
    I have some code that makes a login system in flash with PHP.
    Well the problem is that when i click de submit button when
    registering a new user, flash wont go to the frame i want (just
    stands in the same frame), still the user is registered in the
    database.
    this is the code of the button:
    help please.

    Try this code.
    I'm not positive it would work but I think the problem is
    that you put the loadvars within the function (?). I don't know if
    that'll cause any problems but I assumed it would.
    In addition to that, I'm not sure if anything in error might
    be returned. My assumption is that it should be undefined. But then
    again, it might be null, not undefined. So, just to make sure, I
    included to check if user != "ok".
    Well, I hope it does work!

  • How do you Delete a Record using Form with submit button?

    Hi,
    The table REGISTRATION has two feilds, FULL_NAME and USER_GROUP. I created a form that has a drop down
    of all the FULL_NAME values that allows the user to select the record that they want to delete. I got the drop down to work and
    created the Delete Record behavior, I just can't get the submit button to send the form data and cause the delete to happen.
    I have created other pages that update records in this way, but for some reason, I can't get delete to work.
    Any Ideas?
    Thank You in Advance,
    Eric
    Ps     Anyone know why this site locks up in I.E. on some PC's? My Company PC is locked down and they won't investigate. My laptop works but says error on page. I have the latest updates and JAVA ...
    Here is the code:
    <cfif IsDefined("FORM.Full_Name") AND #FORM.Full_Name# NEQ "">
      <cfquery datasource="ilmf_parts">
      DELETE FROM REGISTRATION
    WHERE Full_Name=<cfqueryparam value="#FORM.Full_Name#" cfsqltype="cf_sql_clob" maxlength="50">
      </cfquery>
      <cflocation url="index.cfm">
    </cfif>
    <cfquery name="REGISTRATION" datasource="ilmf_parts">
    SELECT Full_Name, User_Group
    FROM REGISTRATION
    ORDER BY Full_Name ASC
    </cfquery>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>User Delete Test Page</title>
    </head>
    <body>
    <p align="center">USER DELETE TEST PAGE </p>
    <p> </p>
    <form action="index.cfm" method="post" enctype="multipart/form-data" name="Delete_Form" id="Delete_Form">
      <table width="500" border="1" cellspacing="1" cellpadding="3">
        <tr>
          <th scope="col">NT Name </th>
          <th scope="col"><select name="select">
            <cfoutput query="REGISTRATION">
              <option value="#REGISTRATION.Full_Name#">#REGISTRATION.Full_Name#</option>
            </cfoutput>
          </select>
    </th>
        </tr>
        <tr>
          <td> </td>
          <td><input type="submit" name="Submit" value="DELETE" /></td>
        </tr>
      </table>
      <p> </p>
      <p> </p>
    </form>
    <p> </p>
    </body>
    </html>

    The name of your form control is "select".
    <select name="select">
    The name of your form field in your SQL is full_name
    <cfqueryparam value="#FORM.Full_Name#" cfsqltype="cf_sql_clob" maxlength="50">
    You probably really want these names to match!
    P.S.
    Is your name field really a "clob" data type?  Just how long are these names anyway.
    P.P.S.
    Why are you relocating from the page index.cfm to index.cfm?
    <form action="index.cfm" method="post" enctype="multipart/form-data" name="Delete_Form" id="Delete_Form">
    <cflocation url="index.cfm">

  • SUBMIT button and VALUE clause

    I have a jsp screen like below.It shows in a tabular form all the employee data.
    EMPLOYEE DETAILS
    EmpId_______ProcessEmpSalary_____ProcessEmpLeave
    1
    2
    3
    4
    5
    6
    7
    8
    NEXT______PREV____LAST____FIRST
    Under ProcessEmpSalary ,ProcessEmpLeave of each employee I have a submit button and clicking on it the particular employee id has to be processed (for salary or leave).Now I want the employee id to be passed when the submit button of that particular employee is pressed.
    So what I am doing is I put the emp id in the value clause and achieve my purpose.But this results in the display of the emp id over each submit button.It looks ugly and so
    I dont want to use the VALUE clause of the SUBMIT button.........
    So friends please tell me how to achieve it.Someone suggested me to use IMAGE but it doesn't work.Some suggested I use hidden varaible ,but I just don;t understand how is that possible.Some suggested me use javascript to pass the value and throw the form...this make sense but problem is I don't have time to learn javascript now.So please help with some code example how to achieve this result.

    Here is my jsp as it is .Employee id was used for example.In my application it is Submission_Id
    which is used as the key.
    Note:
    The method is given below after the end of this JSP code.
    SubmissionList.jsp
    <%@ page contentType="text/html;charset=WINDOWS-1252"%>
    <%@page import = "oracle.portal.provider.v1.*, oracle.portal.provider.v1.http.*, oracle.portal.utils.v1.*, java.sql.*, ccrspackage.*" %>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <TITLE>
    </TITLE>
    </HEAD>
    <BODY BGCOLOR = #FFCC00 FONT SIZE = "+2" >
    <FORM ACTION = 'SubmissionList.jsp' method='post'>
    <%
    //retrieve the existing session
    HttpSession Session= request.getSession(true);
    CCRS OCCRS = null;
    Connect OConnect = null;
    try
    if (request.getMethod().equals("POST"))
    if ( request.getParameter("Exit") != null)
    response.sendRedirect("Default.jsp");
    else
    OCCRS = (CCRS)Session.getValue("OCCRS");
    if (request.getParameter("Search") != null)
    OCCRS.InitialSettingForSubmissionList();
    else
    OCCRS.CreatePageOfSubmissionList(request);
    else
    OConnect = (Connect)Session.getValue("OConnect");
    OCCRS = new CCRS(OConnect);
    OCCRS.InitialSettingForSubmissionList();
    Session.putValue("OCCRS",OCCRS);
    catch (Exception e)
    OCCRS.ProcessError(e);
    //MESSAGE (IF ANY)
    out.println("<TABLE ALIGN=CENTER>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = RED>");
    out.println("<B>");
    out.println(OCCRS.GetDisplayMessage());
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("</TABLE>");
    if (OCCRS.GetShowRecord() == false)
    String TempValue = "";
    String TempSelected = "";
    String TempText = "";
    out.println("<TABLE ALIGN=CENTER>");
    //Show all the drop down list
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Fiscal Year");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Fiscal_Year' >");
    while (OCCRS.NextItrScrFiscal_Year())
    TempValue = OCCRS.GetItrScrFiscal_Year();
    TempSelected = OCCRS.GetItrSelectedScrFiscal_Year();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempValue + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Fiscal Period");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Fiscal_Period' >");
    while (OCCRS.NextItrScrFiscal_Period())
    TempValue = OCCRS.GetItrScrFiscal_Period();
    TempSelected = OCCRS.GetItrSelectedScrFiscal_Period();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempValue + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Province");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Province_Code' >");
    while (OCCRS.NextItrScrProvince_Code())
    TempValue = OCCRS.GetItrScrProvince_Code();
    TempSelected = OCCRS.GetItrSelectedScrProvince_Code();
    TempText = OCCRS.GetItrScrProvince_Desc();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempText + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Facility");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Facility_Code' >");
    while (OCCRS.NextItrScrFacility_Code())
    TempValue = OCCRS.GetItrScrFacility_Code();
    TempSelected = OCCRS.GetItrSelectedScrFacility_Code();
    TempText = OCCRS.GetItrScrFacility_Name();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempText + " " + TempValue + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("<TR>");
    out.println("<TD>");
    out.println("<FONT COLOR = BLACK>");
    out.println("<B>");
    out.println("Status Code");
    out.println("</B>");
    out.println("</FONT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<SELECT name = 'Status_Code' >");
    while (OCCRS.NextItrScrStatus_Code())
    TempValue = OCCRS.GetItrScrStatus_Code();
    TempSelected = OCCRS.GetItrSelectedScrStatus_Code();
    TempText = OCCRS.GetItrScrStatusDesc();
    out.println("<OPTION value = '" + TempValue + "' " + TempSelected + " >" + TempText + "</OPTION>");
    out.println("</SELECT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("</TABLE>");
    // SHOW 2 SUBMIT BUTTONS ,"Next" and "Close"
    out.println("<TABLE ALIGN = 'CENTER'>");
    out.println("<TR>");
    out.println("<TD ALIGN=CENTER>");
    out.println("<INPUT TYPE = 'SUBMIT' NAME = 'ShowRecord' value ='ShowRecord'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Exit' value ='Exit'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("</TABLE>");
    else
    out.println("<TABLE ALIGN=CENTER>");
    //THE COLUMN NAME IS SHOWN
    for(int Row = 0;Row <= OCCRS.GetFilledRow();Row++)
    if (Row == 0)
    out.println("<TR BGCOLOR = 'Black' >");
    else
    out.println("<TR BGCOLOR = 'Teal' >");
    for(int Col = 0;Col <= OCCRS.GetFilledCol();Col++)
    out.println("<TD>");
    out.println("<B>");
    out.println("<FONT COLOR = WHITE >");
    out.println(OCCRS.ReturnNewPageElement(Row,Col));
    out.println("</FONT>");
    out.println("</B>");
    out.println("</TD>");
    out.println("</TR >");
    out.println("</TABLE>");
    out.println("<TABLE ALIGN = 'CENTER'>");
    out.println("<TR>");
    if (OCCRS.GetMoreRecExist())
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Next' value ='Next'>");
    out.println("</INPUT>");
    out.println("</TD>");
    if (OCCRS.GetPageNumber() > 0)
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Prev' value ='Prev'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'First' value ='First'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Search' value ='Search'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("<TD>");
    out.println("<INPUT TYPE = 'Submit' NAME = 'Exit' value = 'Exit'>");
    out.println("</INPUT>");
    out.println("</TD>");
    out.println("</TR>");
    out.println("</TABLE>");
    %>
    </FORM>
    </BODY>
    </HTML>
    Here is my method in CCRS class
    This method create a multidimensional array of fixed row
    and column .This array is populated with all the data that has to
    be displayed ,and also satisfies the condition specified by the user.
    This array is subsequently used in the JSP (which calls this method)
    and displays all the row.
    public void CreatePageOfSubmissionList(HttpServletRequest request) throws Exception
    ResultSet ResSet;
    ShowRecord = true;
    DisplayMessage = "";
    if (request.getParameter("ShowRecord") != null )
    ScrProvince_Code = request.getParameter("Province_Code").trim();
    ScrFacility_Code = request.getParameter("Facility_Code").trim();
    ScrFiscal_Year = request.getParameter("Fiscal_Year").trim();
    ScrFiscal_Period = request.getParameter("Fiscal_Period").trim();
    ScrStatus_Code = request.getParameter("Status_Code").trim();
    LastSubmission_Id = 999999999;
    MathematicalSign = "<";
    else
    if (request.getParameter("Release") != null )
    ScrSubmission_Id = request.getParameter("Release").trim();
    Submission_Id = ScrSubmission_Id;
    ReleaseSubmission();
              LastSubmission_Id     =     FirstSubmission_Id;
    MathematicalSign = "<=";
    else
    if (request.getParameter("Process") != null )
    ScrSubmission_Id = request.getParameter("Process").trim();
    Submission_Id = ScrSubmission_Id;
    ProcessSubmission();
              LastSubmission_Id     =     FirstSubmission_Id;
    MathematicalSign = "<=";
    else
    if (request.getParameter("Remove") != null )
    ScrSubmission_Id = request.getParameter("Remove").trim();
    Submission_Id = ScrSubmission_Id;
    RemoveSubmission();
              LastSubmission_Id     =     FirstSubmission_Id;
    MathematicalSign = "<=";
    else
    if (request.getParameter("Prev") != null )
    PageNumber = PageNumber - 1;
    Long Temp = (Long) VecPrevSubmission_Id.elementAt(PageNumber);
    LastSubmission_Id = Temp.longValue();
    MathematicalSign = "<=";
    else
    if (request.getParameter("First") != null )
    Long Temp = (Long) VecPrevSubmission_Id.elementAt(0);
    LastSubmission_Id = Temp.longValue();
    PageNumber = 0;
    MathematicalSign = "<=";
    else
    if (request.getParameter("Next") != null )
    PageNumber = PageNumber + 1;
         VecPrevSubmission_Id.addElement(new Long(FirstSubmission_Id));
    MathematicalSign = "<";
    //initialize the page array
    for(int Row = 0;Row <= MaxPageRow;Row++)
    for(int Col = 0; Col <= MaxPageCol;Col++)
    NewPage[Row][Col] = "";
    Submission_Id = LastSubmission_Id + "";
    Province_Code = ScrProvince_Code;
    Facility_Code = ScrFacility_Code;
    Fiscal_Year = ScrFiscal_Year;
    Fiscal_Period = ScrFiscal_Period;
    Status_Code = ScrStatus_Code;
    BuildQueryForSubmissionList();
    ResSet = Stmt.executeQuery (Query);
    ResSetMetaData = ResSet.getMetaData();
    //remember NumOfFields is O is java variable which starts with 0 and not 1,
    //that is the reason I am subtracting 1 from oracle returned value.
    int NumOfFields = ResSetMetaData.getColumnCount() - 1;
    FilledCol = -1;
    for(int Col = 0; Col <= NumOfFields;Col++)
    //1 is added because JDBC subscripts starts with 1 and not 0
    NewPage[0][Col] = ReturnChangedColumnName(Col + 1,ResSetMetaData);
    FilledCol = FilledCol + 1;
    FilledCol = FilledCol + 1;
    NewPage[0][FilledCol] = "Remove";
    FilledCol = FilledCol + 1;
    NewPage[0][FilledCol] = "Process";
    FilledCol = FilledCol + 1;
    NewPage[0][FilledCol] = "Release";
    FilledCol = FilledCol + 1;
    NewPage[0][FilledCol] = "Preview";
    //Note at this point row number 0 of the array is having the field names
    //Remaining rows (i.e 1,2...etc) will now be populated with field data
    FilledRow = 0;
    MoreRecExist = false;
    while(ResSet.next())
    if (FilledRow == MaxPageRow)
    MoreRecExist = true;
    break;
    FilledRow = FilledRow + 1;
         if     (FilledRow     ==     1)
              FirstSubmission_Id     =     Long.parseLong(ReturnColumnData(1,ResSet));
    FilledCol = -1;
    for(int Col= 0; Col <= NumOfFields;Col++)
    //1 is added because JDBC subscripts starts with 1 and not 0
    NewPage[FilledRow][Col] = ReturnColumnData(Col + 1,ResSet);
    FilledCol = FilledCol + 1;
    LastSubmission_Id = Long.parseLong(ReturnColumnData(1,ResSet));
    Status_Code = ResSet.getString("Status_Code");
    if (Status_Code == null)
    Status_Code = "";
    else
    Status_Code = Status_Code.toUpperCase().trim();
    FilledCol = FilledCol + 1;
    //IF SUBMISSION HAS ONLY BEEN REGISTERED THEN SHOW A REMOVE BUTTON
    if (Status_Code.equals("R"))
    NewPage[FilledRow][FilledCol] = "<INPUT TYPE = 'Submit' NAME = 'Remove' value ='" + LastSubmission_Id + "'></INPUT>";
    FilledCol = FilledCol + 1;
    //SHOW THE PROCESS BUTTON IF SUBMISSION HAS BEEN BEEN REGISTERED
    if (Status_Code.equals("R"))
    NewPage[FilledRow][FilledCol] = "<INPUT TYPE = 'Submit' Name = 'Process' value ='" + LastSubmission_Id + "'></INPUT>";
    FilledCol = FilledCol + 1;
    //SHOW THE RELEASE BUTTON IF THE SUBMISSION HAS BEEN BEEN PROCESSED
    if (Status_Code.equals("P"))
    NewPage[FilledRow][FilledCol] = "<INPUT TYPE = 'Submit' NAME = 'Release' value ='" + LastSubmission_Id + "'></INPUT>";
    FilledCol = FilledCol + 1;
    //SHOW THE PREVIEW BUTTON IF THE SUBMISSION HAS BEEN PROCESSED
    if (Status_Code.equals("P") ||
    Status_Code.equals("C") )
    NewPage[FilledRow][FilledCol] =
    "<img src=\"pdf.gif\" border=\"0\" onClick=\" javascript:window.open('" + StringUtil.replaceString(Preview_URL,"%Submission_Id%",new Long(LastSubmission_Id).toString()) + "', 'SubmissionReport','location=no,menubar=no,toolbar=no,scrollbars=yes,left=' + window.screen.availWidth*1.2/8 + ',top='+window.screen.availHeight*1.2/14 + ',width=' + window.screen.availWidth*3/4 + ',height=' + window.screen.availHeight*6/7 + '')\" style=\"cursor:hand\" >";
    // "<img src=\"/appl/development/ccrs/images/pdf.gif\" border=\"0\" onClick=\" javascript:window.open('" + StringUtil.replaceString(Preview_URL,"%Submission_Id%",new Long(LastSubmission_Id).toString()) + "', 'SubmissionReport','location=no,menubar=no,toolbar=no,scrollbars=yes,left=' + window.screen.availWidth*1.2/8 + ',top='+window.screen.availHeight*1.2/14 + ',width=' + window.screen.availWidth*3/4 + ',height=' + window.screen.availHeight*6/7 + '')\" style=\"cursor:hand\" >";

  • Submit buttons not working....:o( - ANY IDEAS??

    okay i got a form - ApplicantForm.jsp and that has two buttons on it...
    'ACCEPT' and 'REJECT'
    the next page - CurrentStatus.jsp - should be brought up but its just not working!
    whenever a button is pressed a blank screen with just the buttons is being brought up and no changes are being made to the database.
    what needs to happen is that it performs the little calculation - and the updates the value in the database...here's the code
    ApplicantForm.jsp
    (the buttons are declared at the top and the logic at the bottom)
    <%@ page import="java.sql.*, java.net.*" %>
    <HTML>
    <HEAD>
    <TITLE>APPLICANT FORM</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
    <FORM NAME = "ApplicantForm">
    <DIV ALIGN = "center">
    <INPUT TYPE = "submit" VALUE = "ACCEPT" NAME = "AcceptButton">
    <INPUT TYPE = "submit" VALUE = "REJECT" NAME = "RejectButton">
    </DIV>
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:fypproject","","");
    Statement st = con.createStatement();
    String forename           = request.getParameter("name");
    String surname           = request.getParameter("surname");
    String email = request.getParameter("email");
    int level = 0;
    String query = "SELECT * FROM Login_Details LD, Personal_Details PD, Education E, Work_Experience WE, Skills S WHERE LD.Email_Address = PD.Email_Address AND LD.Email_Address = E.Email_Address AND LD.Email_Address = WE.Email_Address AND LD.Email_Address = S.Email_Address AND PD.Forename = '" + forename + "' AND PD.Surname = '" + surname + "' AND LD.Email_Address = '" + email + "'";
    ResultSet rs = st.executeQuery(query);
    if(rs.next()) {
    %>
    <TABLE WIDTH="760" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR VALIGN="top">
    <TD WIDTH="610" HEIGHT="130">
    <TABLE WIDTH="610" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR>
    <TD WIDTH="10" HEIGHT="192" VALIGN="top"></TD>
    <TD WIDTH="600" HEIGHT="192" VALIGN="top">
    <TABLE WIDTH="600" BORDER="0" CELLSPACING="0" CELLPADDING="0">
    <TR>
    <TD VALIGN="top">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
              <TR>
              <TD COLSPAN="2"> </TD>
              </TR>          
    <TR>
    <TD COLSPAN="2"><B> <% out.println(rs.getString("Forename")); out.println(rs.getString("Surname")); %></B></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#000000"><FONT COLOR="#FFFFFF" SIZE="4">Personal Details</FONT></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Title</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Title")); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Forename</FONT></TD>
    <TD WIDTH="334"><% out.println(forename); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Surname</FONT></TD>
    <TD WIDTH="334"><% out.println(surname); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250" HEIGHT="2"><FONT SIZE="2">Date Of Birth</FONT></TD>
    <TD HEIGHT="2" WIDTH="334"><% out.println(rs.getString("DOB")); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Sex</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Gender")); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="250"><FONT SIZE="2">Nationality</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Nationality")); %></TD>
    </TR>
              <TR BGCOLOR="#FFFFFF">
              <TD WIDTH="205"><FONT SIZE="2">Marital Status</FONT></TD>
              <TD WIDTH="334"><% out.println(rs.getString("Marital_Status")); %></TD>
              </TR>
              <TR BGCOLOR="#FFFFFF">
              <TD WIDTH="205"><FONT SIZE="2">Do you require a work permit?</FONT></TD>
              <TD WIDTH="334"><% out.println(rs.getString("Work_Permit_Required")); %></TD>
              </TR>
              <TR BGCOLOR="#FFFFFF">
              <TD WIDTH="205"><FONT SIZE="2">Email Address</FONT></TD>
              <TD WIDTH="334"><% out.println(email); %></TD>
              </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#000000"><FONT COLOR="#FFFFFF" SIZE="4">Education</FONT></TD>
    </TR>
              <TR>
              <TD COLSPAN="2"><FONT SIZE="2">Secondary Education</FONT></TD>
              </TR>
    <TR>
    <TD COLSPAN="2"><FONT SIZE="2">Institution(s)</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
    <TR>
    <TD WIDTH="47%"><FONT SIZE="2">Name</FONT></TD>
    <TD WIDTH="37%"><FONT SIZE="2">Location</FONT></TD>
    <TD WIDTH="7%"><FONT SIZE="2">From</FONT></TD>
    <TD WIDTH="9%"><FONT SIZE="2">To</FONT></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="32%"><% out.println(rs.getString("Institution_Name_1")); %></TD>
    <TD WIDTH="32%"><% out.println(rs.getString("Institution_Location_1")); %></TD>
    <TD WIDTH="13%"><% out.println(rs.getString("Institution_From_1")); %></TD>
    <TD WIDTH="23%"><% out.println(rs.getString("Institution_To_1")); %></TD>
    </TR>
    <TR BGCOLOR="#FFFFFF">
    <TD WIDTH="32%"><% out.println(rs.getString("Institution_Name_2")); %></TD>
    <TD WIDTH="32%"><% out.println(rs.getString("Institution_Location_2")); %></TD>
    <TD WIDTH="13%"><% out.println(rs.getString("Institution_From_2")); %></TD>
    <TD WIDTH="23%"><% out.println(rs.getString("Institution_To_2")); %></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    <TR>
    <TD COLSPAN="2"><FONT SIZE="2">'A' Level or Equivalent</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" VALIGN="top">
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="4" WIDTH="607">
    <TR>
    <TD WIDTH="18"> </TD>
    <TD WIDTH="57"><FONT SIZE="2">Year</FONT></TD>
    <TD WIDTH="250"><FONT SIZE="2">Qualification Name</FONT></TD>
    <TD WIDTH="96"><FONT SIZE="2">Subject</FONT></TD>
    <TD WIDTH="131"><FONT SIZE="2">Grade</FONT></TD>
    </TR>
    <TR>
    <TD WIDTH="18">1</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="18">2</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_2")); %></TD>
    </TR>
                   <TR>
    <TD WIDTH="18">3</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_3")); %></TD>
    </TR>
                   <TR>
    <TD WIDTH="18">4</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_4")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_4")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_4")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_4")); %></TD>
    </TR>
                   <TR>
    <TD WIDTH="18">5</TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("ALevel_Year_5")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("ALevel_Name_5")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="96"><% out.println(rs.getString("ALevel_Subject_5")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="131"><% out.println(rs.getString("ALevel_Grade_5")); %></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    <TR>
              <TD COLSPAN="2"><FONT SIZE="2">Higher & PostGraduate</FONT></TD>
              </TR>
    <TR>
    <TD COLSPAN="2"><% out.println(rs.getString("Degree_Year_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Qualification</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Qualification_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Subject</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Subject_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Result</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Result_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Expected / Obtained</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_ExpObt_1")); %></TD>
    </TR>
              <TR>
    <TD COLSPAN="2"><% out.println(rs.getString("Degree_Year_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Qualification</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Qualification_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Subject</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Subject_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Degree Result</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_Result_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="250"><FONT SIZE="2">Expected / Obtained</FONT></TD>
    <TD WIDTH="334"><% out.println(rs.getString("Degree_ExpObt_2")); %></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#000000"><FONT COLOR="#FFFFFF" SIZE="4">Work Experience</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2"><FONT SIZE="2">Employer 1</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#FFFFFF" VALIGN="top">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Employer</FONT></TD>
    <TD COLSPAN="2"><% out.println(rs.getString("Employer_Name_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Dates</FONT></TD>
    <TD WIDTH="17%"><FONT SIZE="2">From</FONT></TD>
    <TD WIDTH="53%"><% out.println(rs.getString("Start_Date_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"> </TD>
    <TD WIDTH="17%">To</TD>
    <TD WIDTH="53%"><% out.println(rs.getString("End_Date_1")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Role</FONT></TD>
    <TD COLSPAN="2"><% out.println(rs.getString("Role_1")); %></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    <TR>
    <TD COLSPAN="2"><FONT SIZE="2">Employer 2</FONT></TD>
    </TR>
    <TR>
    <TD COLSPAN="2" BGCOLOR="#FFFFFF" VALIGN="top">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Employer</FONT></TD>
    <TD COLSPAN="2"><% out.println(rs.getString("Employer_Name_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Dates</FONT></TD>
    <TD WIDTH="17%"><FONT SIZE="2">From</FONT></TD>
    <TD WIDTH="53%"><% out.println(rs.getString("Start_Date_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"> </TD>
    <TD WIDTH="17%">To</TD>
    <TD WIDTH="53%"><% out.println(rs.getString("End_Date_2")); %></TD>
    </TR>
    <TR>
    <TD WIDTH="30%"><FONT SIZE="2">Role</FONT></TD>
    <TD COLSPAN="2"><% out.println(rs.getString("Role_2")); %></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
              <TR>
    <TD COLSPAN="2" BGCOLOR="#000000"><FONT COLOR="#FFFFFF" SIZE="4">Other Skills</FONT></TD>
    </TR>
         <TR>
    <TD COLSPAN="2" VALIGN="top">
    <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="4" WIDTH="807">
    <TR>
                   <TD COLSPAN="2"><FONT SIZE="2">Foreign Languages</FONT></TD>
                   </TR>
                   <TR>
    <TD WIDTH="57"><FONT SIZE="2">Language</FONT></TD>
    <TD WIDTH="250"><FONT SIZE="2">Proficiency</FONT></TD>
    </TR>
    <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Language_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Language_Prof_1")); %></TD>
    </TR>
                                  <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Language_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Language_Prof_2")); %></TD>
    </TR>
                                  <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Language_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Language_Prof_3")); %></TD>
    </TR>
                   <TR>
                   <TD COLSPAN="2"><FONT SIZE="2">IT Skills</FONT></TD>
                   </TR>
                   <TR>
    <TD WIDTH="57"><FONT SIZE="2">Skill</FONT></TD>
    <TD WIDTH="250"><FONT SIZE="2">Proficiency</FONT></TD>
    </TR>
                   <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Skill_1")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Skill_Prof_1")); %></TD>
    </TR>
                   <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Skill_2")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Skill_Prof_2")); %></TD>
    </TR>
                   <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Skill_3")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Skill_Prof_3")); %></TD>
    </TR>
                   <TR>
    <TD BGCOLOR="#FFFFFF" WIDTH="57"><% out.println(rs.getString("Skill_4")); %></TD>
    <TD BGCOLOR="#FFFFFF" WIDTH="250"><% out.println(rs.getString("Skill_Prof_4")); %></TD>
    </TR>     
                   </TABLE>          
                   </TABLE>
              </TABLE>
         </TABLE>
    </TABLE>
    <%
    if(request.getParameter("RejectButton") != null) {
    level = Integer.parseInt(rs.getString("Level_ID"));
    level = 4;
    String levelString = Integer.toString(level);
    session.setAttribute("email", email);
    session.setAttribute("level", levelString);
    response.sendRedirect("CurrentStatus.jsp");
    else if(request.getParameter("AcceptButton") != null) {
    level = Integer.parseInt(rs.getString("Level_ID"));
    if(level < 4) {
    level = level + 1;
    String levelString = Integer.toString(level);
    session.setAttribute("email", email);
    session.setAttribute("level", levelString);
    else {
    level = 4;
    String levelString = Integer.toString(level);
    session.setAttribute("email", email);
    session.setAttribute("level", levelString);
    response.sendRedirect("CurrentStatus.jsp");
    st.close();
    con.close();
    %>
    </FORM>
    </BODY>
    </HTML>
    CurrentStatus.jsp
    <%@ page import="java.sql.*, java.net.*" %>
    <HTML>
    <HEAD>
    <TITLE>APPLICANT FORM</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:fypproject","","");
    Statement st = con.createStatement();
    String level                = (String)session.getAttribute("level");
    String email = (String)session.getAttribute("email");
    String query = "UPDATE Login_Details SET Level_ID = '" + level + "' WHERE Email_Address = '" + email + "'";
    st.executeUpdate(query);
    %>
    <DIV ALIGN = "center">
    <H2> Candidate status has been moved to: <% out.println(level); %></H3>
    </DIV>
    </BODY>
    </HTML>
    <%
    st.close();
    con.close();
    %>
    any ideas at all??? please??! :o(

    instead of using a submit input try using two button inputs, names can be the same.
    <input type='button' value='accept' name='aButton' onClick='js_func("accept")'>
    <input type='button' value='reject' name='aButton' onClick='js_func("reject")'>
    write a javascript function and catch the value sent and redirect to a controller (a jsp or a servlet) which would re-route the request to your bean
    function js_function(theValue)
    window.location = "controller.jsp?action=" + theValue
    this is how you can make a button act as a submit button. i guess this is your best bet.
    cem.

  • HELP!!!!!!!!! 3 Submit Buttons on 1 JSP page

    Hi,
    I would really appreciate any assistance to my question. I have 3 submit buttons that need to be passed to another JSP page.
    1. Is it possible to use submit 3 times like here?
    <input type="submit" name="btnSub" value="Modify">
    <input type="submit" name="btnSub" value="Remove">
    <input type="submit" name="btnSub" value="Pssword Reset">
    2. Below is my code. Can you show me how to pass the values from the 3 submit buttons?
    Thanks in Advance!
    </form>
    </td>
    <td width=212 style='width:159.0pt;background:#FFE599;padding:0in 0in 0in 0in'>
    <!-- Profile Maintenance ------------------------------------------------------------------------->
    <div align=center>
    <table border=2 cellpadding=0 style='mso-cellspacing:1.5pt;mso-padding-alt:
    0in 0in 0in 0in'>
    <form NAME="queryUserName" method="GET" ENCTYPE="application/x-www-form=urlencoded"
    action="securityProfile.jsp"> <!-- onSubmit = "return checkForm();"-->
    <tr>
    <td colspan=2 style='padding:0in 0in 0in 0in'>
    <p class=MsoNormal align=center style='text-align:center'><b><span
    style='font-size:10.0pt;font-family:Geneva;color:#990000'> Profile Maintenance </span></b> </p>
    </td>
    </tr>
    <tr>
    <td align=center colspan=2 style='padding:0in 0in 0in 0in'>
    <select name="UserID" size="5">
    <option selected value="NO_VALUE"> --Select an Admin-- </option>
    <% while(rset.next())
    v_ID = rset.getString("ID");
    v_Name = rset.getString("Name");
    %>
    <option value="<%= v_ID %>"><%= v_Name%></option>
    <% System.out.println("List of Options counter: *** " + i + " ***"); %>
    <!-- <option value="<%= i %>" > <%= v_Name%> </option> -->
    <%
         i = i + 1;
    %>
    </select></font></td>
    </td>
    </tr>
    <tr>
    <td align="center" style='padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:7.5pt;font-family:Geneva;
    color:#990000'> To modify admin's access to Corp Functions, Business Units, & Dept IDs: </span><br>
    <input type="submit" name="btnSub" value="Modify Profile"> </p>
    </td>
    </tr>
    <tr>
    <td align="center" style='padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:7.5pt;font-family:Geneva;
    color:#990000'> To remove an admin: </span><br>
    <input type="submit" name="btnSub" value="Remove Admin"> </p>
    </td>
    </tr>
    <tr>
    <td align="center" style='padding:0in 0in 0in 0in'>
    <p class=MsoNormal><span style='font-size:7.5pt;font-family:Geneva;
    color:#990000'> To change admin's password: </span><br>
    <input type="submit" name="btnSub" value="Password Reset"> </p>
    </td>
    </tr>
    </form>

    When implementing the code below, it only reads the first form, and then stops there. It doesn't execute the 2nd form.
    <form name='form_1' action='T2.jsp'>
    <input type=hidden name="user" value="Me">
    <input type=submit value='Button1'>
    <form name='form_2' action='T3.jsp'>
    <input type=submit value='Button2'>
    </form>
    </form>
    If I put each form separtely like below, then it returns nothing.
    <form name='form_1' action='T2.jsp'>
    <input type=hidden name="user" value="Me">
    <input type=submit value='Button1'>
    </FORM>
    <form name='form_2' action='T3.jsp'>
    <input type=submit value='Button2'>
    </FORM>
    What's my other alternative? I would appreciate any help.

  • Working with 2  submit buttons in a html form

    I have 2 submit buttons in a form. I will upload a file and save in a filepath in server when I click on one "upload" button. I want to use this file path in the code when I click on another button called"Process".  When I click the process nothing is happening with dump in below code.Form  submits to itself. Is there any better way to do this. Thanks in advance.
    <table width="40%" border="0" style="border: 1px solid black;">
              <form  name="uploadform" action="processfile.cfm" enctype="multipart/form-data"  method="post">
              <tr>
                        <td><input type="file"  name="FileContents" size="25">
                            <input type="button" name="action" id="action" value="Upload">
                        </td>
              </tr>
              <tr>
                        <td align="middle">
                                  <input type="button" name="submitaction" id="process" value="Process">
                          </td>
              </tr>
              </form>
        </table>
    <cfset variables.filepath ="">
    <cfif isdefined("form.action") AND form.action eq "upload">
                 <cffile action = "upload"  fileField = "FileContents" destination = "C:\test\" accept = "text/plain" nameConflict="overwrite">
              <cfset variables.filepath= "C:\test\#cffile.serverFile#">
    <cfelseif isdefined("form.submitaction") AND form.submitaction eq "process">
              <cfdump var="#variables.filepath#">
    </cfif>

    Hi tburra,
    You can try the below code. This dumps the value of the path as well.
    <cfif isDefined('Form.tmpfile1')> <cfset root = ExpandPath("/Upload")><!---location where file should be uploaded---> <cfset filename=GetFileFromPath(Form.tmpFile1)> <cfset FileExt=ListLast(filename,".")> <cfset variables.filepath =""> <cfset filename = "BidDocument1." & FileExt>  <cffile action="upload" filefield="BidDoc1" destination="C:\Upload\" nameconflict="overwrite" accept="application/pdf,application/msword,application/vnd.ms-excel,text/plain,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"> <cfset variables.filepath= "C:\test\#cffile.serverFile#"> <cfdump var="#variables.filepath#"> </cfif> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>cffileupload Document</title> <form name="form1" enctype="multipart/form-data" method="post"> <input type="hidden" name="tmpfile1" value="" /> <input  type="file"  name="BidDoc1"  onchange="setFile(this.form);" /> <input type="submit" name="save1" value="Upload" /> </form> <button onclick="location.href='processfile.cfm'">Process</button> </html>
    This should help you.
    Regards,
    Anit Kumar

  • Jsp Submit button

    Hi,
    I am using a two submit buttons in my jsp, inside a form.
    I am using struts, and when i click one submit button i need it should open a new window.
    How can i use url so that it will also using action mapping..
    My code is..
    <html:submit property="workManagementButton" onclick=window.open('/manageWorkItem.do?action=init','mywin','left=20,top=20,width=500,height=500,toolbar=1,resizable=0')><bean:write name="alert" property="alertId"/></html:submit>
    but i can't open a new window with this code..
    Can any one help how i can moidify the above code..

    <logic:notEmpty name="alertForm" property="alerts">
         <logic:iterate id="alert" name="alertForm" property="alerts">
              <tr>
              <td>
                   <div align="center">
                   <html:multibox property="selAlertIds">
                   <bean:write name="alert" property="alertId"/>
                   </html:multibox>
                   </div>
              </td>
              <td>
                   <div align="center"><bean:write name="alert" property="alertLocalTime"/></div>
              </td>
              <td>
                   <div align="center"><bean:write name="alert" property="segmentSN"/></div>
              </td>
              <td>
                   <div align="center">
                        <html:multibox property="selMangedAlertIds">
                        <bean:write name="alert" property="alertId"/>
                        </html:multibox>
                   </div>
              </td>
              --%>
              <td>
              <div align="center">
              <bean:write name="alert" property="alertWorkItem"/></div>
              </td>
              <td>
                   <div align="center">                
                   <html:submit property="viewTrendButton"><bean:write name="alert" property="alertId"/></html:submit>
                   </div>
              </td>
              <td>
                   <div align="center">                
                   <html:submit property="viewPatternButton"><bean:write name="alert" property="alertId"/></html:submit>
                   </div>
              </td>
              <td>
                   <div align="center">
                        <html:submit property="workManagementButton" onclick=window.open('/manageWorkItem.do?action=init','mywin','left=20,top=20,width=500,height=500,toolbar=1,resizable=0')><bean:write name="alert" property="alertId"/></html:submit>
                   </div>
              </td>          
              </tr>
         </logic:iterate>
         </logic:notEmpty>
    The above code is inside a form..
    So when i click workManagementButton it should open a new window and go through action mentioned..
    it is going through the path but i can't open a new window with above code..
    Can you please suggest..

Maybe you are looking for

  • SRM MDM 3.0 Integration with PI 7.1

    I have the integration scenario where Supplier list need to transfer from SRM 7.0 to MDM 7.1 using the PI 7.1. Imported  the content into ESR (SRM Server 7.0,SRM MDM catalog 3.0 ) .   I have 2 issues. 1. Try to transfer the process integration scenar

  • Is running boot camp bad for a mac?

    I have a mac and I want to get bootcamp to run Microsoft Publisher on it but I don't want to do it if it will be bad or slow down the computer in any way. Please let me know if you have answers!

  • Itunes download doesn't display option to download itunes

    I am on the apple store to download itunes, but the link doesn't provide an option to download the app.  The page where the download is supposed to be doesn't have the option just the Red Hot Chili Peppers.

  • Where is the menu bar

    Most programs including Firefox have a menu bar. This seems to have gone in FF4. How do I get it back, or do I go back to FF3.x

  • DMG Files not opening on my G3/366 clamshell (running 0S X 10.4.11)

    I have one final issue with my G3/366 clamshell (running 0S X 10.4.11), cant seem to add software. Download a dmg file, extracts to desktop but cant open extracted file. I've done a Disk repair on start up but that didnt help, anyone got any suggesti