Jump to content

submit button problem


mindapolis

Recommended Posts

hi, could someone help me understand why after clicking the submit  button it doesn't say submitted successfully?  This is the lone thing about the issset function that I don't understand. 

 

<?php
require_once("functions.php"); 
?>  
<!DOCTYPE HTML>
<html lang="en"> 
<head>
<meta charset="utf-8">
    <title>Untitled Document</title>
    <!--meta description -->
    <link rel="stylesheet" href="siteServices.css">
    <!--[if It IE 9]>
    <script src="http://html5shiv.googlecode-.com/svn/trunk/html5.js">
    </script>
    <![endif]-->
<style type="text/css"> 
#contactForm {
	clear:both;
	margin-left:auto; 
	margin-right:auto; 
	text-align:center; 
}
</style>
</head>

<body>
<div id="mainContent">
<div id="companyInfo">
<div id="header"> 
           <?php logo(); ?>
        <div id="nav">   
            <?php menu(); ?>
        </div>
     </div>
</div>
<table id="contactForm">  
<?php
if(!isset($_POST['submit'])) {
?>  
<form action="" "" method="post">
    	<tr> 
        	<td>  First Name:  </td>
            <td>  <input name="fname" type="text" size="10" maxlength="20"></td>
        	<td>  Last Name:  </td>
            <td>  <input name="lname" type="text" size="15" maxlength="30"></td              
        </tr>
        <tr>  
			<td>  Address:  </td>
            <td>  <input name="address" type="text" size="10" maxlength="20"></td>       
            
        </tr>
        <tr> 
        	<td> <input name="submit" type="button" value="Contact Me!  "></td>
        </tr>
     </form>
<?php
}
echo "submitted successfully"; 
?>   
</table>
     <footer>
         <?php  contactInfo(); ?>
     </ footer>
</div> 
</body> 
</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.