Page 1 of 1

I need to create a web form

Posted: Sun Sep 16, 2007 7:46 am
by Anonymous
I need to create a web form for my site, but I do not know php. Can you please recommend me a php script or some free form builder? ;)

Archived topic from Iceteks, old topic ID:4905, old post ID:38312

I need to create a web form

Posted: Sun Sep 16, 2007 5:07 pm
by onykage
what kind of form do you want to build? IE. What will the form do,nd what features and functions will the form provide.

lastly, how will the form submit the data submitted. Will it be a database storage or a text based output for email or data.

Need to be more specific on the form information.

Also,

I would have a look at

php.net &
w3schools.net

I would also suggest looking into ruby on rails. Form ans blog based sites are extremely quick using rails.

Archived topic from Iceteks, old topic ID:4905, old post ID:38313

I need to create a web form

Posted: Tue Sep 18, 2007 1:14 pm
by Anonymous
Thank you for suggestions. So far I found freedback and this free <a href=http://www.emailmeform.com"">html form</a> builder which unlike freedback does not show any advertising in the free plan! ;-)



Archived topic from Iceteks, old topic ID:4905, old post ID:38316

I need to create a web form

Posted: Tue Sep 18, 2007 7:28 pm
by onykage
all you wanted was a php email form?

that link doesnt look bad, and if the random char id script works right, thats pretty cool.

if not, then all you have to do for an email form is

Code: Select all

<?php
if( $_POST['action'] == "submit" ) {
	$recipient = "youremailaddress@here.com";
 

[color=#888888][size=85]Archived topic from Iceteks,  old topic ID:4905, old post ID:38317[/size][/color]

I need to create a web form

Posted: Tue Sep 18, 2007 8:02 pm
by onykage
GRRR! TAB COMPLETE + ENTER submits the thread.

oh well, lets try again.

ok.

all you wanted was a php email form?

that link doesn't look bad, and if the random char id script works right, thats pretty cool.

if not, then all you have to do for an email form is something like this.

Code: Select all

<?php
//********************************************************
//          Lets generate a email script
//********************************************************

if( $_POST['action'] == "submit" ) {
        $recipient = "youremailaddress@here.com";
        $subject = stripslashes( $_POST [ 'Subject_Field' ] );
        $headers = "MIME-Version: 1.0
" . "Content-type: text/html; charset=iso-8859-1
";
        if( $_POST['Email_Field'] != "" ) {
              $headers .= "From: " . stripslashes( $_POST['Email_Field'] ) . "
" . "Reply-To: " . stripslashes( $_POST['Email_Field'] ) . "
";
        } else {
              $headers .= "From: NOREPLY@yourdomain.com
" . "Reply-To: NOREPLY@yourdomain.com
";
        }
        $headers .= "X-Mailer: PHP/" . phpversion();
        $message .= stripslashes( $_POST['Content_Field'] );
        mail( $recipient, $subject, $message, $headers );
} 
//********************************************************
//          Below is a sample html form
//********************************************************
?>

<html><tr>
  <form>
     <td> Please Give me your email address.</td>
     <td><input maxlength="64" name="Email_Field" size="68" type="text"></td>
     </tr><tr>
     <td> Email Subject.</td>
     <td><input maxlength="64" name="Subject_Field" size="68" type="text"></td>
     </tr><tr>
     <td> Please leave your comment below</td>
     </tr><tr>
     <td><input maxlength="555" name="Content_Field" size="75" type="textarea"></td>
     </tr><tr>
     <td><input name="action" type="hidden" value="submit">
     <input id="submit" name="submit" type="submit" value="Submit">
  </form>
</tr></html>
[code]

Hope that helps and doesn't confuse you to much.

PS.  I havn't checked that code well, but I'm fairly certain it will work as is, just may not be very pretty. :banana:  

[color=#888888][size=85]Archived topic from Iceteks,  old topic ID:4905, old post ID:38318[/size][/color]

I need to create a web form

Posted: Fri Sep 21, 2007 6:59 am
by Anonymous
thanx a lot

Archived topic from Iceteks, old topic ID:4905, old post ID:38322