Mystic Software Forums
Miscellaneous => General Off-Topic => Topic started by: AlienDude on June 09, 2005, 03:51:07 PM
-
If any of you can help, it would be great. I need to know how to set up a web form so that the contents of the form are sent to me by email.
-
Easy. Go to server.com, select DBApp, fill out the form to make it, and it should come with a good form. Tell me if you're expieriencing any problems after that.
-
I meant does anybody know how to code forms, i would rather have help than a site builder, i forget how to do them later on if i use a site builder.
-
*sigh* Good luck...
-
OK I am starting my first contest, whoever helps me the most to get this form up and running, will get a free banner of any size and type!!!
-
You can make the actual form with markup like this:
<form method="post" action="some_file.php">
<div>
<!-- fields ... -->
<input type="text" name="something" />
</div>
</form>
(See more on the <a href='http://www.w3schools.com/tags/tag_input.asp' target='_blank'><input> tag</a>.)
Then you might code some_file.php:
<!-- ... -->
<?php
$str = '';
foreach ($_POST as $i => $j)
{
$str .= $i . ': ' . $j . "\n";
}
mail('your@email.com', 'Allo! (subject)', $str);
?>
<!-- ... -->
Note that this is untested.
-
actually it has been up and running for a couple days now, i thought i posted on here, the sender even gets an email telling them what they requested, i will add email validation later, to ensure that it goes to an actual email address.
also i will be rewriting the request form in XForms. Soon the site will be fully php/sql
-
Only real browsers such as Firefox support xforms right now. IE, unfortunately, has a market share greater than 90%, so it's not a good idea.
-
stupid Microsoft... i even tried it on FF but all i got were the labels. maybe i didn't get the header info right.
-
Firefox has full support for xforms. If it didn't work there, you did something wrong.
-
well that is smth, i may just get SMTH done today LOL
-
My entire site is straight PHP and SQL. I can modify just about any file efficiently. I have even released 2 blocks completely designed by myself for php-nuke. I will soon (hopefully) be releasing some more utilities and mods for it. If you need something, ask. my new e-mail is
GameCharmer at GCWorld dot net
Thanks!
-
I am in fact in the process of integrating the gmae stuff into TS so that i have one site for everything, BBS will be no more, unless i get a buttload of money and i actually need to.
Also i am redoing the gfx of the site, making it a bit brighter it shows up as damn dark on this lappie.
-
Sofar, I have implemented a store, inventory, statistics, and cash into my site for use in a game.
Looks pretty good.
Also, completely redesigned the theme.
Thanks!