Log in

View Full Version : Form Code without using a website like Freedback?



ModernRevolutions
12-23-2008, 01:19 PM
Ok I would like to make a form that people can fill out to apply to be affiliates on my site. However right now i am using Freeback. Its a website that generates a form code. But, I dont want to use a site like that I want to make a form code like this: http://pastelsmash.com/more .

Is there a code i can use not generated by a website? I would like to make a form with more felxability. Thanks

bluewalrus
12-23-2008, 02:13 PM
Yes... You'll need php or a server side language. If its like the 3 input field I could make you one or give you an example that you could go from. Is the form just emailing to your account? My example will be in php. Php work's with html so you won't have to redo your whole page either.

ModernRevolutions
12-23-2008, 03:24 PM
yea I just want a simply form that would be sent to my email address and yea all my pages are .php

bluewalrus
12-23-2008, 11:57 PM
Give this a try then...
EDIT this is for input fields named name,email, and question and from the method post and then change the action to the name of this file.php

<?php
$visitor = $_POST['name'];
$visitormail = $_POST['email'];
$notes = $_POST['question'];

if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
{
echo "<h2>The e-mail address you entered was not correct.</h2>\n";
die ("<br />Your question has not been submitted. This page will bring you back<br />in 20 seconds or you may use your browsers back menu to resubmit.\n</div>
</div>
</body>
</html>");
}
if($notes == "Questions about traveling, financial assistance, or why we do what we do ask them here...")
{
echo "Please enter your Question. In the question field";
die ("<br />You may use your browsers back button or this page will bring you back in 20 seconds.</div>
</div>
</body>
</html>");
}


if(empty($visitor) || empty($visitormail) || empty($notes )) {
echo "<br />Please Fill in all of the information.\n";
die ("<br />You may use your browsers back button or this page will bring you back in 20 seconds.</div>
</div>
</body>
</html>");
}
$sendata="Email Address to respond to:". $visitormail;
$q="Question from ". $visitor . " ". $notes . "Submitted:" . $todayis ;
$todayis = date("l, F j, Y, g:i a") ;
$attn = $attn ;
$subject = "Question from website";
$notes = stripcslashes($notes);
$message = " $todayis [EST] \n
From: $visitor ($visitormail)\n
";

$from = "From: $visitormail\r\n";


mail("LOGINNAME@MAILSITE", $subject, $sendata, $q);
?>

owt200x
01-01-2009, 09:42 PM
Hi IllustriousLyts, I have a contact form you could use, check it out at http://www.owt200x.us/contactform

I can change the fields to whatever you need, if you need it customized. If you already have a form template I can use that to add my formprocessing code into it.

Let me know what you need

Barry "OwT"

npsari
01-05-2009, 12:03 AM
I used to have a page which contains free downloads in my site
I cancelled it now, however, here is the URL anyway
http://www.yavrim.com/downloads/
The links are still active
It uses PHP by the way
Simply, download the one you want and alter it

Learning PHP
01-06-2009, 06:04 PM
I'm also working on an affiliate sign up form and was wondering can I just use the sign up form in a way that I don't have to use my CGI bin? I was hoping I could set it up to were it would go into my email. Is that an option?

owt200x
01-14-2009, 08:31 AM
I'm also working on an affiliate sign up form and was wondering can I just use the sign up form in a way that I don't have to use my CGI bin? I was hoping I could set it up to were it would go into my email. Is that an option?

I could use my form processing code from http://owtphpform.co.cc to either use your template, or my contact form demo template (which is teh same as the download) if you'd like.