Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Order forms??

  • 05-11-2004 7: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,740 ✭✭✭mneylon




  • Registered Users, Registered Users 2 Posts: 5,356 ✭✭✭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