Jump to content

[SOLVED] Why the F is submit not working


mike12255

Recommended Posts

can anyone find out why my submit buttons does nothing?

 

<!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">
<!--
body {
background-color: #666666;
}

@charset "utf-8";
/* CSS Document */

body {
background-color:#F7F7F7;
}
fieldset {
border:1px dashed #CCC;
padding:10px;
}
legend {
font-family:Arial, Helvetica, sans-serif;
font-size: 90%;
letter-spacing: -1px;
font-weight: bold;
line-height: 1.1;
color:#fff;
background: #666;
border: 1px solid #333;
padding: 2px 6px;
}
h1 {
font-family:Arial, Helvetica, sans-serif;
font-size: 175%;
letter-spacing: -1px;
font-weight: normal;
line-height: 1.1;
color:#333;
}
label {
width:142px;
height:32px;
margin-top:3px;
margin-right:2px;
padding-top:11px;
padding-left:6px;
background-color:#CCCCCC;
float:left;
display: block;
font-family:Arial, Helvetica, sans-serif;
font-size: 115%;
letter-spacing: -1px;
font-weight: normal;
line-height: 1.1;
color:#666;
}
.form {
margin:0;
padding:0;
}
#container {
width:750px;
margin:auto;
padding:10px;
}
#top {
width:680px;
height:50px;
}
#leftSide {
width:530px;
padding-top:30px;
float:left;
}
#rightSide {
background-color:#fff;
width:200px;
padding:5px;
margin-top:40px;
float:right;
border:1px solid #CCC;
font:normal 12px Arial;
color:#CC0000

}


#websitebox {
background-color:#fff;
width:200px;
padding:5px;
margin-top:40px;
float:right;
border:1px solid #CCC;
font:normal 12px Arial;
color:#CC0000

}

#database {
background-color:#fff;
width:200px;
padding:5px;
margin-top:40px;
float:right;
border:1px solid #CCC;
font:normal 12px Arial;
color:#CC0000

}

#pages {
background-color:#fff;
width:200px;
padding:5px;
margin-top:40px;
float:right;
border:1px solid #CCC;
font:normal 12px Arial;
color:#CC0000

}


.clear {
clear:both;
}
.holder {
background-color:#fff;

}
.div_texbox {
width:347px;
float:right;
background-color:#E6E6E6;
height:35px;
margin-top:3px;
padding-top:5px;
padding-bottom:3px;
padding-left:5px;
}

.textbox {
background-image: url(images/16t.png);
background-repeat: no-repeat;
background-position:left;
width:285px;
font:normal 18px Arial;
color: #999999;
padding:3px 5px 3px 19px;
}
.textbox:focus, .textbox:hover {
background-color:#F0FFE6;
}

.username {
    	background-image: url(images/16m.png);
    	background-repeat: no-repeat;
    	background-position:left;
width:285px;
    	font:normal 18px Arial;
    	color: #999999;
    	padding:3px 5px 3px 19px;
}
.username:focus, .username:hover {
background-color:#F0FFE6;
}
   
.password {
    	background-image: url(images/16s.png);
    	background-repeat: no-repeat;
   	background-position:left;
width:285px;
    	font:normal 18px Arial;
    	color: #999999;
    	padding:3px 5px 3px 19px;
}
.password:focus, .password:hover {
background-color:#F0FFE6;
}

.button_div {
width:287px;
float:right;
background-color:#fff;
border:1px solid #ccc;
text-align:right;
height:35px;
margin-top:3px;
padding:5px 32px 3px;
}
.buttons {
background: #e3e3db;
font-size:12px; 
color: #989070; 
padding: 6px 14px;
border-width: 2px;
border-style: solid;
border-color: #fff #d8d8d0 #d8d8d0 #fff;
text-decoration: none;
text-transform:uppercase;
font-weight:bold;
}
-->
</style>

<script language="javascript">
<!--
// PLEASE DO NOT REMOVE THIS. THANKS
// FIND GREATE JAVASCRIPT CODES AT http://www.wallpaperama.com
var state = 'hidden';

function showhide(layer_ref) {

if (state == 'visible') {
state = 'hidden';
}
else {
state = 'visible';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.visibility = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].visibility = state;
}
if (document.getElementById && !document.all) {
maxwell_smart = document.getElementById(layer_ref);
maxwell_smart.style.visibility = state;
}
}
//-->
</script> 

</head>
<div id="container">
  <div id="top">
    <h1>Installation Step 1 Of 3</h1>
  </div>
  <div id="leftSide">
  <fieldset>
<legend>Login details</legend>
<form action="index.php" method="POST" class="form">
  <label for="username">Username</label>
    <div class="div_texbox">
    <input name="username" type="text" class="username" id="username" value="username" onclick="showhide('rightSide');" />
</div>
 <label for="password">Password</label>
    <div class="div_texbox">
    <input name="password" type="password" class="password" id="password" value="password" />
</div>

</fieldset>
<br /><hr size="1"><br />
  <fieldset>
  <legend>Website Info</legend>
  <label for="website">Website Name</label>
  <div class="div_texbox">
  <input name="website" type="text" class="textbox" id="website" value="www.website.com" onclick="showhide('websitebox');"/>
  </div>
  <label for="email">Your Email</label>
  <div class="div_texbox">
    <input name="email" type="text" class="textbox" id="email" value="[email protected]" />
</div>
     <label for="email"># Of Pages</label>
  <div class="div_texbox">
    <input name="pages" type="text" class="textbox" id="Pages" value="4" onclick="showhide('pages');"/>
</div>
    
  </fieldset>
  	<br /><hr size="1"><br />
    
     <fieldset>
  <legend>Database Info</legend>
  <label for="website">DB IP</label>
  <div class="div_texbox">
  <input name="db" type="database" class="textbox" id="db" value="localhost/10.0.2.34.1" onclick="showhide('database');"/>
  </div>
  <label for="email">DB User</label>
  <div class="div_texbox">
    <input name="dbuser" type="text" class="textbox" id="dbuser" value="CASteakComapny" />
</div>
     <label for="email">DB Password</label>
  <div class="div_texbox">
    <input name="dbpass" type="password" class="password" id="dbpass" value="dfsdfsdfsdfsd" />
</div>
     <label for="email">DB Name</label>
  <div class="div_texbox">
    <input name="dbname" type="text" class="textbox" id="dbname" value="Database_Name" />
</div>
  </fieldset>
  	<br /><hr size="1"><br />
    
  <fieldset>
<legend>Client Details</legend>
<label for="name">Client Name</label>
    <div class="div_texbox">
    <input name="cname" type="text" class="textbox" id="cname" value="John Doe" />
</div>
<label for="address">Client Email</label>
<div class="div_texbox">
    <input name="cemail" type="text" class="textbox" id="cemail" value="[email protected]" />
</div>
<div class="button_div">
<input name="submit" type="button" value="submit" class="buttons"/>
</div>
</form>
</fieldset>
  </div>
  <div id="rightSide" style="visibility:hidden">
  <p>Be sure to write down your username and password on a peice of paper, this information CANNOT be retrevied once submitted and will require a new install to fix. (If a client forgets it charge him money for you to reinstall the website he he) 
  </p></div>
    <div id="websitebox" style="visibility:hidden">
  <p>Do not include the http:// you just need to do www.website.com like in the exmaple provided
  </p></div>
    <div id="pages" style="visibility:hidden">
  <p>This should be the number of pages that a regular user would see. NOT ADMIN PAGES they are auto created. This includes things like index pictures products contactus all the pages that anybody cant view.
  </p></div>
  <div id="database" style="visibility:hidden">
  <p>Like Everything else in the installation, you cannot change this once installed so test first to make sure you got a db connection on this ip
  </p></div>
  
  <div class="clear"></div>
</div>
<body>
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/166654-solved-why-the-f-is-submit-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.