Forums | Hello Guest, Login or Register | > > L4Y Files: No longer here! < <
  Red Faction : Lounge : OK people, Help PLEASE?!?! [Forum Rules]  
Page 2
Multiple Page Topic : 1 
Back to Forum Thread List

jkillian86   Posted 20th Sep 2006 1:17am
L4Y Member
Post 10 / 13

Quoting Mr.Hz
take the values from your form exactly
<input type="text" name="textfield5" />

name this file send.php
open the php by
<?php

and at the end do not forget to close ?>
outside of <?php ?>you can use normal html page

first (it is not nessesary all times but it should make error)

$sender_mail = $_POST["textfield5"];

you have to recopy all your inputs
second the message
it is good to let it be minimal short like in this example or you can have some troubles
and keep just replacing the values in message body by $sender_mail etc it only must start by word no spaces

$message = "mesage from $sender_mail xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // message body
$headers = "From: \"Sender Name\"<sender@domain.org>"; // message head
$head = "message topic for recevier of this emailx"; // short head
mail($mail, $head, $message, $headers); // sending by smtp server


and i hope it is good



Yea. Could you jut post the whole code that confused me lol my email is thndrandlitning5@gmail.com. SO if you could make out the whole code already with my email in it it would be aweosme. Thanx
<img src="http://img.photobucket.com/albums/v211/ScarFaceJoker/signaturecopy.jpg">    
FuryThor   Posted 20th Sep 2006 7:47am
L4Y Member
Post 501 / 831

Quoting Garner
HTML is just markup code, it cannot do anything other than format data... and these days CSS does all that anyway...

All HTML can do with forms is, as Sobe says, tell the users email client to open up and get the user to click the send button. Not very nice for the user.

Something on the server to do the mailing automatically is nice and simple. PHP can do it very easily. I seem to recall an example on page 1... for the $message part...

Code

$message = print_r($_POST,true);


Will work quite nicely for taking all data from a form and outputting it in a nice human readable form. Say you have a form with 3 fields on called, name, email and age you'll end up with something like the following for the body of your email.

Code

Array(
name =>'bob',
email =>'email@address.com',
age =>'47'
);


Beauty of this is that you can add/remove fields to your form and the mailing part doesn't need changing at all.



Pretty true, and NEVER EVER you should not put any cofidential data, like passwords userids etc. in clear form to html code. Instead if you apache (in windows or linux) you can use .htaccess (it can be set in windows side so that server does not show those files for clients)

Anyhow, I would recomend that you study some HTML + CSS + PHP since with those tools you can do pretty much what ever you want.
Project RF SDI
My RF Files  
 
jkillian86   Posted 24th Sep 2006 6:39am
L4Y Member
Post 11 / 13

Ok I don't know ANYTHING about php and php codes don't work....that come up with the whole code in normal...

I honestly would apreciate if someone just made me up a form
Drop down menu with choices , Myspace layout, Contact table, and Custom GraphicZ.

text fields as follows
Name
email
AIM?
MSN?
YAHOO?

Describe what you want:

and the submit button that emails the info to thndrandlitning5@gmail.com. Can someone PLEASE make that for me?
<img src="http://img.photobucket.com/albums/v211/ScarFaceJoker/signaturecopy.jpg">    Modified Sep 24th, 06:51am by jkillian86
elliooo   Posted 25th Sep 2006 5:00am
L4Y Member
Post 450 / 548

http://www.htmlbasix.com/forms.shtml

   
Page 2
Multiple Page Topic : 1 


Copyright © 2000-2025 Levels-4-You
Your request was handled in 1.07 seconds.