Making an online App with HTML. Help please.

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
Joey

Making an online App with HTML. Help please.

Post by Joey »

Ok. I was just made co leader or the clan I am in for Return to Castle Wolfenstein, and I am also web master. I need to make an online app for our site. What I would like it to do is have you fill out info. Like it will say name: and below it will be a text box and there will be a lot of these with different questions. Then at the bottom you will press a button submit and it will email the info to me. how can i make one of these in html?
AGI1122

Re:Making an online App with HTML. Help please.

Post by AGI1122 »

It might be possible with javascript... but the problem with that is that your form would ONLY work if javascript was enabled(I myself have it disabled for security reasons).

I would suggest using PHP and html mixed to make it:

Code: Select all

<?php
$action = (isset($_GET['action']))?$_GET['action']:'';

if ($action == '') {
// Form here
}
else {
???$headers = 'MIME-Version: 1.0'."\r\n";
???$headers .= 'Content-type: text/html; charset='.$txt[12]."\r\n";
???$headers .= 'From: your_email@your_site.com <your_email@your_site.com>'."\r\n";
???mail('your_email@your_site.com','subject_here','message_here',$headers);
}

?>
Just replace all the info with your info. And put the html for the form where the "// Form here" text is. All you need to do is send the form to the same page, but with an action set.

For instance your_page.php?action=send_form would work.
Joey

Re:Making an online App with HTML. Help please.

Post by Joey »

chris im pretty stupid when it comes to html. although i changed the template on the message board for my site. can you please be more specific? i copied and pasted that to a txt file and saved it as app.html and when i opened it it said code:

i dont know what to put in there. here. this is the form on our site now. we cant keep this one and the guy that did it before doesnt remember how he did it. could you please give me the code to make one like this if it isnt a big deal? i have to scratch this one and make my own. http://flatspliffy.tripod.com then go to join us section
AGI1122

Re:Making an online App with HTML. Help please.

Post by AGI1122 »

1) you don't save it as a .html file, you save it as a .php file.

2) I didn't give you everything that was needed... just a place to start from.
Joey

Re:Making an online App with HTML. Help please.

Post by Joey »

i dont know if my site can support php. ::) i will try that though. thanks chris.
Joey

Re:Making an online App with HTML. Help please.

Post by Joey »

hold on. i can use the source from the old app, BUT, i need to just have it email me. at the top of the source it says
<FORM action=http://pub8.bravenet.com/emailfwd/senddata.php method=post>

the previous user had it check or something on that site. can i just change it to just email me all the info? and how? i tried putting my email address instead of the url, but it didnt work. i got a 404 authorization error or something. is there a way i can just have it email me that info the user typed in. maybe using the action command or something else. it doesnt matter.
Kon-Tiki

Re:Making an online App with HTML. Help please.

Post by Kon-Tiki »

Hey, that Long Answer-thing from that site's just what I need to make a rant-section with comment-possibility on my site. Dumb thing is that she didn't put the code for a submit-button there ::)

Edit: woops, she did.
Joey

Re:Making an online App with HTML. Help please.

Post by Joey »

ok i used that lissa one, and its not working. i see the form and stuff. but when i hit submit, then check my email, i didnt get it. heres my code. please tell me what i am missing.

[attachment deleted by admin]
CESS.tk

Re:Making an online App with HTML. Help please.

Post by CESS.tk »

There's nothing wrong with your code: I replaced your e-mail adress with mine and it worked.
Lissa does state that:
Email forms are fairly easy to make. Some browsers do not support them though (AOL's browser for example).
Maybe that's the problem here?
Joey

Re:Making an online App with HTML. Help please.

Post by Joey »

I have IE6. I have no idea what the problem is. I am going to try the other site. If anyone knows why this isnt working, please let me know! ;D
Post Reply