PDA

View Full Version : Mail Form Help


ellman
03-12-1999, 12:48 AM
I need to know if their is any way to make a form that you'd fill out and when you hit submit the information will be posted as a HTML page that you can print out or send in. Kinda like a madlib type thing instead of going to your mailbox any help at all is greatly appreciated.

------------------
Elliott Omlin
NSX Northwest
www.nsxnorthwest.com

Deb
03-12-1999, 12:56 AM
There are a few different ways you could accomplish this... are you wanting the page to be written to your site as a permanent fixture that can be called up again later or are you wanting it to only be there to see once they hit submit and when they close the page it's gone?

As far as 'mad libs' go there is a script that does that too http://www.aota.net/ubb/smile.gif http://awsd.com/scripts/weblibs/index.shtml

Deb

Justin
03-12-1999, 12:59 AM
There are many ways to accomplish this. I would choose the php route myself, as this is the easiest way to keep it up to date.

I'm assuming you know how to do a form in HTML. Make sure it starts with this line:

<form action=adlib.php3 method=post>

Assuming a file in the same dir called adlib.php3, of course. Now in the php file, the form variables passed to it will become variables with the same name. So if you have:

<input type=text name=verb1>
<input type=text name=Name>

then the php script would have a variable called $verb1 and $Name, and you can do this:

<body>
I just saw <? echo $Name ?>, and would you believe he was <? echo $verb1 ?>!! What nerve!
</body>
etc....

And so on. Really easy with php, and you can edit and modify and change and add whatever you need to. Php is great for this kind of thing.

Hope this helps http://www.aota.net/ubb/smile.gif


------------------
Justin Nelson
FutureQuest Tech Support

Justin
03-12-1999, 01:00 AM
Once again I was beat to the punch http://www.aota.net/ubb/smile.gif

ellman
03-12-1999, 01:38 AM
Basically what it will be is a registration form for a car club. now the car has certain features and model years it was produced and so we don't want people typing in a 1989 NSX when they started production in 1991. their are a few other options like this that have to be fixed. I don't know PHP I guess I should get with it huh? how long does it take to learn? how does it differ(code wise) from HTML? thanks again

------------------
Elliott Omlin
NSX Northwest
www.nsxnorthwest.com

ellman
03-12-1999, 01:50 AM
I went and took a look at the madlib thing and I think that might work out I'll kick some ideas around and see what pops up.
thanks deb for the link and justin thanks for the php suggestion but I gotta learn it first.(unless I'm totally in the dark and it is really, really easy)

------------------
Elliott Omlin
NSX Northwest
www.nsxnorthwest.com