Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2009
    Posts
    68
    Plugin Contributions
    0

    Default Form layout issue / Send button going to wrong place

    This one baffles me. I've done this a million times, and never have I had this issue. The first try I give it a shot on zencart, it duffs up. Maybe there's something I don't know about how zencart handles forms?

    anywhoo...

    http://mandbguns.com/zencart/index.p...age=page&id=27

    That is the site we are looking at. Here are the problems

    1) The code in the form is pushing the Information and Search category boxes to the right off the frame. It's because the "Standard Labor" drop-down has a couple options that are quite long.

    However, I figured that if I had tabling set to 100%, that would break it down smaller. Not sure.

    When I go to edit it, and make the tabling smaller... the page gets cut off. After that, I notice that when I go into the admin section -- the "submit" and "reset" buttons are in the bottom of the text field in admin, and I have to hit the "preview" button up top to move on.

    2) When I leave the code "as-is" (and wide) -- I can fill the form, but when I click "submit" -- it takes me to a broken page (link) -- the link just happens to be the PDF file that I linked (via a href) above the form.

    I really don't know what's causing this lol

    Here's the code...

    HTML Code:
    <table width="100%" align="center">
    	<tr>
    		<td valign="top">
    			<font size="2" face="verdana" color="#000000">Our custom rifles are just that: Custom.  We have never built any two exactly the same.  We offer only the highest quality parts and hand assemble them with exacting attention to fit, finish, tolerances and detail to the customer’s specification. Each project is handled individually in the order received and backed up with M&B’s iron clad guarantee.
    			The options and prices here allow you to configure your new custom rifle the way you want it and obtain a realistic approximate cost for the finished product.  Pick what you want from our list and send the specs along to us.  We will contact you within a day or so and discuss your project in detail and produce a final quote and projected delivery window.
    			<p>
    			Our list of options includes items we have used and can easily recommend; however it is far from exhaustive.  There are literally thousands of aftermarket accessories produced for the AR-15 style rifles and carbines, guns which themselves can take innumerable forms.    If you do not find what you’re looking for on our list, by all means give us a call.  We deal with the largest, best known suppliers in the world and can very likely get what you want and incorporate it into your rifle.
    			<p>
    			<a href="http://www.mandbguns.com/ar15.pdf">To view our Customer's Guide for the AR-15 including pricing, options, and availability. Click here</a>
    			<p>
    		</td>
    	</tr>
    	<tr>
    		<td valign="top">
    			<table width="100%">
    				<tr>
    					<td valign="top">
    					  <form name="ar15form" action="ar15.php" method="post">
    						<input type="hidden" value="[email protected]" name="recipient">
    						<input type="hidden" value="AR-15 Build Inquiry" name="subject">
    							<table width="100%">
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>First Name:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<input type="text" name="fname" size="28" maxlength="40" tabindex="1">
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Last Name:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<input type="text" name="lname" size="28" maxlength="40" tabindex="1">
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Address:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<input type="text" name="address" size="28" maxlength="40" tabindex="1">
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Phone Number:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<input type="text" name="number" size="28" maxlength="40" tabindex="1">
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>E-Mail Address:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<input type="text" name="email" size="28" maxlength="40" tabindex="1">
    									</td>
    								</tr>
    								<tr>
    									<td valign="top">
    										<br><center><font size="2" face="verdana" color="#000000"><b>Please continue below to build your custom firearm</b></center><br>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Barrel Manufacturer:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="barrelmanufacturer">
    											<option>-- Pull down to select --</option>
    											<option>Shilen</option>
    											<option>Krieger</option>
    											<option>DPMS</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Barrel Specs:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="barrelspecs">
    											<option>-- Pull down to select --</option>
    											<option>Chrome Moly: Various twists/contours</option>
    											<option>Stainless Steel: Various twists/contours</option>
    											<option>Chrome Moly 16" 1:9 HBar</option>
    											<option>Chrome Moly 18" 1:9 HBar</option>
    											<option>Chrome Moly 20" 1:9 HBar</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Receivers-Lower Manufacturer:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="receiverslowermanufacturer">
    											<option>-- Pull down to select --</option>
    											<option>DPMS</option>
    											<option>Fulton Armory</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Receiver-Lower Specs:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="receiverlowerspecs">
    											<option>-- Pull down to select --</option>
    											<option>Aluminum, stripped</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Receivers-Upper Manufacturer:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="receiversuppermanufacturer">
    											<option>-- Pull down to select --</option>
    											<option>DPMS</option>
    											<option>EGW</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Receiver-Upper Specs:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="receiverupperspecs">
    											<option>-- Pull down to select --</option>
    											<option>Flat top A-3 stripped</option>
    											<option>A-2 Stripped</option>
    											<option>Lo-Pro flat top</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Trigger Manufacturer:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="triggermanufacturer">
    											<option>-- Pull down to select --</option>
    											<option>Jewell</option>
    											<option>RRA</option>
    											<option>Jard</option>
    											<option>Timney</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Trigger Specs:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="triggerspecs">
    											<option>-- Pull down to select --</option>
    											<option>Two stage match</option>
    											<option>Two stage</option>
    											<option>Single stage match</option>
    											<option>Single stage, 3# and 4#</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Stocks Manufacturer:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="stocksmanufacturer">
    											<option>-- Pull down to select --</option>
    											<option>Magpul</option>
    											<option>DPMS</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Stocks Specs:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="stocksspecs">
    											<option>-- Pull down to select --</option>
    											<option>6 position tactical</option>
    											<option>Precision Rifle</option>
    											<option>ACS</option>
    											<option>A-2 assembly Mil-spec</option>
    											<option>A-2 assembly, adjustable</option>
    											<option>A-2 stocks & fore end set, walnut</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Fore Ends Manufacturer:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="foreendsmanufacturer">
    											<option>-- Pull down to select --</option>
    											<option>Yankee Hill</option>
    											<option>Midwest Industries</option>
    											<option>Hogue</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Fore Ends Specs:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="foreendsspecs">
    											<option>-- Pull down to select --</option>
    											<option>Quadrail, free float, standard</option>
    											<option>Quadrail, free float, mid-length</option>
    											<option>Quadrail, free float, carbine length</option>
    											<option>Plain, free float, all lengths</option>
    											<option>Quadrail, free float, carbine length</option>
    											<option>Overmolded Standard & Carbine</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Miscellaneous:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="miscellaneous">
    											<option>-- Pull down to select --</option>
    											<option>Magpul</option>
    											<option>Midwest Industries</option>
    											<option>A.R.M.S.</option>
    											<option>DPMS</option>
    											<option>JP Enterprises</option>
    											<option>Holland's</option>
    											<option>Armalite</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Miscellaneous Specs:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="miscellaneousspecs">
    											<option>-- Pull down to select --</option>
    											<option>MIAD Modular Grip</option>
    											<option>MOE Grip</option>
    											<option>Ergo Grip</option>
    											<option>Combat fore grip</option>
    											<option>Extended trigger guard</option>
    											<option>Flip-up rear sight (FT receiver)</option>
    											<option>Flip-up front sight</option>
    											<option>Low profile flip-up rear sight</option>
    											<option>Oversized mag, release</option>
    											<option>Tactical steel charging handle</option>
    											<option>Tactical bolt release</option>
    											<option>Ambidextrous safety</option>
    											<option>A-2 compensator</option>
    											<option>Recoil Eliminator compensator</option>
    											<option>QD Muzzle break</option>
    											<option>Radial baffle muzzle break</option>
    											<option>National Match rear sight A-2 / A-1/2</option>
    											<option>National Match front sight post</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Standard Labor:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="standardlabor">
    											<option>-- Pull down to select --</option>
    											<option>M&B Custom</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<label tabindex="0"><font face="verdana" size="2" color="#000000"><b>Standard Labor Specs:</b></label>
    									</td>
    									<td valign="top" width="50%">
    										<SELECT NAME="standardlaborspecs">
    											<option>-- Pull down to select --</option>
    											<option>Assemble rifle - Includes mill & lap barrel shroud perpendicular to bore line</option>
    											<option>Install & adjust Jewell Trigger</option>
    											<option>Install & adjust Rock River 2-stage</option>
    											<option>Install Timney trigger</option>
    											<option>Install & adjust Jard trigger</option>
    											<option>Fit custom barrel from blank (thread, contour, drill, chamber, headspace,<br> crown - Includes barrel extension and pin)</option>
    											<option>Fit custom pre-contoured barrel (chamber, headspace, crown)</option>
    											<option>Install/adjust/bore sight optic sight</option>
    											<option>Ceracote all metal (bead blast phosphate & re coat-one color)</option>
    											<option>Ceracote, two tone finish (upper and lower different colors)</option>
    											<option>Ceracote, extra colors-per color (includes masking)</option>
    											<option>Fit/install Recoil Eliminator or muzzle break</option>
    											<option>Satin glass bead stainless steel</option>
    										</SELECT>
    									</td>
    								</tr>
    								<tr>
    									<td valign="top" width="50%">
    										<font face="verdana" size="2" color="#000000"><b>Other Comments:</b>
    									</td> 
    									<td>
    										<textarea name="comments" cols="25" rows="10" tabindex="10"></textarea> 
    										<br> 
    										<input type="submit" value="Submit" name="submitButtonName"> 
    										<input type="reset"> 
    										<input type="hidden" value="nameField, companyField, emailField, phoneField" name="required">
    									</td>
    								</tr>
    							</table>
    						</form>
    					</td>
    				</tr>
    			</table>
    		</td>
    	</tr>
    </table>
    I feel rather embarassed that an HTML form (with some php calls) is hanging me like this... but here we are. lol

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Form layout issue / Send button going to wrong place

    What is ontents of ar15.php?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2009
    Posts
    68
    Plugin Contributions
    0

    Default Re: Form layout issue / Send button going to wrong place

    Did you mean "what is on contents or ar15.php?"?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Form layout issue / Send button going to wrong place

    What is ontents of ar15.php?
    should have been
    What is the contents of ar15.php?

    or post the code of that file
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Mar 2009
    Posts
    68
    Plugin Contributions
    0

    Default Re: Form layout issue / Send button going to wrong place

    Gladly.

    PHP Code:
    <?PHP
    #error_reporting(0);
    require("/umpa/apps/phpmailer/class.phpmailer.php");
    $mailer = new PHPMailer();
    $mailer->SetLanguage('en''phpmailer/language/');
    $mailer->IsSMTP();
    $mailer->isHTML(true);
    $mailer->Host 'smtp.gmail.com';
    $mailer->SMTPSecurity "tls";
    $mailer->Port 465;
    $mailer->SMTPAuth TRUE;
    $mailer->Username 'xxxxxxxx';
    $mailer->Password 'xxxxx';
    $mailer->From 'xxxxxxxx';
    $mailer->FromName 'M&B Custom Firearms';

    $mailer->AddAddress('xxxxx');
    $mailer->AddAddress('xxxx');

    $mailer->Subject "Build a Gun - AR-15";

    $fname=$_POST['fname'];
    $lname=$_POST['lname'];
    $address=$_POST['address'];
    $number=$_POST['number'];
    $email=$_POST['email'];
    $barrelmanufacturer=$_POST['barrelmanufacturer'];
    $barrelspecs=$_POST['barrelspecs'];
    $receiverslowermanufacturer=$_POST['receiverslowermanufacturer'];
    $receiverslowerspecs=$_POST['receiverlowerspecs'];
    $receiversuppermanufacturer=$_POST['receiveruppermanufacturer'];
    $receiversupperspecs=$_POST['receiverupperspecs'];
    $triggermanufacturer=$_POST['triggermanufacturer'];
    $triggerspecs=$_POST['triggerspecs'];
    $stocksmanufacturer=$_POST['stocksmanufacturer'];
    $stocksspecs=$_POST['stocksspecs'];
    $foreendsmanufacturer=$_POST['foreendsmanufacturer'];
    $foreendsspecs=$_POST['foreendsspecs'];
    $miscellaneous=$_POST['miscellaneous'];
    $miscellaneousspecs=$_POST['miscellaneousspecs'];
    $standardlabor=$_POST['standardlabor'];
    $standardlaborspecs=$_POST['standardlaborspecs'];
    $comments=$_POST['comments'];

    $message="<html>
    <body>
    <table align=\"left\" width=\"1000\">
        <tr>
            <td>First Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $fname</td>
        </tr>
        <tr>
            <td>Last Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $lname</td>
        </tr>
        <tr>
            <td>Address:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $address</td>
        </tr>
        <tr>
            <td>Phone Number:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $number</td>
        </tr>
        <tr>
            <td>Please continue below to build your custom firearm</td>
        </tr>
        <tr>
            <td>Barrel Manufacturer:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $barrelmanufacturer</td>
        </tr>
        <tr>
            <td>Barrel Specs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $barrelspecs</td>
        </tr>
        <tr>
            <td>Receivers-Lower Manufacturer:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $receiverslowermanufacturer</td>
        </tr>
        <tr>
            <td>Receivers-Lower Specs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $receiverlowerspecs</td>
        </tr>
        <tr>
            <td>Receivers-Upper Manufacturer:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $receiversuppermanufacturer</td>
        </tr>
        <tr>
            <td>Receivers-Upper Specs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $receiverupperspecs</td>
        </tr>
        <tr>
            <td>Trigger Manufacturer:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $triggermanufacturer</td>
        </tr>
        <tr>
            <td>Trigger Specs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $triggerspecs</td>
        </tr>
        <tr>
            <td>Stocks Manufacturer:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $stocksmanufacturer</td>
        </tr>
        <tr>
            <td>Stocks Specs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $stocksspecs</td>
        </tr>
        <tr>
            <td>Fore Ends Manufacturer:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $foreendsmanufacturer</td>
        </tr>
        <tr>
            <td>Fore Ends Specs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $foreendsspecs</td>
        </tr>
        <tr>
            <td>Miscellaneous:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $miscellaneous</td>
        </tr>
        <tr>
            <td>Miscellaneous Specs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $miscellaneousspecs</td>
        </tr>
        <tr>
            <td>Standard Labor:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $standardlabor</td>
        </tr>
        <tr>
            <td>Standard Labor Specs:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $standardlaborspecs</td>
        </tr>
        <tr>
            <td>Comments:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    $comments</td>
        </tr>
            </table>
    </body>
    </html>"
    ;

    $mailer->Body $message;

    if(!
    $mailer->Send()) {
      echo 
    "Message was not sent";
      echo 
    "Mailer Error: " $mailer->ErrorInfo;
    } else {
      
    header("Location: http://www.mandbguns.com/zencart");
    }

    ?>

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Form layout issue / Send button going to wrong place

    If you still have time - - edit out the email password
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Mar 2009
    Posts
    68
    Plugin Contributions
    0

    Default Re: Form layout issue / Send button going to wrong place

    Quote Originally Posted by kobra View Post
    If you still have time - - edit out the email password
    edit it as in "xxxxx" which i did after originally posting it, or show it?

    i'm not really comfortable showing that stuff on here, for obvious reasons. not saying people would try anything... but you never know.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Form layout issue / Send button going to wrong place

    edit it as in "xxxxx" which i did after originally posting it
    You got it - - I originally saw the details....

    In response from your OP
    When I leave the code "as-is" (and wide) -- I can fill the form, but when I click "submit" -- it takes me to a broken page (link) -- the link just happens to be the PDF file that I linked (via a href) above the form.
    What happens if ou set this up on a straight html page(not in zencart)??
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Mar 2009
    Posts
    68
    Plugin Contributions
    0

    Default Re: Form layout issue / Send button going to wrong place

    Quote Originally Posted by kobra View Post
    You got it - - I originally saw the details....

    In response from your OP


    What happens if ou set this up on a straight html page(not in zencart)??
    In straight html it works beautifully, which is why I'm so thrown off.

    http://mandbguns.com/ar15test.html

    note: the layout isn't special, it's just a white page with some txt, a link to a pdf, and the forms. i just needed that page for a test and constructor before putting it into zencart.

 

 

Similar Threads

  1. Paypall Button Issue - Form lines deleted after copying
    By RTCA in forum Basic Configuration
    Replies: 1
    Last Post: 3 Feb 2010, 05:40 PM
  2. Next, Previous, Listing Button Layout Issue
    By sfuredi in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 28 May 2009, 03:15 PM
  3. Suddanly unable to send Newsletters - no send button
    By Moncia in forum General Questions
    Replies: 0
    Last Post: 26 Aug 2008, 07:23 AM
  4. my add to cart button goes to wrong place
    By abv101 in forum Basic Configuration
    Replies: 11
    Last Post: 21 May 2008, 01:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg