1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem With Basic HTML Form - $10 for a solution

Discussion in 'HTML & JavaScript' started by Jared255, Jun 15, 2010.

  1. Jared255

    Jared255 Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    May 10, 2009
    Messages:
    1,907
    Likes Received:
    1,662
    Location:
    Boston, MA
    Here's the form...
    $10 to anyone who provides an answer that works.
    Code:
    <FORM ACTION="https://www.domain.com/secure14/INDEX.CFM" METHOD="Post">
    name <input type="text" name="Name" > 
    street <input type="text" name="Street" > 
    city <input type="text" name="City" > 
    state <input type="TEXT" name="State" > 
    zip <input type="TEXT" name="Zip" > 
    email <input type="TEXT" name="Email"> 
    amount <input type="TEXT" name="Amount" value="9.00"> 
    
      
    cc #<input type="TEXT" name="CC_Number"> 
    <select name="Month" id="Month"> 
    
    <option value="01">01</option>
    <option value="02">02</option>
    <option value="03">03</option>
    <option value="04">04</option>
    <option value="05">05</option>
    <option value="06">06</option>
    <option value="07">07</option>
    <option value="08">08</option>
    <option value="09">09</option>
    <option value="10" selected>10</option>
    <option value="11">11</option>
    <option value="12">12</option>
    </select>
    /
    <select name="Year" id="Year"> 
    
    <option value="06" selected>2006</option>
    <option value="07">2007</option>
    <option value="08">2008</option>
    <option value="09">2009</option>
    <option value="10">2010</option>
    <option value="11">2011</option>
    <option value="12">2012</option>
    <option value="13">2013</option>
    <option value="14">2014</option>
    </select>
    
     
    
    Required Hidden Fields
    <input type="hidden" name="Merch_ID" value="xxxxx"> 
    <input type="hidden" name="Success_URL" value="http://www.google.com"> 
    <input type="hidden" name="Failure_URL" value="http://www.yahoo.com"> 
    <input type="hidden" name="Tr_Type" value="SALE"> 
    
    
    Required Field
    <input type="submit" name="submit" value="submit">
    When I enter information and click submit (all valid info) it simply brings me to https://www.domain.com/secure14/INDEX.CFM and doesn't go to my success/failure URL.

    Might it be because I need a SSL Cert. on the page? Haven't gotten around to that yet, but would it not work because that's not set up?

    Thanks to anyone who helps... I feel like I'm missing something really easy...

    Jared
     
  2. voyevoda

    voyevoda Regular Member Premium Member

    Joined:
    Mar 21, 2010
    Messages:
    217
    Likes Received:
    97
    Location:
    Eastern Front
    If you didn't have a SSL certificate installed and configured, your site would not be available over https:// at all. Is your site using a stock certificate (provided by Plesk, CPanel, etc.)?

    Sounds like the problem lies in the index.cfm. I haven't used ColdFusion in about seven years, but I may be able to help you with it.
     
  3. showboytridin

    showboytridin Regular Member

    Joined:
    Sep 5, 2009
    Messages:
    348
    Likes Received:
    714
    Location:
    127.0.0.1
    You need to change domain.com/secure14/INDEX.CFM to your sucessfull/failure url in this part of the code:

    Code:
    <FORM ACTION="[COLOR=Red]sucessfull/failure url here[/COLOR]" METHOD="Post">
    
     
  4. SalonSpaSource

    SalonSpaSource Registered Member

    Joined:
    Dec 31, 2009
    Messages:
    58
    Likes Received:
    6
    I suggest visit hxxp://thesslstore.com where you will get chipest RapidSSL SSL Certificate.
     
  5. jbtalk2me

    jbtalk2me Registered Member

    Joined:
    Jan 9, 2009
    Messages:
    54
    Likes Received:
    479
    Use this:

    Code:
    <FORM ACTION="[COLOR=red]<?php echo $_SERVER['SCRIPT_NAME'] ?>[/COLOR]" METHOD="Post">
    
    then include a bit of PHP like this:

    Code:
    <?php 
     // Check for Post
    if ($_SERVER['REQUEST_METHOD'] == 'GET') {
        // Clear success/failure variable do nothing
        $sorf = '';
    } else {   
        // Put your code to determine Success/Failure here
        // If Success $sorf = 's';
        // If Fail $sorf = 'f';
        // Then redirect to appropriate page
    }
     
    
    Include this before the page headers (declarastion)
     
    Last edited: Jun 30, 2010