Jump to content
xisto Community
Sign in to follow this  
Citezyne

How Do You Create Web-Forms? HOw the hell

Recommended Posts

ok im new to the web creations scean and i ahve no idea how to do forms everything i try it tells me that iv not done it right but then again its proberly FP which i hate but hey u gotta do what you gota do ok so can anyone help me?

Share this post


Link to post
Share on other sites

ok well what i realy want specificly is a form that people fill in that i can then use to place them on my news letter list, basicly a form that will email me the details of what they enterd into it so i can then take it and use it for the news letter and a also one that sends them an email to say that i recived it

Share this post


Link to post
Share on other sites

Well I use PHP and you have PHP also here at Xisto so here is a working script that is real basic but will do what you want I believe.
newsletter.php

<?php //A basic Form named newsletter.php ?><h3>Would you like the newsletter from the site?</h3>Use the form below.<br /> <form action="news.php" method="post">First Name: <input type="text" name="first"><br />Last Name: <input type="text" name="last"><br />E-mail: <input type="text" name="email"><br /><input type="submit" value="Continue!" name="check"></form>
news.php

<?php if(isset($_POST['check'])){
$date =date('M d, Y h:m');
$from=$_POST['email'];
$name= $_POST['first']." ".$_POST['last'];
$message ="$date<br /><br /><b>$name</b> has just signed up for the
newsletter<br />This is the notice that they have done this.
.<br />Their e-mail address is <b>$from</b>.";
//echo $message; uncomment to TEST and comment the header()at the bottom
$headers = '(anti-spam-(anti-spam-mime-version:)) 1.0' . "\r\n";
$headers .= '(anti-spam-(anti-spam-content-type:)) text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: '."$from\r\n";
mail('yourmailaddy','Newsletter Signup',$message,$headers);
header("location: emailLetter.php");
}
else{
header("location: newsletter.php");
}
?>

Unfortunately the antispam feature of Xisto is messing up this code but if you want a working one I can provide it.

Share this post


Link to post
Share on other sites

great thats realy cool ill give it a go but i need help with one more thing... how do i install it to get it to work with my site, im realy dumb when it comes to this ckind of stuff

Share this post


Link to post
Share on other sites

At Xisto, there is no need to install PHP or anything like that, your hosting account comes pre-installed with PHP. (I dont know which version of PHP, as its been a long time since I had a hosting account here!)If you were talking about installing the script, you just need to paste it into your webpage, edit some stuff (like ['email'], ['first'], etc..) and then view it using your favorite web-browser and it will be done. If you encounter any problems, then there is something wrong with the code.

Share this post


Link to post
Share on other sites

An easy way to day this without all the code mumbo jumbo is to sign up with a server that host a plugin. An example is http://www.hotplugins.com/

 

Just sign up an use their form mail which seem to be exactly what you require. And later if you decided that you need more feature they have guest books, forums etc…

 

I am just listing an example since there are a lot of sites out there like HotPlugIns, and I’ve not tried this one personally.

Edited by doudou (see edit history)

Share this post


Link to post
Share on other sites

There are also several very good pre-written scripts in Fantastico in your cPanel that may be of help. - PHPlist is a mailing list script. - ViPER Guestbook is a guestbook script.Also there are several CMS scripts which allow for complete Content Management including news, F.A.Q., links, user authentication, forums, etc... Most of these have the option to send an email/newletter to all of your members.Hope This Helps. :(vujsa

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.