Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Order forms??

  • 05-11-2004 08:33PM
    #1
    Closed Accounts Posts: 680 ✭✭✭


    I am looking to make an order form for my friends buisness site, yet I have no idea how to go about it.

    It doesn't have to be secure btw


Comments

  • Registered Users, Registered Users 2 Posts: 7,742 ✭✭✭mneylon




  • Registered Users, Registered Users 2 Posts: 5,360 ✭✭✭NeVeR


    heres one i use,
    <form action="thankyou.php" method="post">
    
          <table width="531" border="0" cellspacing="0" cellpadding="0">
            <!--DWLayoutTable-->
            <tr>
              <th height="14" scope="row"><div align="left"></div></th>
              <td></td>
              <td width="243"></td>
              </tr>
            <tr bgcolor="#EFF7FA">
              <th width="199" height="22" scope="row"><div align="left"><strong><span class="style2">Full Name </span></strong></div></th>
              <td width="121"><div align="left">
                <input name="name" type="text" id="name" size="15">
              </div></td>
              <td bgcolor="#EFF7FA">&nbsp;</td>
              </tr>
            <tr>
              <th height="86" align="left" valign="top" scope="row"><div align="left"><strong><span class="style2">Address</span></strong></div></th>
              <td><div align="left">
                <textarea name="address" cols="20" rows="4" id="address"></textarea>
              </div></td>
              <td>&nbsp;</td>
              </tr>
            <tr bgcolor="EFF7FA">
              <th height="22" scope="row"><div align="left"><strong><span class="style2">Domain name </span></strong></div></th>
              <td><div align="left">
                <input name="domain" type="text" id="domain" size="15">
              </div></td>
              <td align="left" valign="top" class="style4"><div align="left"><span class="style4"><a href="http://www.namecheap.com" target="_blank">Please check</a> if your domain is available to be registered </span></div></td>
              </tr>
            <tr>
              <th height="22" scope="row"><div align="left"><strong><span class="style2">E-mail address </span></strong></div></th>
              <td><div align="left">
                <input name="email" type="text" id="email" size="15">
              </div></td>
              <td align="left" class="style4">Must be valid</td>
              </tr>
            <tr bgcolor="EFF7FA">
              <th height="22" scope="row"><div align="left"><strong><span class="style2">Phone Number </span></strong></div></th>
              <td><div align="left">
                <input name="phone" type="text" id="phone" size="15">
              </div></td>
              <td align="left" class="style4">please include int codes </td>
              </tr>
            <tr>
              <th height="22" scope="row"><div align="left">What kind of site</div></th>
              <td><div align="left">
                <input name="site" type="text" id="site" size="15">
              </div></td>
              <td align="left" class="style4">Personal/Business/what kind of business/ basically what your site to be </td>
              </tr>
            <tr bgcolor="EFF7FA">
              <th height="22" scope="row"><div align="left">How many pages </div></th>
              <td><div align="left">
                <input name="pages" type="text" id="pages" size="15">
              </div></td>
              <td align="left" class="style4">between 1 - 10</td>
              </tr>
            <tr>
              <th height="14" align="left" valign="top" scope="row">Page Names </th>
              <td><textarea name="pagenames" cols="20" rows="4" id="pagenames">Just fill in the names of the pages you would like. if you picked 5 pages, then write 5 page names. like "Home", "Contact Us" etc </textarea></td>
              <td></td>
              </tr>
            <tr>
              <th height="14" align="left" valign="top" scope="row"><!--DWLayoutEmptyCell-->&nbsp;</th>
              <td><!--DWLayoutEmptyCell-->&nbsp;</td>
              <td></td>
            </tr>
            <tr>
              <th height="14" align="left" valign="top" scope="row"><!--DWLayoutEmptyCell-->&nbsp;</th>
              <td><input type="submit" name="Submit" value="Submit">
                <input type="reset" name="Submit2" value="Reset"></td>
              <td></td>
            </tr>
          </table>
        </form>
    

    and put this on a page called thankyou.php
    <?php 
    $subject = "New email"; 
    $message = $_POST['name'].",\n".$_POST['address'].",\n".$_POST['domain'].",\n".$_POST['email'].",\n".$_POST['phone'].",\n".$_POST['site'].",\n".$_POST['pages'].",\n".$_POST['pagenames'];  
    
    
    
    mail("you@you.com", $subject, $message, $headers);  
    echo 'Thanks '.$_POST['name'].'!<br>Your email has been sent!'; 
    ?>
    

    to see them in action go here

    www.davidstokes.com/testing/order.php


Advertisement