Forum Moderators: coopster & phranque

Message Too Old, No Replies

form not submitting information

         

jarg7

9:22 pm on Oct 25, 2014 (gmt 0)

10+ Year Member



Hi Guys, so I installed a formmail perl script and put that in my web sever cgi folder. I followed the directions on my host server, and the form submits to the email except no matter what I put the form submits empty with no data. I recieve the email where its supposed to go but nothing is in the text body. I wasnt sure if this was more of an html question, because i havent set up a form to submit like this before. I am using foundation as the front end frame-work, if anyone can help me out with this.

I would like to paste the code here:


<form action="http://www.example.com/cgi-bin/FormMail.pl" method="post">
<input type="hidden" name="recipient" value="connect@omegadesignla.com" />
<input type="hidden" name="subject" value="From the feedback form" />
<div class="row">
<div class="large-6 columns">
<label>Name:
<input type="text" placeholder="Full Name" />
</label>
</div>
<div class="large-6 columns">
<label>Email:
<input type="text" placeholder="Email" />
</label>
</div>
</div>
<div class="row">
<div class="large-4 columns">
<label>Phone Number:
<input type="text" placeholder="Phone Number" />
</label>
</div>
<div class="large-8 columns">
<label>What are you interested in(check all that apply)
</label>
<input id="checkbox1" type="checkbox"><label for="checkbox1">Printing
</label>
<input id="checkbox2" type="checkbox"><label for="checkbox2">Web Development
</label>
<input id="checkbox2" type="checkbox"><label for="checkbox2">Promotional
</label>
</div>
</div>

<div class="row">
<div class="large-12 columns">
<label>Message
<textarea placeholder="message"></textarea>
</label>
</div>
</div>
<br><button class="button" name="Send" type="submit">SEND</button><br>
</form>

[edited by: phranque at 9:50 pm (utc) on Oct 25, 2014]
[edit reason] exemplified domain [/edit]

phranque

9:48 pm on Oct 25, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, jarg7!

how does the formmail script identify which input element contains the email text?

jarg7

11:41 pm on Oct 25, 2014 (gmt 0)

10+ Year Member



Im not sure, but here's a link to the script im using:
[nms-cgi.sourceforge.net...]

jarg7

12:22 am on Oct 26, 2014 (gmt 0)

10+ Year Member



How could i find that out? I dont really know perl.

jarg7

1:58 am on Oct 26, 2014 (gmt 0)

10+ Year Member



I didn't know, but i needed a 'name' attribute in the input fields, i added that and it worked!

phranque

5:04 am on Oct 26, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



the name attribute is obsolete/non-conforming.
use the id attribute instead.