Formular to mail
Posted: Sat Dec 16, 2006 9:41 am
feyd | Please use
Where the Output-file, is:[/syntax]
When the user has completed the questionary and press 'Send', the output-file appears with the proper informations.
I wish to send this final output-page to my email-adress (degn@zone7.dk) as a simpel text-file but how?
Regards Jørgen
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I have made this simpel questionary (input.php)
[syntax="html"]<form method=post action="output.php">
Name: <input type=text name=name size=15>
Age: <input type=text name=age size=1> år
Height: <input type=text name=hight size=1> cm
Weight: <input type=text name=weight size=1> kg
<input type=submit value="Send"></form>Where the Output-file, is:[/syntax]
Code: Select all
<?
echo "Name: "; echo $_POST["name"]; echo "<BR>";
echo "Age: "; echo $_POST["age"]; echo "<BR>";
echo "Height: "; echo $_POST["height"]; echo "<BR>";
echo "Weight: "; echo $_POST["weight"]; echo "<BR>";
?>I wish to send this final output-page to my email-adress (degn@zone7.dk) as a simpel text-file but how?
Regards Jørgen
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]