HTML Form Submission - HELP

Rad

...
Reaction score
228
OK Alot of you know im working on a site... mainly to help TH but I dunno. ANYWAYS, I cant figure out how to get this stupid for to work right. Its all really nice just how I want it, only problem is the 'Submit' button. It works right, but when you click it outlook express opens up. I know why it does that, but I dont know how to make it automatic. Heres a picture of what the form looks like.

Right, so when you hit SUBMIT it opens outlook express and says...
Code:
Hero_Class=%60CLASS%60&Description%3A+=%60DESCRIPTION%60&Spell_One%3A+=%60SPELL_A%60&Spell_Two=%60SPELL_B%60&Spell_Three=%60SPELL_C%60&Final+Spell=%60ULTIMATE%60&User_Name=%60NAME%60
As you can see, its all in 1 line. Not only that, but for the centering and the <BR> I used it put a bunch of worthless %60&+ etc in. Now I've heard from many people, including The Helper himself it requires PHP/Java scripting. I found a few sources for this. They sucked! They dont tell you how to set it up.

So is anyone capable of setting up the coding that I can easily input to my HTML document? Heres some of the key data

Hero Class: <input type =" input" id="01 - <Center>Hero Class<BR>" name ="Hero_Class" value =" " size=16>
Hero Description: <TEXTAREA id="Description: " name="Description: " rows="1" cols="35">
Spell One (etc): <TEXTAREA id="Spell One: " name="Spell_One: " rows="3" cols="40">
Ultimate:<textarea name="Final Spell" cols="40" rows="4" id="Final_Spell">
Name:<input type =" input" id="01 - <Center>Your_Name<BR>" name ="User_Name" value="Your_Name" size=16>

If theres anything else you need let me know... Please help me Ill give rep! (Think mines worth around 10 or something)
 

SD_Ryoko

Ultra Cool Member
Reaction score
85
Helper said you need a form mail script. Which is true.

Your trying to email that stuff manually. So it opens outlook to email it instead.

Matt's script archive has his formail script. It is so good, almost all web hosts use it.

IN FACT - our web host already has it build in- so I don't have to download ANYTHING. All you do is put the appropriate fields into the formmail script, like this:

http://www.griffonrawl-ohio.com/info.php

You see? I use it to email the instructor.

Heres the code.
Code:
<form method="POST" action="http://www.yoursite.com/bin/[b]formmail.pl[/b]">
<input type="hidden" name="recipient" value="[email protected]">
<input type="hidden" name="subject" value="This is the subject line">
<input type="hidden" name="redirect" value="yourthankspage.htm">
<input type="hidden" name="required" value="realname,email">

Your Name:<input type="text" name="realname" size="30">
Email Address:<input type="text" name="email" size="30">
Phone Number:
<input type="text" name="phone" size="30">
Message:
<textarea name="message" cols="50" rows="7" wrap>
</textarea>
<input type="Submit" value="Submit"> 
<input type="Reset" value="Reset"> 
</form>
 

Rad

...
Reaction score
228
Ah ok Ill try to get that to work Ryoko. I downloaded many many formail script. Funniest thing is they didnt even work -_-

EDIT: Didnt work...

Code:
<form method="POST" action="[b]http://giant-halfling.thehelper.net/heroform.html[/b]">
<input type="hidden" name="recipient" value="[b][email protected][/b]">
<input type="hidden" name="subject" value="[B]Hero Submission Form[/B]">
<input type="hidden" name="redirect" value="[B]http://gianthalfling.thehelper.net.html[/B]">

What did I do wrong? Is it the first part? Your code said like .pl or something... whats that? How do I set up the other pages?! :nuts:

Edit again: I think all I need is to set up the first part with the bin/formmail.pl. How do I set that up?

EDIT yet again: I think i got it to work, i hit submit and it redirects me to th.net but I dont get an email... WTF is a formmail and how do i set it up. Well I guess this is the same as my last edit lol
 

Rad

...
Reaction score
228
Not really worth the title BUMP, but I still need help people. Theres gotta be someone who knows how to set up the formmail.pl!
 

SD_Ryoko

Ultra Cool Member
Reaction score
85
<form method="POST" action="http://giant-halfling.thehelper.net/heroform.html">

Why did you do that? The action is an 'html' file - which is wrong....

Your script should be a .pl, or .cgi, etc. Not html.

What did you download? Where did you put it?

Do a google for 'matts script archive'. Its the best formail script you can get. And its ONE file.
 

Rad

...
Reaction score
228
Yea see I have like no idea what a .pl is so couldnt really do anything with that part

EDIT: Am I supposed to edit anything in the file? Its all jibberish to me :rolleyes:
 

The Helper

Necromancy Power over 9000
Staff member
Reaction score
1,698
Rad, dont feel bad about having a problem with the form script. It is not hard it is just everything has to be exactly right.

The .pl thing you are looking at is a perl script file - it is the code that actually makes it all work.

<form method="POST" action="http://giant-halfling.thehelper.net/heroform.html">


is wrong - the action should be the name of the script you are submitting to, not the name of the page you are submitting. Your heroform page has input fields on it, you know where people type stuff, that is what is going to be submitted. The action above should tell where to submit that information to, which is the script. Here is another couple of examples of a form script

http://www.bizdoc.com/contactus.html -> uses formmail.pl
http://www.apexpipe.com/onlineinquiry.html -> uses formmail.php

The only thing I can say is that once you get it to work you are going to go duh - that was easy - because it really is once you do it a few times. Its really just cut and paste then you change the email address to where you want the email sent and change the path of the script to where it is on your server.
 

Rad

...
Reaction score
228
EDIT: Ohh yea thanks to 56k on MSN I got it to work. Well sort of he helped, not as much as u guys though thanks :D

I didnt know I had to delete the stuff I didnt need... :p (I left it like $referer = array ("") :p)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top