Helpful Information
 
 
Category: Windows Help
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!

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?


mail("your@mailadress.com", "Subject you want to get", "Message format you want, maybe something like name: $name \n Phone: $phone", "From: bill@gates.com");

//Fjodor

Scince I am so darn nice, here you have the html part aswell....



<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

I'll give that a try and see how things work out...take care and have a happy new year!










privacy (GDPR)