Jump to content

For mnot working for PHP...


smokenwhispers

Recommended Posts

PHP file is not grabbing the data. I need to make sure this HTML form is all right. Can someone check it for me?

 

<form action="index-4consultform.php">
<table width="100%">
	<tr>
		<td colspan="4"><div>Date of Entry: <input name="date" type="text"></div></td>
	</tr>
        <tr>
		<td colspan="2"><div align="center"><strong>Job Site Information for Building</strong></div></td>
            <td colspan="2"><div align="center"><strong>Corporate Office Headquarters</strong></div></td>

	</tr>
	<tr>
		<td><div style="float:right">Building Name:</div></td>
            <td><div style="float:left"><input name="a" type="text" size="24" maxlength="100"></div></td>
            <td><div style="float:right">Company:</div></td>
            <td><div style="float:left"><input name="o" type="text" size="24" maxlength="100"></div></td>
	</tr>
        <tr>

		<td><div style="float:right">Building Phone Number:</div></td>
            <td><div style="float:left"><input name="b" type="text" size="12" maxlength="12"></div></td>
            <td><div style="float:right">Address:</div></td>
            <td><div style="float:left"><input name="p" type="text" size="24" maxlength="100"></div></td>
	</tr>
        <tr>
		<td><div style="float:right">Address:</div></td>

            <td><div style="float:left"><input name="c" type="text" size="24" maxlength="100"></div></td>
            <td><div style="float:right">City:</div></td>
            <td><div style="float:left"><input name="q" type="text" size="24" maxlength="100"></div></td>
	</tr>
        <tr>
		<td><div style="float:right">City:</div></td>
            <td><div style="float:left"><input name="d" type="text" size="24" maxlength="50"></div></td>
            <td><div style="float:right">State:</div></td>

            <td><div style="float:left"><input name="r" type="text" size="24" maxlength="100"></div></td>
	</tr>
        <tr>
		<td><div style="float:right">State:</div></td>
            <td><div style="float:left"><input name="e" type="text" size="24" maxlength="100"></div></td>
            <td><div style="float:right">Zip Code:</div></td>
            <td><div style="float:left"><input name="s" type="text" size="24" maxlength="100"></div></td>
	</tr>

        <tr>
		<td><div style="float:right">Zip Code:</div></td>
            <td><div style="float:left"><input name="f" type="text" size="10" maxlength="10"></div></td>
            <td><div style="float:right">Country:</div></td>
            <td><div style="float:left"><input name="t" type="text" size="24" maxlength="100"></div></td>
	</tr>
        <tr>
		<td><div style="float:right">Country:</div></td>

            <td><div style="float:left"><input name="g" type="text" size="24" maxlength="100"></div></td>
            <td><div style="float:right">Phone Number:</div></td>
            <td><div style="float:left"><input name="u" type="text" size="24" maxlength="100"></div></td>
	</tr>
        <tr>
		<td><div style="float:right">Contact Name:</div></td>
            <td><div style="float:left"><input name="h" type="text" size="24" maxlength="100"></div></td>
            <td><div style="float:right">Contact Name:</div></td>

            <td><div style="float:left"><input name="v" type="text" size="24" maxlength="100"></div></td>
	</tr>
        <tr>
		<td><div style="float:right">Contact Phone:</div></td>
            <td><div style="float:left"><input name="i" type="text" size="12" maxlength="12"></div></td>
            <td><div style="float:right">Email:</div></td>
            <td><div style="float:left"><input name="w" type="text" size="24" maxlength="100"></div></td>
	</tr>

        <tr>
		<td><div style="float:right">Size of Building:</div></td>
            <td><div style="float:left"><input name="j" type="text" size="5" maxlength="5">ft.</div></td>
            <td><div style="float:right">Office Hours:</div></td>
            <td><div style="float:left"><input name="x" type="text" size="5" maxlength="5">Open <input name="y" type="text" size="5" maxlength="5">Close</div></td>
	</tr>

        <tr>
		<td><div style="float:right">How many Floors:</div></td>
            <td><div style="float:left"><input name="k" type="text" size="3" maxlength="3"></div></td>
		<td rowspan="4" valign="top"><div style="float:right">Comments:</div></td>
            <td rowspan="4" valign="top"><div style="float:left"><textarea name="z" cols="24" rows="10" wrap="soft"></textarea></div></td>
	</tr>
        <tr>

		<td><div style="float:right">Purpose of Building:</div></td>
            <td><div style="float:left"><select name="l">
              <option value="A01">Condominium</option>
              <option value="A02">Business</option>
              <option value="A03">Apartment</option>
              <option value="A04">Industrial</option>

              <option value="A05">Combo Business|Residential</option>
              <option value="A06">Residential Complex</option>
              <option value="A07">Industrial Complex</option>
              <option value="A08">Combo Business|Condominium</option>
              <option value="A09">Mall|Shopping Center</option>
            </select></div></td>

	</tr>
        <tr>
        	<td valign="top"><div style="float:right">Services you're interested in:<br>(hold ctrl to select more)</div></td>
		<td><div style="float:left"><select name="m" size="6" multiple>
		  <option value="B01">Broadband Over Powerlines</option>
		  <option value="B02">IP Phone</option>
		  <option value="B03">IP Television</option>

		  <option value="B04">WiFi</option>
		  <option value="B05">WIMAX</option>
		  <option value="B06">IP Security System</option>
            </select></div></td>
	</tr>
        <tr>
		<td><div style="float:right">WiFi will be used:</div></td>

            <td><div style="float:left"><select name="n">
              <option value="C01">Lobby</option>
              <option value="C02">Food Court</option>
              <option value="C03">Pool Area</option>
              <option value="C04">Common Area</option>
              <option value="C05">Lounge Area</option>

              <option value="C06">Unlisted</option>
            </select></div></td>
	</tr>
        <tr>
		<td colspan="3"><div align="right"><input name="reset" type="reset" value="Start Over"></div></td>
            <td><div align="left"><input name="submit" type="submit" value="Submit Information"></div></td>
	</tr>
</table>
</form>

Link to comment
Share on other sites

Add a method attribute in your form.

<form action="index-4consultform.php" method="post">

 

Then use $_POST['fieldname'] to get the data. ;)

 

If you have troubles with getting the data, post it up in the PHP Help forum, but I don't think you will. :)

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.