Unstoppable Domains โ€” Get your daily AI drops report

Best Contact From Out There [Tutorial]

SpaceshipSpaceship
Spacemail by SpaceshipSpacemail by Spaceship
Watch

Redneck

Account Closed
Impact
0
Alright, i did this my self please do not take credit. it will also send the IP address of the person submitting it, this will prevent people from spamming you, if they do just ban there IP.(if you need a script to do this just ask)

First Create A Page Called "contact.php"(without the " ")
PHP:
<form action="contactme.php" mehod="post">
  <p align="center"> <font color="#FFFFFF"><b><font color="#FFFFFF" size="2" face="Verdana">Name:</font></font><font size="2" face="Verdana"> 
    <input type="text" name"username" size="30"/>
    <br>
    <br>
    <font color="#CCCCCC">Email:</font> 
    <input type="text" name="useraddr" size="30">
    <br>
    <br>
    <font color="#FFFFFF">Message:</font> 
    <textarea name="comments" cols="30" rows="5"> </textarea>
    <br>
    <br>
    <input type="submit" value="Send Form">
    </font></p><br>
</form></b>

Now Make a page called contactme.php
PHP:
<div align="center"><font color="#FFFFFF" size="2">Thank You For Contacting Me, I Will Respond 
  ASAP.</font></div>
<?PHP
#Where you want the email to go
$to = "[email protected]";

#subject of the message, change this
$re = "contactformmadebyredneck";

#message from the feedback form, don't touch this will send persons ip
$msg = "$comments\n\n IP : $REMOTE_ADDR";

#send the mail, don't edit this
mail($to,$re,$msg);
?>

pretty simple, to have the form appear open the file called contect.php after you upload it

To edit the Message that appears after the form is submitted edit this line in contactme.php
PHP:
<div align="center"><font color="#FFFFFF" size="2">Thank You For Contacting Me, I Will Respond 
  ASAP.</font></div>

Thanks to Atom for adding the IP part.

Post any questions you may have here.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Thanks for sharing.
But I think It is not the best contact out of there.
 
0
•••
lol, i kno but it is the simplest and most forms only send the message and its like 300 lines of script, this owrks fine and sends the ip :D and it works awesomely,
 
0
•••
wow, thats really cool, i have a friend who was looking for something like this, all the ones he had were like 200 pages and did less than this one does, all the ones he found didnt send the IP, well done!
 
0
•••
wow, glad u like it
 
0
•••
Nice script, but I'm wondering, why wouldn't the email address be picked up by spambots?



Thanks,
John
 
0
•••
hmmm ,lol i've never tested that, if someone does please tell me :D if it does its back to the drawing board lol
 
0
•••
John_P said:
Nice script, but I'm wondering, why wouldn't the email address be picked up by spambots?



Thanks,
John
it would not be picked up ny spam bots because the emeail address is a php variable and not presented on the web. if you echoed the email variable on the page that would be another thing
 
0
•••
Okay, I guess I'll try it then. I just didn't know if spambots would scan through stuff like that.


Thanks,
John
 
0
•••
so will the messages go to spam or not?
 
0
•••
I use frontpage and then output the form to a mail processing script. Works well for me.
 
0
•••
hmmm, this would work better
contact.php
PHP:
<form action="contactme.php" mehod="post">
    <font color="#CCCCCC">Name:</font> 
    <input type="text" name="username" size="30">
    <br>
    <br>
    <font color="#CCCCCC">Email:</font> 
    <input type="text" name="useraddr" size="30">
    <br>
    <br>
    <font color="#CCCCCC">Website URL:</font> 
    <input name="website" type="text" id="website" size="30">
    <br>
    <br>
    <font color="#FFFFFF">Message:</font> 
    <textarea name="comments" cols="30" rows="5"> </textarea>
    <br>
    <br>
    <input type="submit" value="Send Form">
    </font></p>
  <br>
</form>



contactme.php

PHP:
<div align="center"><font color="#FFFFFF" size="2">Thank You For Contacting Me, I Will Respond 
  ASAP.</font></div>
<?PHP
#Where you want the email to go
$to = "[email protected]";

#subject of the message, change this
$re = "Site Feedback";

#message from the feedback form, don't touch this
$msg = "$username\n$useraddr\n$website\n$comments\n\n IP : $REMOTE_ADDR";

#send the mail, don't edit this
mail($to,$re,$msg);
?>

the only difference is now theres a box for: Name, Email, Website and comments, the one he posted only sneds the message, the name and things were usless, now it'll send everything nicely
 
0
•••
icoke said:
hmmm, this would work better
contact.php
PHP:
<form action="contactme.php" mehod="post">
    <font color="#CCCCCC">Name:</font> 
    <input type="text" name="username" size="30">
    <br>
    <br>
    <font color="#CCCCCC">Email:</font> 
    <input type="text" name="useraddr" size="30">
    <br>
    <br>
    <font color="#CCCCCC">Website URL:</font> 
    <input name="website" type="text" id="website" size="30">
    <br>
    <br>
    <font color="#FFFFFF">Message:</font> 
    <textarea name="comments" cols="30" rows="5"> </textarea>
    <br>
    <br>
    <input type="submit" value="Send Form">
    </font></p>
  <br>
</form>



contactme.php

PHP:
<div align="center"><font color="#FFFFFF" size="2">Thank You For Contacting Me, I Will Respond 
  ASAP.</font></div>
<?PHP
#Where you want the email to go
$to = "[email protected]";

#subject of the message, change this
$re = "Site Feedback";

#message from the feedback form, don't touch this
$msg = "$username\n$useraddr\n$website\n$comments\n\n IP : $REMOTE_ADDR";

#send the mail, don't edit this
mail($to,$re,$msg);
?>

the only difference is now theres a box for: Name, Email, Website and comments, the one he posted only sneds the message, the name and things were usless, now it'll send everything nicely


Banned user Redneck! :wave:

Thread closed,
 
0
•••
Olitt โ€” high-converting AI websites, only from $1/moOlitt โ€” high-converting AI websites, only from $1/mo
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back