#1
  1. No Profile Picture
    Germany....here we come!
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    26
    Rep Power
    0

    Angry Can N E one tell me how to create a mail form on an NT server?


    I am hating life, I want to try and build a mailform on a NT server *which is totally new to me * and I can't do it, I'm used to using a cgi application on a Unix box.

    The NT server has PHP4, could I build a mail form using PHP? I'm not sure what mail program the server is running.

    Any help would be awesome!
    ------------------------------------
    I'm still learning this stuff so take it easy on me! LOL!
  2. #2
  3. No Profile Picture
    Slacker
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    Sweden
    Posts
    76
    Rep Power
    14
    Do a mailform and use mail() phpfunction would be easyest in my opinion.
    Scince I assume you know how to use php I'll just supply a snippet with the relevant code.
    This Q should probably be in some other forum dealing with forms though..... How 'bout PHP?

    PHP Code:
    mail("your@mailadress.com""Subject you want to get""Message format you want, maybe something like name: $name \n Phone: $phone""From: [email]bill@gates.com[/email]"); 
    //Fjodor
    Last edited by Fjodor; January 13th, 2002 at 10:26 AM.
  4. #3
  5. No Profile Picture
    Slacker
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2001
    Location
    Sweden
    Posts
    76
    Rep Power
    14
    Scince I am so darn nice, here you have the html part aswell....

    Code:
    <form name="mailform" method="post" action="thepagewithyourmailscript.php">
      <table>
        <tr> 
          <td>Name:</td>
          <td> 
            <input type="text" name="name">
          </td>
        </tr>
        <tr> 
          <td>Phone:</td>
          <td> 
            <input type="text" name="phone">
          </td>
        </tr>
        <tr> 
          <td colspan="2"> 
            <input type="submit" name="Submit" value="Send mail">
          </td>
        </tr>
      </table>
    </form>
    If the php doesn't work, kick the admin of the NT box.


    //Fjodor
    Last edited by Fjodor; January 13th, 2002 at 10:24 AM.
  6. #4
  7. No Profile Picture
    Germany....here we come!
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    26
    Rep Power
    0

    Thanks man...you are nice! LOL!


    I'll give that a try and see how things work out...take care and have a happy new year!
    ------------------------------------
    I'm still learning this stuff so take it easy on me! LOL!

IMN logo majestic logo threadwatch logo seochat tools logo