User Tag List

Thanks Thanks:  0
Likes Likes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Website design

  1. #1
    Regular Member steve1975l's Avatar
    Join Date
    Mar 2008
    Location
    Surrey
    Problems Posted
    0
    Problems Solved
    0
    Best Answers
    0
    Good Answers
    0
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vehicle InfoStats





    Default Website design

    I have started building a site in html. I need some help making a contact us form script. My host has a MS SQL database but I am way out of my depth now and don't undertsnad it.

    Can anyone help me out please. As I work for a very small company we can't afford a company to do the design and code especially as I have a boss who hates IT. Perhaps some beer tokens may help for someones hard work.

  2. #2
    Regular Member ukanalyst's Avatar
    Join Date
    Jul 2006
    Location
    Cheshire
    Problems Posted
    0
    Problems Solved
    0
    Best Answers
    0
    Good Answers
    0
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vehicle InfoStats





    Default

    Does your host support asp or PHP/Perl do you know?

  3. #3
    Regular Member VectraV6CDTi's Avatar
    Join Date
    Jun 2005
    Location
    Wilts
    Problems Posted
    0
    Problems Solved
    0
    Best Answers
    0
    Good Answers
    0
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vehicle InfoStats





    Default

    The easiest and quickest way to prompt people to give you information is by putting an anchor tag in a page and using "mailto" in a href tag.

    something like:

    <a href="mailto:contact@somesite.com">Contact us</a>

    This will fire up the users email client when they click on the link with your email address in the To part.

    It depends on what information you need. If you need specific information you will need to use a form.

  4. #4
    Regular Member m8internet's Avatar
    Join Date
    Dec 2006
    Location
    Cumbernauld, Scotland
    Problems Posted
    0
    Problems Solved
    0
    Best Answers
    0
    Good Answers
    0
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vehicle InfoStats





    Default

    Several ways to make contact scripts

    The best method is on servers that support sendmail, that way the email address is completely hidden from spambots
    The worst method is the href as this is easily read by spambots and slurps

    However, for further advice we need your server specs, however given it is a MS SQL database I assume it is a Windows server
    Does it support CGI?
    Does it support sendmail?

  5. #5
    Regular Member steve1975l's Avatar
    Join Date
    Mar 2008
    Location
    Surrey
    Problems Posted
    0
    Problems Solved
    0
    Best Answers
    0
    Good Answers
    0
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vehicle InfoStats





    Default

    Thanks for the replies. I need the mail hidden to reduce junk.

    I have this pacakage on MS server PHP5, CGI but unsure as to sendmail
    http://www.webfusion.co.uk/webhostin...ndows-asp-net/

  6. #6
    Regular Member JuzzyD's Avatar
    Join Date
    Jun 2006
    Location
    Somewhere...
    Problems Posted
    0
    Problems Solved
    0
    Best Answers
    0
    Good Answers
    0
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vehicle InfoStats





    Default

    "ASPEmail, CDOSYS & Jmail Components"

    These would be the components you would need (as detailed on the page you posted), do a search on Google on them and you may find a sample script or two that will help.

  7. #7
    Regular Member RSV_Ecosse's Avatar
    Join Date
    Mar 2006
    Location
    Falkirk, Scotland
    Problems Posted
    0
    Problems Solved
    0
    Best Answers
    0
    Good Answers
    0
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vehicle InfoStats





    Default

    Or you could use Jotform :-

    http://jotform.com/

    It's not perfect, far from it, but its quick and simple to set up.

  8. #8
    Regular Member steve1975l's Avatar
    Join Date
    Mar 2008
    Location
    Surrey
    Problems Posted
    0
    Problems Solved
    0
    Best Answers
    0
    Good Answers
    0
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vehicle InfoStats





    Default

    Thanks, looks easy to do but I need the database bit and the submit.php bit.

    <form action="http://www.jotform.com/submit.php" method="post" name="q_form_81833626180">
    <input type="hidden" name="formID" value="81833626180" />

  9. #9
    Ex Vec-C Admin Ian-Highlander's Avatar
    Join Date
    Jun 2008
    Location
    Ely, Cambridgeshire
    Problems Posted
    0
    Problems Solved
    0
    Best Answers
    0
    Good Answers
    0
    Post Thanks / Like
    Mentioned
    57 Post(s)
    Tagged
    0 Thread(s)
    Vehicle InfoStats

    Vehicle : Insignia Tourer

    Trim : Elite

    Engine : 2.0 CDTI (160ps)

    Year : 2010

    Default

    Here's the one I wrote for one of the websites I run, not particularly pretty as I was in a hurry, but you can adapt this to suit your needs easily enough.

    sendemail.php this sits on the server and gets called by the contact.php page then verifies the info passed to it and sends the email if its all ok. (replace YOUREMAIL@YOUREMAIL.COM with the email address you want the emails to go to. You will also need to strip out all references to my site (if I missed any) and the css.
    Code:
    <table width="100&#37;" cellpadding="0" cellspacing="0" class='pagecontent'>
     <tr>
      <td align='center' class='contenttitle'>Contact Us</td>
     </tr>
    </table>
    <p>&nbsp;</p>
    <table width="100%" cellpadding="0" cellspacing="0">
     <tr>
      <td align="center" valign="top"><div class="pagecontent" align="center" style="overflow: auto; width: 100%; height: 575; padding:0px; margin: 0px">
    <?
    if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) 
    {
    $badinput = "<b>Your message has not been sent</b><br><br>\n";
    echo $badinput;
    echo "Please press your back button and enter a valid email address\n";
    die();
    }
    if(empty($visitor) || empty($visitormail) || empty($notes )) {
    $badinput = "<b>Your message has not been sent</b><br><br>\n";
    echo $badinput;
    echo "Please press your back button and fill in all the fields\n";
    die();
    }
    $todayis = date("l, F j, Y, g:i a") ;
    $subject = "Mail from YOUR website"; 
    $notes = stripcslashes($notes); 
    $message = "$todayis \n
    Message: $notes \n 
    From: $visitor ($visitormail)\n
    Additional Info : IP = $ip $realip (if more than one IP number is shown here, one is the IP number of a proxy server)\n
    Browser Info: $httpagent \n
    Referral : $httpref \n
    ";
    $from = "From: $visitor <$visitormail>\r\n";
    
    mail(YOUREMAIL@YOUREMAIL.COM, $subject, $message, $from);
    ?>
    <p align="center">
    <b>Date:</b> <? echo $todayis ?> 
    <br /><br />
    Thank You <b><? echo $visitor ?></b> ( <? echo $visitormail ?> ) 
    <br /><br />
    <b>Your Message:</b>
    <br /><br />
    <? $notesout = str_replace("\r", "<br/>", $notes); 
    echo $notesout; ?> 
    <br /><br />
    Has been sent.
    <br /><br />
    Your IP number was logged in case of abuse.
    <br /><br /><br /><br />
    <a href="home.php">Return to index page</a> 
    </p>
    </div></td>
     </tr>
    </table>
    contact.php This is the actual form that the user fills in and that calls the script above.
    Code:
    <table width="100%" cellpadding="0" cellspacing="0" class='pagecontent'>
     <tr>
      <td align='center' class='contenttitle'>Contact Us</td>
     </tr>
    </table>
    <br>
    <table width="100%" cellpadding="0" cellspacing="0">
     <tr>
      <td align="center" valign="top"><div class="pagecontent" align="center" style="overflow: auto; width: 100%; height: 450; padding:0px; margin: 0px">
    <form method="post" action="sendemail.php">
    <?
    $ipi = getenv("REMOTE_ADDR");
    $realipi = getenv("HTTP_X_FORWARDED_FOR");
    $httprefi = getenv ("HTTP_REFERER");
    $httpagenti = getenv ("HTTP_USER_AGENT");
    ?>
    <input type="hidden" name="ip" value="<? echo $ipi ?>" />
    <input type="hidden" name="realip" value="<? echo $realipi ?>" />
    <input type="hidden" name="httpref" value="<? echo $httprefi ?>" />
    <input type="hidden" name="httpagent" value="<? echo $httpagenti ?>" />
    Please note all fields must be completed and a valid email address used<br /><br />
    All use of this form is logged by IP number in case of abuse.<br /><br /><br />
    Your Name: <br />
    <input style="background-color: #000000; color: #C0C0C0; font-face: Verdana; font-weight: bold; font-size: 10pt;" type="text" name="visitor" size="35" />
    <br /><br />
    Your Email Address:<br />
    <input style="background-color: #000000; color: #C0C0C0; font-face: Verdana; font-weight: bold; font-size: 10pt;" type="text" name="visitormail" size="35" />
    <br /><br />
    Mail Message:
    <br />
    <textarea style="background-color: #000000; color: #C0C0C0; font-face: Verdana; font-weight: bold; font-size: 10pt;" name="notes" rows="12" cols="50"></textarea>
    <br /><br>
    <input style="background-color: #404040; color: #C0C0C0; font-face: Verdana; font-weight: bold; font-size: 10pt;" type="submit" value="Send Mail" />
    </form>
    </div></td>
     </tr>
    </table>
    Hope this is of some help

  10. #10
    Regular Member steve1975l's Avatar
    Join Date
    Mar 2008
    Location
    Surrey
    Problems Posted
    0
    Problems Solved
    0
    Best Answers
    0
    Good Answers
    0
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Vehicle InfoStats





    Default

    Thanks but someone can still find my mail address can't they? What does the server bit do? I thought that stores my mail address so it can't be found?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 1&1 Website
    By spennny in forum The 'Off Topic' room
    Replies: 9
    Last Post: 26th September 2012, 21:52
  2. Website design assistence
    By TheWildHaggis in forum General Chat
    Replies: 18
    Last Post: 22nd May 2009, 20:20
  3. Replies: 3
    Last Post: 14th April 2008, 21:23
  4. My second website done: Web design guru's comments?
    By RSV_Ecosse in forum General Chat
    Replies: 11
    Last Post: 12th May 2007, 15:28
  5. Vec-C Website
    By Phatty in forum General Chat
    Replies: 12
    Last Post: 20th December 2005, 10:30

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •