Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 3 of 6 FirstFirst 1 2 3 4 5 ... LastLast
Results 21 to 30 of 53
  1. #21
    Senior Member
    Join Date
    Mar 2005
    Location
    Malta
    Posts
    143
    Member #
    9468
    Still not centered with that code mate. By the way, thanks to n3on now I know that I have php. What shall I do now, instead of the CGI stuff?

  2.  

  3. #22
    Senior Member
    Join Date
    Feb 2005
    Location
    Canada
    Posts
    435
    Member #
    8983
    t
    Thee Pyro Wolf

  4. #23
    Senior Member
    Join Date
    Mar 2005
    Location
    Malta
    Posts
    143
    Member #
    9468
    pyrodragon sent this:
    HTML Code:
    <center>
    <form>
    </form>
    </center>
    (repace the form tags with the content you are centering)
    also send the code for your cgi mail program if you can not configure it
    I tried that. But it can't be centered.
    About the CGI, n3on told me that with php it would be better and alot easier. Can I use php?

  5. #24
    Member
    Join Date
    Jan 2005
    Posts
    97
    Member #
    8727
    PHP Code:
    <?php
    if ($_GET['send']) {
        
    mail('daninku@gmail.com',$_POST['name'].' sent you a message'"Enquiry from ".$_POST['name']." <".$_POST['email']."> \n".htmlentities($_POST['comment'])."\r\n\This was an email concerning ".$_POST['commenttype']."r\n\r\nIP: ".$_SERVER['REMOTE_ADDR'],'Reply-To: '.$_POST['email']);
        echo 
    'Thanks for your message! I will reply as soon as possible';
    }
    ?>
    <center><form method="get" action="?send=true" enctype="text/plain" >
    <table border="1" cellpadding="2">
    <tr>
    <td><font face="Comic Sans MS" size="2">
    &nbsp;Name:</font>
    </td>
    <td><input type="text" name="name" />
    </td>
    </tr>
    <tr>
    <td><font face="Comic Sans MS" size="2">&nbsp;E-mail:</td></font>
    <td>
    <input type="text" name="email">

    </td>
    </tr>
    <tr>
    <td><font face="Comic Sans MS" size="2">
    &nbsp;Comment Type:
    </td></font>
    <td>
    <select name="commenttype">
    <option default>Choose One...</option>
    <option value="complaint">Complaint</option>
    <option value="suggestion">Suggestion</option>
    <option value="concern">Concern</option>
    <option value="question">Question</option>

    </select>
    </td>
    </tr>
    <tr>
    <td><font face="Comic Sans MS" size="2"> 
    &nbsp;Subject:
    </td></font>
    <td>
    <input type="text" name="subject" />
    </td>
    </tr>
    <tr>
    <td colspan="2">
    <textarea rows="12" cols="51" name="comment"></textarea> 
    </td>
    </tr>

    <tr>
    <td colspan="2">
    <input type="submit" value="send">&nbsp;<input type="reset">
    </td>
    </table>
    </form>
    </center>
    Rename your .htm extension to .php, and put that code in where your form thing should be. Problem solved. I shoulda told you to do the phpinfo() earlier (Doh!).

  6. #25
    Senior Member
    Join Date
    Feb 2005
    Location
    Canada
    Posts
    435
    Member #
    8983
    <center><form method="get" action="mailto:dainku@gmail.com" enctype="text/plain">
    <table border="1" cellpadding="2">
    <tr>
    <td><font face="Comic Sans MS" size="2">
    &nbsp;Name:</font>
    </td>
    <td><input type="text" name="name" />
    </td>
    </tr>
    <tr>
    <td><font face="Comic Sans MS" size="2">&nbsp;E-mail:</td></font>
    <td>
    <input type="text" name="email">
    </td>
    </tr>
    <tr>
    <td><font face="Comic Sans MS" size="2">
    &nbsp;Comment Type:
    </td></font>
    <td>
    <select name="commenttype">
    <option default>Choose One...</option>
    <option value="complaint">Complaint</option>
    <option value="suggestion">Suggestion</option>
    <option value="concern">Concern</option>
    <option value="question">Question</option>
    </select>
    </td>
    </tr>
    <tr>
    <td><font face="Comic Sans MS" size="2">
    &nbsp;Subject:
    </td></font>
    <td>
    <input type="text" name="subject" />
    </td>
    </tr>
    <tr>
    <td colspan="2">
    <textarea rows="12" cols="51" name="comment"></textarea>
    </td>
    </tr>
    <tr>
    <td colspan="2">
    <input type="submit" value="send">&nbsp;<input type="reset">
    </td>
    </table>
    </form>
    <br>
    </center>
    Thee Pyro Wolf

  7. #26
    Senior Member
    Join Date
    Mar 2005
    Location
    Malta
    Posts
    143
    Member #
    9468
    I chose to work with php, since you're saying it's easier. Well, I have changed the index8.htm with an index8.php and arragned allt he links to it.

    http://www.pctechdaniel.com/index8.php

    Now what is the next step mates, like where to enter the e-mail address? ... thanks for your help all of you

  8. #27
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    I have joined the thread late. But a WDF member karinne offers a detailed way using PHP to send an email.

    http://www.karinne.net/scripts/?s=3

    Hope that helps

  9. #28
    Senior Member
    Join Date
    Mar 2005
    Location
    Malta
    Posts
    143
    Member #
    9468
    Ok, I've done everything, but I'm not recieving the message I'm sending to myself through the contact form.

    http://www.pctechdaniel.com/contact.php

  10. #29
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    1: changed address to your email?
    2: show us your code

  11. #30
    Senior Member
    Join Date
    Mar 2005
    Location
    Malta
    Posts
    143
    Member #
    9468
    I Currently using this e-mail: daninku@gmail.com

    I try to change it to something else, and see if that works. Here's the code:

    Code:
       <P><BR>
    <?php 
    if ($_GET['send']) { 
        mail('daninku@gmail.com',$_POST['name'].' sent you a message', "Enquiry from ".$_POST['name']." <".$_POST['email']."> \n".htmlentities($_POST['comment'])."\r\n\This was an email concerning ".$_POST['commenttype']."r\n\r\nIP: ".$_SERVER['REMOTE_ADDR'],'Reply-To: '.$_POST['email']); 
        echo 'Thanks for your message! I will reply as soon as possible'; 
    } 
    ?> 
    <center><form method="get" action="?send=true" enctype="text/plain" > 
    <table border="1" cellpadding="2"> 
    <tr> 
    <td><font face="Comic Sans MS" size="2"> 
    &nbsp;Name:</font> 
    </td> 
    <td><input type="text" name="name" /> 
    </td> 
    </tr> 
    <tr> 
    <td><font face="Comic Sans MS" size="2">&nbsp;E-mail:</td></font> 
    <td> 
    <input type="text" name="email"> 
    
    </td> 
    </tr> 
    <tr> 
    <td><font face="Comic Sans MS" size="2"> 
    &nbsp;Comment Type: 
    </td></font> 
    <td> 
    <select name="commenttype"> 
    <option default>Choose One...</option> 
    <option value="complaint">Complaint</option> 
    <option value="suggestion">Suggestion</option> 
    <option value="concern">Concern</option> 
    <option value="question">Question</option> 
    
    </select> 
    </td> 
    </tr> 
    <tr> 
    <td><font face="Comic Sans MS" size="2"> 
    &nbsp;Subject: 
    </td></font> 
    <td> 
    <input type="text" name="subject" /> 
    </td> 
    </tr> 
    <tr> 
    <td colspan="2"> 
    <textarea rows="12" cols="51" name="comment"></textarea> 
    </td> 
    </tr> 
    
    <tr> 
    <td colspan="2"> 
    <input type="submit" value="Send">&nbsp;<input type="reset"> 
    </td> 
    </table> 
    </form> 
    </center> 
    
    <br>
    The page is: http://www.pctechdaniel.com/contact.php


Page 3 of 6 FirstFirst 1 2 3 4 5 ... LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:29 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com