WebBaka
11-12-2005, 09:35 PM
Hi! I'm new to HTML forms so I was wondering if someone could give me a hand with this.
What I want is for there to be a text box and submit button (simple enough), but the catch is that I want the submit button to load a new page and show the text that the person typed into the text box.
here's a page with the sort of thing I'm looking for:
http://www.go-quiz.com/warning-label/warning-label.php
Help is appreciated!
Andrew.S
11-13-2005, 04:11 PM
should be pretty easy :) have a look on google for it, I just tried it and found http://formtoemail.com/ that looks like what you want, if not try http://www.phpnoise.com/tutorials/12/1 it's a short tutorial, thats probably better, you'll understand how the script works and so be able to modify it more easily. Hope that helps!
Ebil_Master
11-13-2005, 04:24 PM
There is also a very good turterial i found on the forums
http://www.lissaexplains.com/forum/showthread.php?t=45530
WebBaka
11-13-2005, 04:57 PM
Hmm... a mailto form was not exactly what I was looking for, but it will help with another thing I want to do. Do you know if that PHP email form is supported by many browsers? (The old HTML mailto forms don't work in new browsers)
I'm also still looking for something which will display text wihout emailing me.
luvhartz
11-13-2005, 05:52 PM
i use something i think you may like for generating webhtml codes.. try this :
(between head tags)
<SCRIPT LANGUAGE="JavaScript">
<!--
function gen(content)
{
win=window.open("","win","toolbar=0,location=0,status=0,menubar=0,scrollbars =0,resizable=1,width=200,height=200");
//create html document, and add the content the person writes
win.document.write("<html><head><title>Generator</title></head><body>"+content);
//close body and html tag
win.document.write("</body></html>");
}
//-->
</SCRIPT>
then in the body tags:
enter text here<BR><TEXTAREA NAME="content" ROWS="5" COLS="40" STYLE="background-color:#FFFFFF; font-family:verdana; color:#ff6699; border-style:solid"></TEXTAREA>
<BUTTON ONCLICK="gen(this.form.content.value)">Create Page</BUTTON>
That SHOULD work..