Page 1 of 1
Making an online App with HTML. Help please.
Posted: Fri Aug 29, 2003 2:24 pm
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?
Re:Making an online App with HTML. Help please.
Posted: Fri Aug 29, 2003 4:54 pm
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.
Re:Making an online App with HTML. Help please.
Posted: Mon Sep 01, 2003 1:53 pm
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
Re:Making an online App with HTML. Help please.
Posted: Mon Sep 01, 2003 1:58 pm
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.
Re:Making an online App with HTML. Help please.
Posted: Wed Sep 03, 2003 12:58 pm
by Joey
i dont know if my site can support php. ::) i will try that though. thanks chris.
Re:Making an online App with HTML. Help please.
Posted: Wed Sep 03, 2003 1:41 pm
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.
Re:Making an online App with HTML. Help please.
Posted: Wed Sep 03, 2003 1:43 pm
by CESS.tk
Re:Making an online App with HTML. Help please.
Posted: Wed Sep 03, 2003 2:08 pm
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.
Re:Making an online App with HTML. Help please.
Posted: Thu Sep 04, 2003 1:31 pm
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]
Re:Making an online App with HTML. Help please.
Posted: Thu Sep 04, 2003 2:12 pm
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?
Re:Making an online App with HTML. Help please.
Posted: Fri Sep 05, 2003 12:28 pm
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