Need help with check out form - Payment method error

When I check out error comes up "Payment Method must be selected" though it is.
The 30 day account option works but Credit cards get the above error.
Anyone able to help me?
Andrew
<h1>Checkout</h1>
<p class="required-h1-tip"><span>*</span> Required field</p>
<p>Please fill out the required fields, delivery address and payment fields.</p>
<hr />
<section class="checkout form-container">
<form name="catwebformform42059" class="form-generic-a checkout-a" id="catwebformform42059" onsubmit="return checkWholeForm42059(this)" action="/FormProcessv2.aspx?WebFormID=10850&amp;OID={module_oid}&amp;OTYPE={module_otype} &amp;EID={module_eid}&amp;CID={module_cid}" enctype="multipart/form-data" method="post">
    <fieldset>
    <h2 class="a">1. Account Information</h2>
    <!--<div class="row">
    <p class="field field-a">
    <label for="username">User Name <em>*</em></label>
    <input type="text" value="{module_username}" id="f-username" class="text" name="UserName" />
    </p>
    <p class="field field-b">
    <label for="password">Password <em>*</em></label>
    <span class="half">
    <input type="password" value="{module_password}" id="f-password" class="text" name="Password" />
    </span></p>
    <p class="field field-b">
    <label for="confirm-password">Confirm <em>*</em></label>
    <span class="half">
    <input type="password" value="{module_password}" id="f-password-confirm" class="text" name="PasswordConfirm" />
    </span></p>
    </div>-->
    <div class="row">
    <p class="field field-a">
    <label for="first-name">First Name <em>*</em></label>
    <input type="text" name="FirstName" class="text" id="f-first-name" value="{module_firstname}" />
    </p>
    <p class="field field-a">
    <label for="last-name">Last Name <em>*</em></label>
    <input type="text" name="LastName" class="text" id="LastName" value="{module_lastname}" />
    </p>
    </div>
    <div class="row">
    <p class="field field-a">
    <label for="email">Email Address <em>*</em></label>
    <input type="text" name="EmailAddress" class="text" id="f-email" value="{module_emailaddress}" />
    </p>
    <p class="field field-a">
    <label for="phone">Phone Number <em>*</em></label>
    <input type="text" name="HomePhone" class="text" id="f-phone" value="{module_homephone}" />
    </p>
    </div>
    <div class="row checkbox"><span class="tick">
    <input type="checkbox" name="CampaignList_20945" class="tick" id="f-updates" />
    </span>
    <label for="newsletter-a">Keep me up to date on product information, sales, and special offerings.</label>
    </div>
    </fieldset>
    <hr />
    <fieldset>
    <h2 class="a">2. Shipping Address</h2>
    <div class="row">
    <p class="field field-a">
    <label for="ShippingAttention">Shipping Name: <em>*</em></label>
    <input type="text" class="text" id="ShippingAttention" name="ShippingAttention" />
    </p>
    </div>
    <div class="row">
    <p class="field field-a">
    <label for="shipping-addr-1">Address Line 1 <em>*</em></label>
    <input type="text" class="text" id="ShippingAddress" name="ShippingAddress" />
    </p>
    <p class="field field-a">
    <label for="shipping-addr-2">Address Line 2</label>
    <input type="text" class="text" id="ShippingAddress2" name="ShippingAddress2" />
    </p>
    </div>
    <div class="row">
    <p class="field field-a">
    <label for="shipping-city">City <em>*</em></label>
    <input type="text" class="text" id="ShippingCity" name="ShippingCity" />
    </p>
    <p class="field field-a">
    <label for="shipping-state">State <em>*</em></label>
    <input type="text" class="text" id="ShippingState" name="ShippingState" />
    </p>
    </div>
    <div class="row">
    <div class="field field-a">
    <p class="field-b">
    <label for="ShippingZip">Zip / Postal Code <em>*</em></label>
    <input type="text" class="text" id="ShippingZip" name="ShippingZip" />
    </p>
    </div>
    <!--  <p class="field field-a">
                    <label for="shipping-phone">Phone Number <em>*</em></label>
                    <input type="text" id="shipping-phone" name="shipping-phone" />
                </p> -->
    </div>
    </fieldset>
    <hr />
    <fieldset>
    <h2 class="a">3. Billing Address</h2>
    <div class="row checkbox"><span class="tick">
    <input type="checkbox" class="tick" value="1" id="f-shipping-same" name="same_shipping" />
    </span>
    <label for="billing-same-as-shipping">Check this box if billing address is the same as shipping address.</label>
    </div>
    <div class="row">
    <p class="field field-a">
    <label for="billing-addr-1">Address Line 1 <em>*</em></label>
    <input type="text" value="{module_homeaddress}" id="BillingAddress" class="text" name="BillingAddress" />
    </p>
    <p class="field field-a">
    <label for="billing-addr-2">Address Line 2 <em>*</em></label>
    <input type="text" class="text" id="BillingAddress2" name="BillingAddress2" />
    </p>
    </div>
    <div class="row">
    <p class="field field-a">
    <label for="billing-city">City <em>*</em></label>
    <input type="text" value="{module_homecity}" id="BillingCity" class="text" name="BillingCity" />
    </p>
    <p class="field field-a">
    <label for="billing-state">State <em>*</em></label>
    <input type="text" value="{module_homestate}" id="BillingState" class="text" name="BillingState" />
    </p>
    </div>
    <div class="row">
    <p class="field field-b">
    <label for="BillingZip">Zip / Postal Code <em>*</em></label>
    <input type="text" value="{module_homezip}" id="BillingZip" class="text" name="BillingZip" />
    </p>
    </div>
    </fieldset>
    <hr />
    <fieldset id="credit-card-information">
    <h2 class="a">4. Payment Options</h2>
    <div class="row">
    <h4>Approved 30 DayAccount Customer</h4>
    <p class="field">Please select   
    </p>
    <input type="radio" name="PaymentMethodType" id="PaymentMethodType" value="8" /><span style="font-size: 18px; color: #ffff00;">Account Customers Only</span><hr />
    <h2>Pay by Credit Card</h2>
    <p class="row row-accepted-cards">
    We accept the following credit cards: <img alt="" src="temp/cards.png" />            </p>
    <label for="card-type">Card Type <em>*</em></label>
    <span class="select">
    <select name="CardType" class="text" id="f-cc-type">
    <option selected="selected" value="1">Visa</option>
    <option value="2">Master Card</option>
    <option value="4">American Express</option>
    </select>    </span>
    </div>
    <div class="row">
    <p class="field field-a">
    <label for="name-on-card">Name on Card <em>*</em></label>
    <input type="text" name="CardName" class="text" id="f-cc-name" />
    </p>
    <p class="field field-a">
    <label for="card-number">Card Number <em>*</em></label>
    <input type="text" name="CardNumber" class="text" id="f-cc-number" />
    </p>
    </div>
    <div class="row">
    <p class="field card-expiration">
    <label for="card-exp-month">Card Expiration <span class="offset">Month</span> <em>*</em></label>
    <span class="select one">
    <select name="CardExpiryMonth" class="s" id="f-cc-exp-month">
    <option selected="selected" value="1">January</option>
    <option value="2">February</option>
    <option value="3">Mar</option>
    <option value="4">Apr</option>
    <option value="5">May</option>
    <option value="6">Jun</option>
    <option value="7">Jul</option>
    <option value="8">Aug</option>
    <option value="9">Sep</option>
    <option value="10">Oct</option>
    <option value="11">Nov</option>
    <option value="12">Dec</option>
    </select>
    </span>
    <label class="offset" for="card-exp-year">Card Expiration Year<em>*</em></label>
    <span class="select">
    <select name="CardExpiryYear" class="xs" id="f-cc-exp-year">
    <option value="2015">2015</option>
    <option value="2016">2016</option>
    <option value="2017">2017</option>
    <option value="2018">2018</option>
    <option value="2019">2019</option>
    <option value="2020">2020</option>
    <option value="2021">2021</option>
    <option value="2022">2022</option>
    </select>
    </span></p>
    </div>
    <div class="row">
    <div style="display: none;">
    <input type="radio" name="PaymentMethodType" class="tick" id="f-payment-method-cc" value="1" />
    <input type="radio" name="PaymentMethodType" id="PaymentMethodType_9" value="10" />
    </div>
    </div>
    <div class="row">
    <p class="field ccvn">
    <label for="ccv-number">CCV Number <em>*</em></label>
    <span class="ccv">
    <input type="text" name="CardCCV" class="text" id="f-cc-cvv" />
    </span></p>
    </div>
    </fieldset>
    <div class="wrap total">
    <p class="sum">Total: <strong><span class="amountSpan"></span></strong></p>
    <p class="action"><button class="button-a" type="submit">Checkout</button></p>
    </div>
    <input type="hidden" name="Amount" class="cat_textbox" id="Amount" readonly="readonly" />
    <script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js"></script>
    <script language="javascript" type="text/javascript">
            //<![CDATA[
            var submitcount42059 = 0;function checkWholeForm42059(theForm){var why = "";if (theForm.Username) why += isEmpty(theForm.Username.value, "Username"); if (theForm.Password && theForm.PasswordConfirm) { why += isEmpty(theForm.Password.value, "Password"); why += isEmpty(theForm.PasswordConfirm.value, "Confirm Password"); if (theForm.Password.value != theForm.PasswordConfirm.value) why += appendBreak("- Password and its confirmation do not match."); if (theForm.Password.value.length < 6) why += appendBreak("- Password must be 6 characters or longer."); }if (theForm.FirstName) why += isEmpty(theForm.FirstName.value, "First Name"); if (theForm.LastName) why += isEmpty(theForm.LastName.value, "Last Name"); if (theForm.HomePhone) why += isEmpty(theForm.HomePhone.value, "Phone Number"); if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value);if (theForm.ShippingAttention) why += isEmpty(theForm.ShippingAttention.value, "Shipping Name");if (theForm.ShippingAddress) why += isEmpty(theForm.ShippingAddress.value, "Shipping Address"); if (theForm.HomePhone) why += isEmpty(theForm.HomePhone.value, "Phone Number"); if (theForm.ShippingState) why += isEmpty(theForm.ShippingState.value, "Shipping State");  if (theForm.ShippingCity) why += isEmpty(theForm.ShippingCity.value, "Shipping City");  if (theForm.ShippingZip) why += isEmpty(theForm.ShippingZip.value, "Shipping Zipcode");
            if (theForm.BillingAddress) why += isEmpty(theForm.BillingAddress.value, "Billing Address");  if (theForm.BillingState) why += isEmpty(theForm.BillingState.value, "Billing State");  if (theForm.BillingCity) why += isEmpty(theForm.BillingCity.value, "Billing City");  if (theForm.BillingZip) why += isEmpty(theForm.BillingZip.value, "Billing Zipcode");
             if (!theForm.PaymentMethodType || getRadioSelected(theForm.PaymentMethodType) == 1) { if (theForm.CardName) why += isEmpty(theForm.CardName.value, "Name on Card"); if (theForm.CardNumber) why += isNumeric(theForm.CardNumber.value, "Card Number"); if (theForm.Amount) why += isCurrency(theForm.Amount.value, "Amount"); } if (theForm.PaymentMethodType) why += checkSelected(theForm.PaymentMethodType, "Payment Method");if(why != ""){alert(why);return false;}if(submitcount42059 == 0){submitcount42059++;theForm.submit();return false;}else{alert("Form submission is in progress.");return false;}}
            // Credit Card info is not required if paying by PayPal, Hosted Credit Card, COD etc
            function ShowCCFields(val) {                           
                if (!document.getElementById('paymentdiv'))
                    return;         
                if (val != 1)
                    document.getElementById('paymentdiv').style.display = 'none';               
                else
                    document.getElementById('paymentdiv').style.display = 'inline';
            //]]>
        </script>
</form>
</section>

Locking this thread.
You only need one post on something

Similar Messages

  • Hi! I am newbie to Reports need help with check boxes

    Hi! I am newbie to Reports need help with check boxes. I am try-in to make a new check boxes that will validate in runtime. I have created two frames and one frame is dummy and other frame has big X line on it with conditions. Is this a right way to create check box! Please help thanks!

    and one frame is dummy and other frame has big X
    line on it with conditions. Is this a right way to
    create check box! Please help thanks!Instead of creating a frame for X, you can create Ractangle and place X in it. Rest is fine.

  • Need help with PHP contact form

    Hi guys,
    I've made a PHP contact form for my site and need help with a couple of things:
    The form action links an external PHP script (scripts/contact-form-script.php) but is there a way I can have it so the PHP script for the form is contained within the same PHP file as my contact form (contact.php)?
    I tried just putting the form code at the top of contact.php but the browser automatically reads the anti-spam re-direct, so maybe that needs revising too?
    The second thing is, how can I make the Name, Email and Message fields mandatory? So if a user tries to submit the form and hasn't filled in one of the required fields and clicks submit, contact.php reloads with a message at the top of the form saying something like 'Complete the required fields' and highlights the relevant field with a red border?
    Here's the code for contact.php:
    <form action="http://www.mydomain.com/scripts/contact-form-script.php" method="post" name="contact" id="contact">
    <p><strong>Name:*</strong><br />
    <input name="name" type="text" class="ctextField" /></p>
    <p><strong>E-mail:*</strong><br />
    <input name="email" type="text" class="ctextField" /></p>
    <p><strong>Telephone:</strong><br />
    <input name="telephone" type="text" class="ctextField" /></p>
    <p><strong>Company:</strong><br />
    <input name="company" type="text" class="ctextField" /></p>
    <p><strong>Address:</strong><br />
    <input name="address1" type="text" class="ctextField" /></p>
    <p><input name="address2" type="text" class="ctextField" /></p>
    <p><strong>Town:</strong><br />
    <input name="town" type="text" class="ctextField" /></p>
    <p><strong>County:</strong><br />
    <input name="county" type="text" class="ctextField" /></p>
    p><strong>Postcode:</strong><br />
    <input name="postcode" type="text" class="ctextField" /></p>
    <p><strong>Message:*</strong><br />
    <textarea name="message" cols="55" rows="8" class="ctextField"></textarea></p>
    <p><input name="submit" value="SEND MESSAGE" class="submitButton" type="submit" /><div style="visibility:hidden; width:1px; height:1px"><input name="url" type="text" size="45" id="url" /></div></p>
    </form>
    And this is the PHP I'm using to submit the form data for contact-form-script.php:
    <?php
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $to = "[email protected]";
    $subject = "Contact from website";
    $message = $headers;
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "E-mail: " . $_POST["email"] . "\r\n";
            $message= '
                <table cellspacing="0" cellpadding="8" border="0" width="500">
                <tr>
                    <td colspan="2"></td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td width="154" style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Name</strong></td>
                  <td width="314" style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$name.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>E-mail address:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$email.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Telephone number:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$telephone.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Company:</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$company.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Address</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$address1.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$address2.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Town</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$town.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>County</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$county.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Postcode</strong></td>
                  <td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$postcode.'</td>
                </tr>
                <tr bgcolor="#eeeeee">
                    <td colspan="2" style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Message</strong></td>
                </tr>              
                <tr bgcolor="#eeeeee">
                    <td colspan="2" style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$message.'</td>
                </tr>              
                <tr><td colspan="2" style="padding:0px;"><img src="images/whitespace.gif" alt="" width="100%" height="1" /></td></tr>
             </table>
    $url = stripslashes($_POST["url"]);
    if (!empty($url)) {
    header( 'Location: http://www.go-away-spam-robots.com' );
    exit();
    mail($to, $subject, $message, $headers);
    header( 'Location: http://www.mydomain.com/sent.php' ) ;
    ?>
    Any help on this would be greatly appreciated.
    Thank you and I hope to hear from you!
    SM

    Revised code with form validation for Name Email and Message:
    <?php
    if (array_key_exists('submit', $_POST)) {
        $name = $_POST['name'];
        $email = $_POST['email'];
        $telephone = $_POST['telephone'];
        $company = $_POST['company'];
        $address1 = $_POST['address1'];
        $address2 = $_POST['address2'];
        $town = $_POST['town'];
        $county = $_POST['county'];
        $postcode = $_POST['postcode'];
        $formMessage = $_POST['message'];
    if (empty($name)) {
                                                $warning['name'] = "Please provide your name";
    if (empty($email)) {
                                                $warning['email'] = "Please provide your email";
    if (empty($formMessage)) {
                                                $warning['message'] = "Please provide your message";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $to = "[email protected]";
    $subject = "Contact from website";
    $message = $headers;
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "E-mail: " . $_POST["email"] . "\r\n";
    $headers  = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
            $message= "
    <table cellspacing='0' cellpadding='8' border='0' width='500'>
                <tr>
                    <td colspan='2'></td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td width='154' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Name</strong></td>
                  <td width='314' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$name."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>E-mail address:</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$email."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Telephone number:</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$telephone."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Company:</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$company."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Address</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$address1."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$address2."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Town</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$town."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>County</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$county."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Postcode</strong></td>
                  <td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$postcode."</td>
                </tr>
                <tr bgcolor='#eeeeee'>
                    <td colspan='2' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Message</strong></td>
                </tr>              
                <tr bgcolor='#eeeeee'>
                    <td colspan='2' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$formMessage."</td>
                </tr>              
                <tr><td colspan='2' style='padding: 0px;'><img src='images/whitespace.gif' alt='' width='100%' height='1' /></td></tr>
             </table>
    $url = stripslashes($_POST["url"]);
    if (!empty($url)) {
    header( 'Location: http://www.go-away-spam-robots.com' );
    exit();
    if (!isset($warning)) {
    mail($to, $subject, $message, $headers);
    header( 'Location: http://www.mydomain.com/sent.php' ) ;
    ?>
    <!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>Untitled Document</title>
    <style type="text/css">
    p {
        margin: 0;
        padding: 10px 0 0 0;
    .warning {
        color:#C00;
    </style>
    </head>
    <body>
    <form action="" method="post" name="contact" id="contact">
    <p><strong>Name:*</strong><br />
    <input name="name" <?php if (isset($warning['name'])) { echo "style='border: 1px solid #C00'"; } ?> type="text" class="ctextField" />
    <?php if (isset($warning['name'])) { echo "<p class='warning'>".$warning['name']."</p>"; }?>
    </p>
    <p><strong>E-mail:*</strong><br />
    <input name="email" <?php if (isset($warning['email'])) { echo "style='border: 1px solid #C00'"; } ?>type="text" class="ctextField" />
    <?php if (isset($warning['name'])) { echo "<p class='warning'>".$warning['email']."</p>"; }?>
    </p>
    <p><strong>Telephone:</strong><br />
    <input name="telephone" type="text" class="ctextField" /></p>
    <p><strong>Company:</strong><br />
    <input name="company" type="text" class="ctextField" /></p>
    <p><strong>Address:</strong><br />
    <input name="address1" type="text" class="ctextField" /></p>
    <p><input name="address2" type="text" class="ctextField" /></p>
    <p><strong>Town:</strong><br />
    <input name="town" type="text" class="ctextField" /></p>
    <p><strong>County:</strong><br />
    <input name="county" type="text" class="ctextField" /></p>
    <p><strong>Postcode:</strong><br />
    <input name="postcode" type="text" class="ctextField" /></p>
    <p><strong>Message:*</strong><br />
    <?php if (isset($warning['message'])) { echo "<p class='warning'>".$warning['message']."</p>"; }?>
    <textarea name="message" <?php if (isset($warning['message'])) { echo "style='border: 1px solid #C00'"; } ?> cols="55" rows="8" class="ctextField"></textarea></p>
    <p><input name="submit" value="SEND MESSAGE" class="submitButton" type="submit" /><div style="visibility:hidden; width:1px; height:1px"><input name="url" type="text" size="45" id="url" /></div></p>
    </form>
    </body>
    </html>

  • Need help with Adobe Interactive Form Saving

    Hi Gurus,
    I need your help with Adobe Interactive form saving.
    I have written the code in pre-save event to prompt a message when user didn't enter any value before saving. The form data should not be saved upon clicking save (Just prompt the message and exit form the form). Can u please advice me how to do this.
    Regards,
    Srini

    see the link: http://forms.stefcameron.com/2008/04/
    it says:
    preSave: Failed validations will not prevent the form from being saved however Acrobat/Reader will issue a special warning message, after issuing the validation error message, to inform the user that the validations failed. Iu2019m guessing this is because the user may be saving the form to continue filling it at a later time so the save canu2019t be completely prevented.
    regards,
    BJagdishwar.

  • Need help with receiving offline form in GP

    I'm new to GP and interactive forms on EP 7.0 SP15 and running into a problem with submitting an offline form and GP starting the process.   The examples were followed on how to set up the callable object with an interactive form.  I've got the form set up to be used as a standalone interactive form and starting a process upon completion.  I've selected the process which is active and completed the mapping.  Went through the steps to manage impersonalized interactive forms.  Downloaded the form, entered data and submit.  Get the message back that it was received successfully.  Went back and checked manage impersonalized... and can see that the form was returned.  Go back to Runtime and can't find the process listed anywhere.  Where is it going?  Is there a way to track it down?  Looked at Maintain queues and checked each queue, can't find anything with a timestamp around the time the last form was submitted.  Any ideas on how to figure this out would be appreciated.
    Thank you,
    Kathy

    Thanks for the reply! I was able to reset the field calculation order
    but have one field that is not populating right away and I have
    changed it's order everywhere?

  • Need help with Automatic Generating Form Numbers

    Hello,
    I am new to all this and have found myself stuck trying to figure out how to have my forms automatiacally generate a new number each time it is used. I tried looking through similar posts but do not understand the directions given there. If someone could help me figure this out I would really appreciate it. Thank you.

    Before opening my forms for responses I am creating a column with my starting form number - 1.  in the cell above(first response) I am setting an equation =B2 +1.  All incoming responses automatically generate an ID number within my responses table.  The form itself will not present the number, but if you were looking for an easy way to track responses w/ an ID it has worked well for me so far.

  • Really need help with basic static forms?!?!

    I was thrown into creating forms for our Business Managers and I am not a developer in any way!  I am a Recruiter, but somewhat tech savvy (or at least I thought I was). 
    I am trying to create basic static forms.  I started by using Adobe Professional and them moved to LiveCycle Designer because of what I thought were better "editable" options when creating the form.  I want to be able to send my manager's forms via e-mail (PDF), they can enter the requesting information in the fields, save a copy for themselves, print, and e-mail to me.  We are not using any of the Adobe Server things, I don't want them to submit via an e-mail button on the form.  We are a non-profit organization and my managers are using all different versions of reader. 
    I am getting extremely frustrated because in testing the form everything seems to be working properly including tab order, print, save and everything I want it to do.  Then, I send them out for my managers to use, for some Manager's they work great, no problems at all!  But then, I keep getting these weird issues from different Managers with the same form.  For one of them, what they typed in the field, now looks like it's behind the text box, like when you select Highlight all, you can see what he typed, but then if you click into the text box, you can see what he typed. Another Manager said, two (crucial) fields would not show the text entered when she tries to save or print, but on screen you can see it????
    So after the rambling, I guess my questions are: should I be using Live Cycle to create such basic forms or should I be using Adobe?  Can anyone recommend a good "FOR DUMMIES" book that will help me figure out what I am doing wrong, and not explain in "IT" language?
    This is really getting embarrassing!! Any help would be greatly appreciated!!!!

    1. Make sure to set the PDF target version. Goto File -> Form Properties (see the first screenshot attached)
         Find out the minimum Reader version used in your organization and set this value accordingly. If you are not sure, select the least recent version.
    2. two (crucial) fields would not show the text entered when she tries to save or print, but on screen you can see it
         This may be due to the visibility settings of the fields. Just make sure that you have selected visible instead of visible (screen only)
         See the second screenshot attached
    Hope this may help you.
    Nith

  • Need help with an Outer Join

    I have the following query which has an outer join and it works perfectly and shows publication paragraph which don't have any maintenance records with a value of 0.
    However when I add to the where clause conditions such as lpm.fac_ident and lpm.start_date, the null values no longer show up in the query(see second SQL statement).
    I am new at SQL and am just trying to make this outer join work. Any help would be appreciated.
    -- THIS WORKS
    SELECT m.publication_paragraph, pm.description, pm.frequency, count(l.publication_paragraph) ACTIVITIES_PERFORMED
    FROM lpm_paragraph_mapping_table m, lpm l, pm_requirements_table pm
    WHERE m.paragraph_alias_mapping = l.publication_paragraph (+)
    GROUP BY m.publication_paragraph, pm.description, pm.frequency
    order by count(l.publication_paragraph);
    -- THIS DOES NOT WORK
    SELECT m.publication_paragraph, pm.description, pm.frequency, count(l.publication_paragraph) ACTIVITIES_PERFORMED
    FROM lpm_paragraph_mapping_table m, lpm l, pm_requirements_table pm
    WHERE m.paragraph_alias_mapping = l.publication_paragraph (+)
    AND l.fac_ident = 'EWR' AND TO_CHAR(l.start_date, 'YYYY') = '2010'
    GROUP BY m.publication_paragraph, pm.description, pm.frequency
    order by count(l.publication_paragraph);
    Edited by: George Heller on Jun 30, 2011 9:47 AM

    fabio_silva wrote:
    Hi,
    I just didn't get. The table (pm_requirements_table pm) haven't any join ???
    Regards,Forgive the ASCII art, but your query looks like:
    ----------  JOIN ----------
    | Alias M | ====> | Alias L |
    | Alias PM |
    ----------- The table pm_requirements_table is not joined at all. Unless it has only a single row, then your resultset will have 1 row for each row in lpm_paragraph_mapping_table (because of the outer join) times the number of rows in pm_requirements_table. Consider this simplified example.
    SQL> select * from t;
            ID DESCR
             1 T 1
             2 T 2
    SQL> select * from t1;
            ID DESCR
             1 T1 1
             2 T1 2
             3 T1 3
             4 T1 4
    SQL> select 1.id, t.descr, t1.descr
      2  from t, t1;
            ID DESCR      DESCR
             1 T 1        T1 1
             1 T 1        T1 2
             1 T 1        T1 3
             1 T 1        T1 4
             1 T 2        T1 1
             1 T 2        T1 2
             1 T 2        T1 3
             1 T 2        T1 4Here, my table t is the result from your join between lpm_paragraph_mapping_table and lpm. My table t1 is your pm_requirements_table. You need something more like:
    SQL> select 1.id, t.descr, t1.descr
      2  from t, t1
      3  where t.id = t1.id;
            ID DESCR      DESCR
             1 T 1        T1 1
             1 T 2        T1 2Assuming you fix that join, you can use a sub-query to apply the predicates to the lpm as Centinul showed, or, if you are on a current version of Oracle, use ANSI join syntax wich would look something like:
    SELECT m.publication_paragraph, pm.description, pm.frequency,
            count(l.publication_paragraph) ACTIVITIES_PERFORMED
    FROM lpm_paragraph_mapping_table m,
       LEFT JOIN lpm l,
          ON m.paragraph_alias_mapping = l.publication_paragraph and
             l.fac_ident = 'EWR' AND
             TO_CHAR(l.start_date, 'YYYY') = '2010'
       JOIN pm_requirements_table pm
          on something
    GROUP BY m.publication_paragraph, pm.description, pm.frequency
    ORDER BY count(l.publication_paragraph);Leaving aside the missing join, the reason why your query as posted does not work is that when there is not a match on m.paragraph_alias_mapping = l.publication_paragraph Oracle will "make up" rows form lpm with all null columns for each row in lpm_paragraph_mapping_table where there is no match. So, when you compare those made up rows from lpm, you are effectively saying where NULL = 'EWR' and TO_CHAR(NULL, 'yyyy') = '2010'. Null is never equal to anything. Any comparision against null is unknown, so the made up rows get filtered out by your predicate.
    John

  • Need Help with checking of 2 queries

    hi,
    I dunno how to check for query that needs 2 of the table component in order to display.
    I need to check for this:
    private void _init() throws Exception {
    weekly_datesDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.weekly_datesRowSet}"));
    progress_reportRowSet.setDataSourceName("java:comp/env/jdbc/Projectinfo");
    progress_reportRowSet.setCommand("SELECT ALL progress_report.ADM_NO, \n progress_report.WEEK_NO, \n progress_report.OBJECTIVE_SET, \n progress_report.OBJECTIVE_ACHIEVED, \n progress_report.SUPERVISOR_COMMENTS, \n progress_report.STATUS_CODE, \n progress_report.PART2_SUBMISSION_DATE, \n progress_report.APPROVAL_DATE, \n student.ADM_NO, \n student.ID_NO, \n student.PASSWORD, \n weekly_dates.WEEK_NO, \n progress_report.PART1_SUBMISSION_DATE, \n student_assignment.PROJECT_CODE, \n student_assignment.ADM_NO, \n project.PROJECT_CODE, \n project.SUPERVISOR, \n project.Co_SUPERVISOR1, \n project.CO_SUPERVISOR2, \n project.PROJECT_TITLE, \n project.OBJECTIVE, \n project.DESCRIPTION, \n project.SPECIFICATION, \n project.CAT_CODE, \n project.LOCATION, \n project.NO_OF_STUDENT, \n project.GROUP_CODE, \n staff.EMP_NO, \n staff.STAFF_ID, \n staff.STAFF_NAME, \n staff.DEPT_CODE, \n staff.ROOM_NO, \n staff.PHONE_NO, \n staff.GROUP_CODE \nFROM progress_report, student, weekly_dates, student_assignment, project, staff\nWHERE staff.STAFF_NAME = ?\n AND staff.STAFF_NAME = project.SUPERVISOR\n AND project.PROJECT_CODE = student_assignment.PROJECT_CODE\n AND student_assignment.ADM_NO = student.ADM_NO\n AND student.ADM_NO = progress_report.ADM_NO\n AND progress_report.WEEK_NO = weekly_dates.WEEK_NO ");
    progress_reportRowSet.setTableName("progress_report");
    progress_reportDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{Page2.progress_reportRowSet}"));
    weekly_datesDataProvider.cursorFirst();
    progress_reportRowSet.setObject(1, getSessionBean1().getAdm());
    and this
    public void selWeekDD_processValueChange(ValueChangeEvent event) {
    Object selectedPersonId = selWeekDD.getSelected();
    try {
    progress_reportDataProvider.setCursorRow(
    progress_reportDataProvider.findFirst("progress_report.WEEK_NO", selectedPersonId));
    getSessionBean1().getProgress_reportRowSet().setObject(1, selectedPersonId);
    progress_reportDataProvider.refresh();
    //form1.discardSubmittedValues("save");
    } catch (Exception e) {
    error("Cannot switch to person " + selectedPersonId);
    log("Cannot switch to person " + selectedPersonId, e);
    public void prerender() {
    if ( selWeekDD.getSelected() == null ) {
    Object firstPersonId = null;
    try {
    weekly_datesDataProvider.cursorFirst();
    firstPersonId = weekly_datesDataProvider.getValue("weekly_dates.week_NO");
    selWeekDD.setSelected(firstPersonId);
    getSessionBean1().getProgress_reportRowSet().setObject(
    1, firstPersonId);
    progress_reportDataProvider.refresh();
    } catch (Exception e) {
    error("Cannot switch to person " +
    firstPersonId);
    log("Cannot switch to person " +
    firstPersonId, e);
    How do i combine the checking of these 2 together, because if i do these 2 query checking like that they give me error for null parameter for 2 or more component but my database already has data and my rowset table already has the query check for parameter....

    Hi,
    I finally got it. But when i try to change the value from teh drop down list to display a new set of data i encounter error...I have the following code:
        public void prerender() {
           if ( selWeekDD.getSelected() == null ) {
               Object firstPersonId = null;
               try {
                   weekly_datesDataProvider.cursorFirst();
                   firstPersonId = weekly_datesDataProvider.getValue("weekly_dates.WEEK_NO");
                   selWeekDD.setSelected(firstPersonId);
                   progress_reportRowSet.setObject(
                          2, firstPersonId);
                   progress_reportDataProvider.refresh();
               } catch (Exception e) {
                   error("Cannot switch to person " +
                           firstPersonId);
                   log("Cannot switch to person " +
                           firstPersonId, e);
        public void selWeekDD_processValueChange(ValueChangeEvent event) {
            Object selectedPersonId = selWeekDD.getSelected();
            try {
                progress_reportDataProvider.cursorFirst();
                progress_reportDataProvider.setCursorRow(
                progress_reportDataProvider.findFirst("weekly_dates.WEEK_NO", selectedPersonId));
                progress_reportRowSet.setObject(2, selectedPersonId);
                progress_reportDataProvider.refresh();
                form1.discardSubmittedValues("selWeekDD");
            } catch (Exception e) {
                error("Cannot switch to person " + selectedPersonId);
                log("Cannot switch to person " + selectedPersonId, e);
    Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
    Exception Details: java.sql.SQLException
      Statement parameter 2 not set.
    Possible Source of Error:
       Class Name: com.mysql.jdbc.ServerPreparedStatement
       File Name: ServerPreparedStatement.java
       Method Name: serverExecute
       Line Number: 1031
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1031)
    com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:676)
    com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1030)
    com.sun.sql.rowset.internal.CachedRowSetXReader.readData(CachedRowSetXReader.java:193)
    com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:950)
    com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:1410)
    com.sun.data.provider.impl.CachedRowSetDataProvider.checkExecute(CachedRowSetDataProvider.java:1219)
    com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(CachedRowSetDataProvider.java:329)
    com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorIndex(CachedRowSetDataProvider.java:300)
    com.sun.data.provider.impl.CachedRowSetDataProvider.getRowCount(CachedRowSetDataProvider.java:624)
    com.sun.rave.web.ui.component.TableRowGroup.getRowKeys(TableRowGroup.java:806)
    com.sun.rave.web.ui.component.TableRowGroup.getFilteredRowKeys(TableRowGroup.java:429)
    com.sun.rave.web.ui.component.TableRowGroup.getSortedRowKeys(TableRowGroup.java:1385)
    com.sun.rave.web.ui.component.TableRowGroup.getRenderedRowKeys(TableRowGroup.java:876)
    com.sun.rave.web.ui.component.TableRowGroup.iterate(TableRowGroup.java:1956)
    com.sun.rave.web.ui.component.TableRowGroup.processDecodes(TableRowGroup.java:1679)
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
    com.sun.rave.web.ui.component.Form.processDecodes(Form.java:78)
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
    javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:306)
    com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
    com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    Exception Details: java.lang.RuntimeException
      java.sql.SQLException: Statement parameter 2 not set.
    Possible Source of Error:
       Class Name: com.sun.data.provider.impl.CachedRowSetDataProvider
       File Name: CachedRowSetDataProvider.java
       Method Name: setCursorRow
       Line Number: 343
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(CachedRowSetDataProvider.java:343)
    com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorIndex(CachedRowSetDataProvider.java:300)
    com.sun.data.provider.impl.CachedRowSetDataProvider.getRowCount(CachedRowSetDataProvider.java:624)
    com.sun.rave.web.ui.component.TableRowGroup.getRowKeys(TableRowGroup.java:806)
    com.sun.rave.web.ui.component.TableRowGroup.getFilteredRowKeys(TableRowGroup.java:429)
    com.sun.rave.web.ui.component.TableRowGroup.getSortedRowKeys(TableRowGroup.java:1385)
    com.sun.rave.web.ui.component.TableRowGroup.getRenderedRowKeys(TableRowGroup.java:876)
    com.sun.rave.web.ui.component.TableRowGroup.iterate(TableRowGroup.java:1956)
    com.sun.rave.web.ui.component.TableRowGroup.processDecodes(TableRowGroup.java:1679)
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
    com.sun.rave.web.ui.component.Form.processDecodes(Form.java:78)
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
    javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
    javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:306)
    com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
    com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
    com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
    when i try change the drop down list value, this error occur my data type for both are integer. Anyone pls help thanks
    Message was edited by:
    k_k

  • Need help with php registration form! (Dreamweaver cs5)

    Im creating an advanced php registration form in dreamweaver. I need the following code for:
    ZIP / Postal code, date of birth.
                      or
    if u can help me how to create the entire form with the following fields That will be nice! Im a Newbie:
    First name, lastname, country, zip / postal code, date of birth, username, password, email, verified, and token.
    This is the database i have in mysql:
    User_id, INT, (10), UNSIGNED, NOT NULL, A_INCREMENT
    Firstname, VARCHAR, (50), NOT NULL
    Lastname, VARCHAR, (50), NOT NULL
    Country, VARCHAR, (20), NOT NULL
    Zip, INT, (12), NOT NULL
    Birth_date, DATE, NOT NULL    
    Username, VARCHAR, (15), NOT NULL
    Password, VARCHAR, (40), NOT NULL
    Email, VARCHAR, (100), NOT NULL
    Verified, ENUM, ('n','y'), NOT NULL
    Token, VARCHAR, (40), NOT NULL
    I need to know how to apply the insert recorset server behavior in dreamweaver cs5 so I can get it to run.
    I have been trying diff ways and i just can't get it right.
    Please help! Thanks!!!

    I'm not sure how much you know but first you have to connect your form to the database
    $con = mysql_connect("hostname","admin_name","password");
    Then you have to choose the database you want information be added to.
    mysql_select_db("database name goes here", $con);
    Then you have to write an sql function which will write it in the appropiate columns in your database
    $sql="INSERT INTO what column e.g members (First name, Last name, age, etc)
    VALUES (the names of the textfields on your form), actually double check that part
    ('$_POST[firstname]','$_POST[lastname]','$_POST[age]')";
    $result = mysql_query($sql);
    This is the first and most basic part just to give you an idea how it works.
    Within these snippets you will have to write much more which will beef up the security aswell as check if everything has been entered correctly etc

  • Need help with creating custom form

    hi all,
    i'm working on creating a new form. it has 2 blocks for 2 tables. headers and lines tables. the headers table mostly have columns that are id's from other tables. i.e. customer_id, location_id etc.. in my screen, obviously i would not show the id's. i'll display the descriptions / names of the id's instead like customer_name for customer_id... but in order to do this i created a table that joins more than 2 tables. so in the block query data source name, i enter the name of this view.. then i add a ON-INSERT, ON-UPDATE, ON-DELETE triggers at block level and i call the corresponding package which does the insert, update and delete. i'm able to insert but update and delete causes a problem. "ORA-01445: cannot select ROWID from, or sample, a join.. ".. i'm thinking the reason is that when the form does an update or delete, it locks the record which causes the error.. also the reason i need the view is because i need to be able to query the customer_name in the screen instead of the customer_id... what i can't figure out is how i can make this work... or a work-around may be...
    can anyone help.
    thanks

    Matt Rasmussen wrote:
    You're right that the form is locking the record so you just need to control how it locks the record with an on-lock trigger. From the Oracle Applications Developer's Guide:
    page 3-9:
    When basing a block on a view, you must code ON–INSERT, ON–UPDATE, ON–DELETE, and ON–LOCK triggers to insert, update, delete, and lock the root table instead of the view.
    Most of the on-lock triggers I have written follow this template:
    <pre>     SELECT     field1, field2, field3
         INTO     :block.field3, :block.field2, :block.field3
         FROM     view
         WHERE     rowid = :block.row_id
         FOR UPDATE OF field1, field2, field3;</pre>
    I think once you've added this trigger, your form will work the way you want it.hi,
    i tried your suggestion but still get the same error.. anyways, here are the details of what i have so far.
    here's my table.
    CREATE TABLE XXPN_VR_VOL_HEADERS_ALL
      VOL_HEADER_ID     NUMBER,
      CUSTOMER_ID       NUMBER,
      LEASE_ID          NUMBER,
      LOCATION_ID       NUMBER,
      VAR_RENT_ID       NUMBER,
      PERIOD_SET_NAME   VARCHAR2(15 BYTE),
      PERIOD_NAME       VARCHAR2(15 BYTE),
      IMPORT_FLAG       VARCHAR2(1 BYTE),
      IMPORT_DATE       DATE,
      CALC_TYPE         VARCHAR2(30 BYTE),
      PASSTHROUGH_FLAG  VARCHAR2(1 BYTE),
      COMMENTS          VARCHAR2(2000 BYTE),
      CREATED_BY        NUMBER,
      CREATION_DATE     DATE,
      LAST_UPDATED_BY   NUMBER,
      LAST_UPDATE_DATE  DATE
    );here's my view.
    create or replace view xxpn_vr_vol_headers_v ( row_id
                                                  ,vol_header_id
                                                  ,customer_id
                                                  ,customer_name
                                                  ,lease_id
                                                  ,lease_name
                                                  ,lease_number
                                                  ,location_id
                                                  ,location_code
                                                  ,var_rent_id
                                                  ,var_rent_number
                                                  ,period_set_name
                                                  ,period_name
                                                  ,import_flag
                                                  ,import_date
                                                  ,calc_type
                                                  ,passthrough_flag
                                                  ,created_by
                                                  ,creation_date
                                                  ,comments
                                                  ,last_updated_by
                                                  ,last_update_date )
    as
      select xvvha.rowid
            ,xvvha.vol_header_id
            ,xvvha.customer_id
            ,hp.party_name
            ,xvvha.lease_id
            ,pl.name
            ,pl.lease_num
            ,xvvha.location_id
            ,loc.location_code
            ,xvvha.var_rent_id
            ,pvr.rent_num
            ,xvvha.period_set_name
            ,xvvha.period_name
            ,xvvha.import_flag
            ,xvvha.import_date
            ,xvvha.calc_type
            ,xvvha.passthrough_flag
            ,xvvha.created_by
            ,xvvha.creation_date
            ,xvvha.comments
            ,xvvha.last_updated_by
            ,xvvha.last_update_date
        from xxpn_vr_vol_headers_all xvvha
            ,hz_parties hp
            ,pn_leases_all pl
            ,pn_locations_all loc
            ,pn_var_rents_v pvr
       where -1 = -1
         and xvvha.customer_id = hp.party_id (+)
         and xvvha.lease_id = pl.lease_id (+)
         and xvvha.location_id = loc.location_id (+)
         and xvvha.var_rent_id = pvr.var_rent_id (+);here's my ON-UPDATE trigger block level
    begin
      xxpn_vr_vol_data_pkg.update_vr_vol_hdr_data ( p_vol_header_id     => :XXPNVRVOLHDRS.vol_header_id
                                                   ,p_customer_id       => :XXPNVRVOLHDRS.customer_id
                                                   ,p_lease_id          => :XXPNVRVOLHDRS.lease_id
                                                   ,p_location_id       => :XXPNVRVOLHDRS.location_id
                                                   ,p_var_rent_id       => :XXPNVRVOLHDRS.var_rent_id
                                                   ,p_period_set_name   => :XXPNVRVOLHDRS.period_set_name
                                                   ,p_period_name       => :XXPNVRVOLHDRS.period_name
                                                   ,p_import_flag       => :XXPNVRVOLHDRS.import_flag
                                                   ,p_passthrough_flag  => :XXPNVRVOLHDRS.passthrough_flag
                                                   ,p_comments          => :XXPNVRVOLHDRS.comments
                                                   ,x_last_updated_by   => :XXPNVRVOLHDRS.last_updated_by
                                                   ,x_last_update_date  => :XXPNVRVOLHDRS.last_update_date );
    end;here's my code in ON-LOCK trigger block level
    begin
      select lease_id
            ,lease_name
            ,lease_number
            ,location_id
            ,location_code
            ,customer_id
            ,customer_name
            ,var_rent_id
            ,var_rent_number
            ,period_name
            ,comments
            ,period_set_name
            ,import_flag
            ,passthrough_flag
            ,created_by
            ,creation_date
            ,last_updated_by
            ,last_update_date
        into :XXPNVRVOLHDRS.lease_id
            ,:XXPNVRVOLHDRS.lease_name
            ,:XXPNVRVOLHDRS.lease_number
            ,:XXPNVRVOLHDRS.location_id
            ,:XXPNVRVOLHDRS.location_code
            ,:XXPNVRVOLHDRS.customer_id
            ,:XXPNVRVOLHDRS.customer_name
            ,:XXPNVRVOLHDRS.var_rent_id
            ,:XXPNVRVOLHDRS.var_rent_number
            ,:XXPNVRVOLHDRS.period_name
            ,:XXPNVRVOLHDRS.comments
            ,:XXPNVRVOLHDRS.period_set_name
            ,:XXPNVRVOLHDRS.import_flag
            ,:XXPNVRVOLHDRS.passthrough_flag
            ,:XXPNVRVOLHDRS.created_by
            ,:XXPNVRVOLHDRS.creation_date
            ,:XXPNVRVOLHDRS.last_updated_by
            ,:XXPNVRVOLHDRS.last_update_date
        from xxpn_vr_vol_headers_v
       where rowid = :XXPNVRVOLHDRS.ROW_ID
         for update of lease_id
                      ,lease_name
                      ,lease_number
                      ,location_id
                      ,location_code
                      ,customer_id
                      ,customer_name
                      ,var_rent_id
                      ,var_rent_number
                      ,period_name
                      ,comments
                      ,period_set_name
                      ,import_flag
                      ,passthrough_flag
                      ,created_by
                      ,creation_date
                      ,last_updated_by
                      ,last_update_date;
    end;properties for the block
    Query Data Source Type: Table
    Query Data Source Name: XXPN_VR_VOL_HEADERS_V
    DML Target Type: Table
    DML Target Name: XXPN_VR_VOL_HEADERS_V
    i'd appreciate any help.
    thanks

  • Need help with hiding a form td

    I am trying to set something up where I import a csv file
    with only a bunch of ID numbers. From those numbers I query and get
    the persons name and all that. For each record I want to show a
    <select> drop down menu to choose some options. Everything
    seems to be working fine right now but if I have invalid ID numbers
    it still displays a drop down menu.
    So say I have 13 ID numbers in the csv file and 2 of them are
    invalid. It displays a form select drop down box for all 13. I want
    to hide this somehow if the numbers are invalid. Here is my code:
    <cfloop index="index" list="#csvfile#"
    delimiters="#chr(10)##chr(13)#">
    <cfset list = #listgetAt('#index#',1, ',')#>
    <cfoutput>
    <cfquery name="a" datasource="a">
    SELECT S1.Name, S1.Cardnumber
    FROM IDs S1
    WHERE S1.CardNumber = ('#list#')
    </cfquery>
    </cfoutput>
    <cfif #a.recordcount# lt 1>
    <cfoutput>Invalid ID: #list#</cfoutput>
    </cfif>
    <cfquery name="b" datasource="a">
    select Level
    from IDsAccLevels
    where ID = '#userid#'
    ORDER BY Level
    </cfquery>
    Any help or ideas would be appreciated.
    <cfoutput query="a">
    <tr>
    <td align = "left" style="PADDING-LEFT:
    5px">#CardNumber#</td>
    <td style="PADDING-LEFT: 5px">#Name#</td>
    </cfoutput>
    <form name="test" method="post" action="schedule.cfm"
    target="_self" ID="testrow">
    <td height=21 class="pad5">
    <select name="bldgarea">
    <cfoutput query="b">
    <option value="#Level#">
    #Level# </option>
    </cfoutput>
    </cfif>
    </cfloop>
    </select>
    </form>
    </td>
    </td>
    </tr>

    quote:
    Originally posted by:
    siriiven
    Isn't that what I am doing now?
    No. You are looping through a list, and running individual
    queries inside that loop.

  • Need help with blown out highlights please

    Hi.  I am not very good with Photoshop and need some help on how to fix the blown out highlight areas of this photo, please.  I've spent the past couple of hours trying to figure this out and have not found a good technique yet.  Any help will be most appreciated.

    First brighten the shot up using an adjustment layer and then brush your highlights back to where they are now. the fact your shot looks so dark,makes the bright areas more noticeable. if they are totally blown in the original,you cant get detail where it does not exist, but making the overall image brighter visually should help in my opinion.

  • Need help with Adobe Interactive Forms

    Hi Gurus,
    In my Adobe Form, I have large data and I need to add new body page horizontally after my Master Page. Can any body help me?
    Regards,
    Srini

    You don´t display the body page, it is a template. So you onlyinstantiate the master page. If you want to have some pages with different orientation or something, create a second master page and control the use of the templates/ masters for the body pages/ subforms/content part of the form.
    Regards Otto

  • Need help with saving pdf form

    I created a quote form for our sales people to fill out and email to their customers. I can't figure out how to set it up so that after they fill out the form it can be saved with the field locked so they cant be changed. Is that even a possibility? I've been working on this for 2 days  and just keep going in circles with it.

    You can set up the form so that the fields get set to read-only after the salesman completes the form but before sending it out. This idea is discussed in this topic: http://forums.adobe.com/message/3314067#3314067
    If you get stuck, post again.

Maybe you are looking for

  • How do I get AirPort Express to work with my iPhone 4s?

    Hey there, I installed AirPort Express yesterday to make a wifi network out of the ethernet access that I have. It worked perfectly fine with my MacBook but my iPhone 4s does not seem to be able to hold on to the network! I can connect to the network

  • Question about Mapping& Typecasting

    Hi, I am trying to typecast this map into characters at the end. I started by inputting the file as a byte array and have the treemap map it out and count the characters. But since I used bytes it comes back out to me as integers but what I want to d

  • How to setup my blackberry torch to my mobile internet network will work

    My mobile network has an APN, Proxy #, and a Port #, however I do not know how to find the settings on my torch so the internet will work.  Does anyone know how to help me? thank you

  • Help wih adding a second LCD to a G4 Dual 800

    i have one monitor connected to the original Video card. would like to connect second LCD using DVI, as the VGA connector does not give me as good of image. What are my options? replace original Vid card w/ dual DVI? add a PCI video card? do you know

  • E bom and routing

    Dear All i had created Ebom and assigned to the project after that i had created external activity in routing. when i had selected the compound allocation general  tab i  am finding this type of error No entry found for the specified filter criterion