Jump to content

Dreamweaver8 and tutorials are screwing my PHP form up...


Recommended Posts

OK, i'm having probs with having DW8 put htlm code in my generic form when I simultaneously push a button on the keyboard.<--sarcascm. I'm reading the manual and using tutorials and it's just creating a jumbled mess for me. All i'm trying to do is use a capture form either email or txt file and verify a NASCAR newsletter subscription with an option to purchase a calendar.

 

    I have the PHP script that I can post upon request, it just gets the variables of the input text but something is amiss here... I have a BG pic that covers the page and i'll fill up the white spaces with cool interactives, but I need to get the main form working at least...

 

Any help is appreciated!

 

---------------------ENTIRE CODE-----------------

 

<style type="text/css">

<!--

.style2 {font-weight: bold; }

-->

</style>

<form action="newsletter.php" method="post" enctype="multipart/form-data" name="newsletter">

  <tbody><tr><td class="sc_cart"> </td>

  </tr><tr><td class="container"> </td>

  </tr>

 

 

  <tr>

 

    <td class="container">

      <p align="center"><img src="http://www.nascarlogo/NL_Banner.jpg" width="822" height="78" alt="NASCAR" /></p>

      <div align="center">

        <table class="comm">

          <tbody><tr>

            <td class="comm_hdr"><div align="center"><strong>Tell Us Why You Are A "NASCAR Fan"!</strong></div></td>

    </tr>

            <tr>

              <td class="comm"><ul>

                <li>

                  <textarea class="comm" name="Comments" rows="4" cols="60">*Limit of 300 characters</textarea>

                </li>

              </ul></td>

            </tr></tbody>

        </table>

    </div></td>

  </tr>

 

 

  <tr>

    <td class="container">

 

      <div align="center">

        <table width="374" class="addr">

          <tbody><tr><td width="352" valign="top"><table class="bill_addr">

            <tbody><tr><td class="bill_addr_hdr" colspan="2"><div align="center"><strong>Billing Address</strong></div></td>

            </tr>

              <tr><td width="103" class="addr">Email<font color="blue">*</font></td>

              <td width="228" class="addr_val"><input class="addr" name="Email" value="" size="30" type="text" /></td></tr>

              <tr><td class="addr">Email Validation<font color="blue">*</font></td><td class="addr_val"><input class="addr" name="email_again" value="" size="30" type="text" /></td></tr>

              <tr><td class="addr">First<font color="blue">*</font></td><td class="addr_val"><input class="addr" name="First" value="" size="15" type="text" /></td></tr>

              <tr><td class="addr">Last<font color="blue">*</font></td><td class="addr_val"><input class="addr" name="Last" value="" size="25" type="text" /></td></tr>

             

              <tr><td class="addr">Company</td><td class="addr_val"><input class="addr" name="Company" value="" size="30" type="text" /></td></tr>

              <tr><td class="addr">Address 1<font color="blue">*</font></td><td class="addr_val"><input class="addr" name="Address" value="" size="30" type="text" /></td></tr>

              <tr><td class="addr">Address 2</td><td class="addr_val"><input class="addr" name="Address2" value="" size="30" type="text" /></td></tr>

              <tr><td class="addr">City<font color="blue">*</font></td><td class="addr_val"><input class="addr" name="City" value="" size="15" type="text" /></td></tr>

              <tr><td class="addr">State/Province<font color="blue">*</font></td><td class="addr_val"><input class="addr_value" value="" name="State" size="15" type="text" /></td>

    </tr>

              <tr><td class="addr">Zip Code<font color="blue">*</font></td><td class="addr_val"><input class="addr" name="Zip" size="15" type="text" /></td></tr>

             

              <tr><td class="addr">Phone Number<font color="blue">*</font></td><td class="addr_val"><input class="addr" name="Phone" value="" size="15" type="text" /></td></tr>

              </tbody></table></td>

    <td width="10" valign="top"> </td>

    </tr><tr>

      <td class="addr_foot" colspan="1"><div align="center"><span class="style2"><font color="blue">*</font> Required Fields</span></div></td>

   

</tr></tbody>

        </table>

        <p> </p>

      </div></td>

  </tr>

 

  <tr>

    <td class="container">

      <div align="center">

        <input name="email_list" checked="checked" type="checkbox" />

        <strong>        Yes, I want the 2009 NASCAR Calendar(use payment below), and add me to your E-mailing list</strong></div></td>

  </tr>

 

  <tr>

    <td class="container">

      <div align="center">

        <table class="payment">

          <tbody><tr>

            <td class="payment_hdr" colspan="2"><div align="center"><strong>Purchase Calender by Credit Card</strong></div></td>

          </tr>

            <tr>

              <td class="payment">

              Select card type: </td><td class="payment_value"> <select class="payment" name="paytype" id="selPaytype">

               

                <option class="payment" selected="selected" value="0">Visa

                  </option><option class="payment" value="1">MasterCard

                    </option><option class="payment" value="2">Discover

                      </option><option class="payment" value="3">American Express

                        </option></select></td></tr>

            <tr>

              <td class="payment">Card Number</td>

    <td class="payment_value"> <input class="payment" name="pay1" size="30" value="" autocomplete="off" type="text" /></td>

    </tr>

            <tr><td class="payment">Card Verification Value</td>

    <td class="payment_value"> <input class="payment" name="cvv2" value="" size="4" maxlength="4" autocomplete="off" type="text" />(required)  <a href="http://www.shopsite.com/help/6.1/en-US/sc/lte/cvv2.help.html" target="_blank">(CVV2 Help)</a> </td>

    </tr>

           

            <tr>

              <td class="payment">Name on Card</td>

    <td class="payment_value"> <input class="payment" name="pay2" value="" size="30" type="text" /></td></tr>

            <tr>

              <td class="payment">Company (optional) </td>

              <td class="payment_value"> <input class="payment" name="pay3" value="" size="30" type="text" /></td></tr>

            <tr>

              <td class="payment">Expiration Date</td>

    <td class="payment_value"> <select class="payment" name="pay4_1">

      <option value="01" selected>Jan.        </option><option value="02">Feb.

          </option><option value="03">Mar.

            </option><option value="04">Apr.

              </option><option value="05">May

                </option><option value="06">June

                  </option><option value="07">July

                    </option><option value="08">Aug.

                      </option><option value="09">Sep.

                        </option><option value="10">Oct.

                          </option><option value="11">Nov.

                            </option><option value="12">Dec.

                             

                              </option></select>

      <select class="payment" name="pay4_2">

        <option value="2008">2008

          </option><option value="2009">2009

            </option><option value="2010">2010

              </option><option value="2011">2011

                </option><option value="2012">2012

                  </option><option value="2013">2013

                    </option><option value="2014">2014

                      </option><option value="2015">2015

                        </option><option value="2016">2016

                          </option><option value="2017">2017

                            </option><option value="2018">2018

                              </option><option value="2019">2019

                                </option><option value="2020">2020

                                  </option><option value="2021">2021

                                    </option><option value="2022">2022

                                     

                                      </option></select>

      </td></tr>

            </tbody>

        </table>

      </div></td>

  </tr>

 

 

  <tr>

    <td class="container">

     

      <div align="center">

        <label>

        <input type="submit" name="Submit" value="Send to Register!" />

        </label>

      </div></td>

  </tr>

 

</tbody>

</form>

Link to comment
Share on other sites

OK, after 100 views... let me start out with an easier question. If I want to create a BGpic that covers the entire page, like one of a race at Daytona, maybe 850x850, how would I overlay my form over the pic so that it's functional and still see parts that aren't covered by text fields and such?

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.