Jump to content

FORM Help


genesissystem

Recommended Posts

Hello guys

Im new in this forum and I want to ask for help on this form

http://www.powerexterminator.com/form0.html

form id="form0" name="form0" method="post" action="">
<table width="70" cellspacing="3">
  <tr>
    <td width="12%"> First Name<font color='#ff0000'>*</font></td>
<td width="7%">
<input type=text name='FirstName' size=10></td><td width="8%"> Last Name<font color='#ff0000'>*</font></td>
<td width="7%">
<input type=text name='LastName' size=10></td><td width="7%"> Zip Code<font color='#ff0000'>*</font></td>
<td width="6%">
<input type=text name='ZipCode' size=10></td>
  </tr>
  <tr>
    <td><label for="Submit">Send</label>
      <input type="submit" name="Submit" value="Submit" id="Submit" /></td>
    <td> </td>
  </tr>
</table>

</form>

 

went user fillout form I want form pass data to this form

only 3 field

http://www.powerexterminator.com/form1.html

 

Link to comment
https://forums.phpfreaks.com/topic/197884-form-help/
Share on other sites

Not exactly sure what you're asking, but to pass form data, you need to use $_POST['variable_name_here'], such as:

 

$FirstName=$_POST['FirstName'];

$LastName=$_POST['LastName'];

$ZipCode=$_POST['ZipCode'];

 

Also, in your form tag, you're not specifying any page for the form to be submitted to under action=, which means it will simply submit it to the same page, and you'll need to set up an isset to handle the form processing:

 

if (isset($_POST['Submit']))

    {

do this

    }

Link to comment
https://forums.phpfreaks.com/topic/197884-form-help/#findComment-1038476
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.