Formmail returning recipient not found issue - html

I am trying to build a form, and I am using my providers built in formmail (which is basic formmail) I am told that it is configured to accept images as part of the formmail. When I run the form without the Enctype tag, it works it just does not send the image. Upon research I learned that you need to add the enctype="multipart/form-data" tag onto the form, it will allow the image to be sent with the form. Once I add the enctype tag, I get this error, however my recipient field is filled out and it DOES work if I do not use the enctype tag, however I can't send files. I will also note I do not have access to my providers formmail.pl.
Error: Bad/No Recipient
There was no recipient or an invalid recipient specified in the data sent to FormMail. Please make sure you have filled in the recipient form field with an e-mail address that has been configured in #recipients. More information on filling in recipient form fields and variables can be found in the README file.
FormMail V1.92 © 1995 - 2002 Matt Wright
A Free Product of Matt's Script Archive, Inc.
Below is my HTML.
<div class="container" id="indexbody">
<div class="row">
<div class="col">
<div class="content trophy">
<h3 class="h3-seo sechead">Ordering</h3>
<hr>
<form enctype="multipart/form-data" method="POST" action="http://hometeamsupply.com/cgi-bin/formmail">
<p>
<label style="margin-right: 100px">Name:
<input type="text" name="name" size=30 required>
</label>
<label>E-mail:
<input type="email" name="email_address" size=30 required>
</label>
</p>
<p>
<label>Catalog:</label>
<select name="catalog">
<optgroup label="Apparel & Accessories">
<option>Pennant Sportwear 2018</option>
<option>Alphaborder Apparel & Accessories</option>
<option>SanMar Apparel, Bags, & Caps</option>
</optgroup>
<optgroup label="Trophies, Awards & Engravables">
<option>Corporate Awards & Gifts</option>
<option>Sports Awards & Gifts</option>
<option>General Awards</option>
<option>Engravables & Gifts</option>
<option>Trophies & Accessories</option>
</optgroup>
<optgroup label="Workwear & School Jackets">
<option>GAME Workwear & School Jackets</option>
</optgroup>
<optgroup label="Uniforms and Teamwear">
<option>Badger Sports 2018</option>
<option>Augusta/Holloway/High-Five 2018</option>
<option>Alphaborder Team 365</option>
<option>Teamwork Athletic Apparel</option>
</optgroup>
</select>
</p>
<p>
<label>Order:</label><br>
<textarea name="order" placeholder="Enter Order Here" rows="4" cols="50" required></textarea>
</p>
<p>
<label>Logo Upload:</label><br>
<input type="file" name="image" accept="image/*">
</p>
<p><button>Submit</button> <button type="Reset">Reset</button></p>
<br>
<input TYPE="hidden" NAME="recipient" VALUE="donrobinson#hometeamsupply.com">
<input type="hidden" name="subject" value="HTS Online Order - E-Commerce">
<input type="hidden" name="title" value="HTS Online Order - E-Commerce">
<input type=hidden name="redirect" value="http://www.hometeamsupply.com/HTSthanks.htm">
<input type="hidden" name="return_link_url" value="http://www.hometeamsupply.com/HTSthanks.htm">
<input type="hidden" name="return_link_title" value="http://www.hometeamsupply.com/HTSthanks.htm">
<input TYPE="hidden" NAME="email" VALUE="postmaster#hometeamsupply.com">
<input type="hidden" name="background" value="">
<input type=hidden name="required" value="name,email,order">
<input type=hidden name="sort" value="order:="name,email,catalog,order,file">
<!--End private fields-->
<input TYPE="hidden" NAME="env_report" VALUE="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT"></p>
</form>
</div>
</div>
</div>
</div>

Related

Format of URL for advanced Google search engine query

I am trying to find the advanced search query for HTML to automatically search the results.
For example, a plain google.com query is https://google.com/search, while image search query is https://images.google.com/images
I can't find the query to automatically search the values from 4 text boxes through the Advanced Search engine.
The functionality I am looking for is that when I try searching for keywords from my web page it should go through the advanced search engine:
<form action="https://www.google.com/advanced_search?as_q=q&as_epq=r&as_oq=s&as_eq=t">
I found an alternative to going through the Advanced Search engine.
The Advanced Search has a few parameters that are passed in the URL for a search query:
all these words: the operator passed is as_q like this.
<input class="" type="text" name="as_q">
this exact word or phrase: the operator passed is as_epq
any of these words: the operator passed is as_oq
none of these words: the operator passed is as_eq
So I named the HTML textboxes with the corresponding names and concatenated the above parameters to the search query.
For the first section of the advanced search, try
<form action="https://google.com/search" name="f">
<div class="field">
<label for="field1">all these words:</label>
<input type="text" class="textinput" id="field1" value="" name="as_q">
</div>
<br>
<div class="field">
<label for="field2">this exact word or phrase: </label>
<input type="text" class="textinput" id="field2" value="" name="as_epq">
</div>
<br>
<div class="field">
<label for="field3">any of this words: </label>
<input type="text" class="textinput" id="field3" value="" name="as_oq">
</div>
<br>
<div class="field">
<label for="field4">none of these words: </label>
<input type="text" class="textinput" id="field4" value="" name="as_eq">
</div>
<br>
<div class="field">
<label for="field5">numbers ranging from: </label>
<input type="text" class="textinput1" id="field5" value="" name="as_nlo">
<span class="seperator">to</span>
<input type="text" class="textinput2" id="field5" value="" name="as_nhi">
</div>
<input type="submit" value="advanced search">
</form>
If you are trying to create HTML page, I would like to share this code.
You can add a space for a right indentation using & nbsp;.
Here is an example:
<form action="https://google.com/search">
All these words:<input type="text" name="as_q" >
<br><br>Exact word/phrase:<input type="text" name="as_epq" >
<br><br>Any of these words:<input type="text" name="as_oq" >
<br><br>None of these words:<input type="text" name="as_eq" >
<br><br> <input type="submit" value="advanced search">
</form>

How can you submit departure date and transit mode to google map direction?

Actually I have a form that use the Place API to determine the right address for start address and arrival address
<section class="itineraire section">
<h2 class="sectiontitle"><?php _e( 'Itinéraire', 'mlog_regim' ); ?></h2>
<form method="get" action="https://www.google.com/maps/" target="https://www.google.com/maps/">
<div class="form-group">
<input name="saddr" type="text" id="saddr" class="form-control" placeholder="Adresse de départ" onFocus="geolocate()" >
</div>
<div class="form-group">
<input name="daddr" type="text" id="daddr" class="form-control" placeholder="Adresse d'arrivée">
</div>
<div class="form-group">
<input name="txtDate" type="date" id="txtDate" class="form-control" placeholder="Date'">
</div>
<input type="hidden" name="travel_mode" value="3">
<button type="submit" class="btn btn-default">Rechercher</button>
</form>
</section>
And I would like to force the google map to display travel_mode 3 (transit) and the date to be set at the txtDate value. I can't find in the doc how to do it, but I've found some website that do it and it look not that hard... Do someone could give me some advice ?
Go Transit
RTC Quebec (Your itinerary)
Fill the form with theses inforamtion
Start point : 2220 Boulevard Pie-IX, Montréal, QC H1V 2E2, Canada
End point : Pointe-aux-Trembles, Montréal, QC, Canada
Choose any random date... for Go Transit, RTC Quebec only prove the travel mode.
Thank's for anyone help it will be appreciated !
The expected parameters are
dirflg set it to r for public transport
date format: mm/dd/yyyy
time format: hh:mm
ttype set it to dep(departure) or arr(arrival)
example:
<form method="get" action="https://www.google.com/maps/" target="google-maps">
<br/>
<input name="saddr" placeholder="origin" value="2220 Boulevard Pie-IX, Montréal, QC H1V 2E2, Canada" />
<br/>
<input name="daddr" placeholder="destination" value="Pointe-aux-Trembles, Montréal, QC, Canada" />
<br/>
<input name="date" placeholder="mm/dd/yyyy" />
<br/>
<input name="time" placeholder="hh:mm" />
<br/>
<select name="ttype">
<option value="dep">departure</option>
<option value="arr">arrival</option>
</select>
<br/>
<input type="hidden" name="dirflg" value="r" />
<input type="submit" />
</form>
http://jsfiddle.net/xnn34qL1/

HTML form onsubmit = null but sends me to a page

So I'm trying to figure out what sends me to another page when I submit this form. frmS.onsubmit = null. Also the submit button doesn't have an on click that sends you to another page. I want to understand how it sends me to the other page and how to stop that.
EDIT: I should add that I want it to send its info that its sending but not throw me on the next page.
EDIT2: SOLVED I've made an iframe and set the form target to that iframe. Thanks Paul Draper
<form name="frmS" method="post" action="/s.aspx?sm=1jFsQEImT6d7s5gJzLre0g%3d%3d" id="frmS">
<div>
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWDwL+raDpAgLOhOEnAqrszZoKAsv4g6IHAqDo8XkCqc7S2wcC96SjuQgC+beo3gUCi5yS5QgCsOmqpAECjce8xA0C0I38vQkCnNGksA4Cw/alsQoC1J6ZlwQMnZiKw/euXyNaAEgF3qFMFg5vlA==">
<input type="hidden" name="__VIEWSTATE" id="
__VIEWSTATE" value="">
</div>
<!--content area-->
<div id="PageContentDiv"><div style="text-align:left;"><div class="sLogo"><img class="notranslate" src="http://secure.surveymonkey.com/_resources/4485/45604485/552bd2d8-f3b6-4e1f-b1e5-3c5ea48189b9.gif" alt=""><div class="sExit"><a class="ExitBtn" target="_self" href="http://www.gazette.net/teacher">Exit this survey</a> </div><br class="clear"></div></div><h1 class="sTitle"><div style="text-align:left;float:none;"><span class="notranslate">My Favorite Teacher 2013 - Montgomery County High School</span></div></h1><div class="pTitle"><h2>2. </h2> <br class="clear"></div><div class="pgHdr"><div id="q1" class="question" style="margin:0 0 0 0;width:auto"><div class="qContent"><div class="qHeader"><abbr class="noborder" title="Question 1">1</abbr>. Please provide your name and e-mail address below. Click done below to submit your vote.</div><div class="qBody"><table cellspacing="0" cellpadding="3" border="0" style="width:100%;"><tbody><tr><td style="width:20%;font-weight:bold;"><label for="text_579095901_6719868704"><span class="hlbl">Please provide your name and e-mail address below. Click done below to submit your vote. </span>Name: (Optional)</label></td><td valign="top"><input id="text_579095901_6719868704" name="text_579095901_6719868704" type="text" size="30" value="" class="open"></td></tr><tr><td style="width:20%;font-weight:bold;"><label for="text_579095901_6719868706">Email Address: (Optional)</label></td><td valign="top"><input id="text_579095901_6719868706" name="text_579095901_6719868706" type="text" size="30" value="" class="open"></td></tr></tbody></table></div></div></div></div></div>
<!--end content area-->
<div id="panButtonBar">
<div style="text-align:center;">
<input type="submit" name="PrevButton" value="Prev" onclick="onesubmit(this);" id="PrevButton" class="btn btntext grey">
<input type="submit" name="NextButton" value="Done" onclick="onesubmit(this);" id="NextButton" class="btn btntext grey">
</div>
</div>
<div class="spacer" style="height:100px;"> </div>
<input type="hidden" name="hid_smC0l1d" id="hid_smC0l1d" value="r9nWM11rHijwX3dDZ1G8NQ_3d_3d">
<input type="hidden" name="hid_smRsL1d" id="hid_smRsL1d">
<input type="hidden" name="hid_smRs1d" id="hid_smRs1d" value="mII0H4g5XRCu4s1ZVhHXsg_3d_3d">
<input type="hidden" name="hid_smCSV" id="hid_smCSV">
<input type="hidden" name="hid_smS1d" id="hid_smS1d" value="rbQr6Wx8ieI2e98gDtyjNA_3d_3d">
<input type="hidden" name="hid_smM0D" id="hid_smM0D" value="E6uK1MhOcpBUysyKlC0vrg_3d_3d">
<input type="hidden" name="hid_smV3Rsn" id="hid_smV3Rsn" value="ryjiA1jsXxArHG3rMuiwxg_3d_3d">
<input type="hidden" name="hid_smS3CT1d" id="hid_smS3CT1d" value="IGaEFrQzyw9OHNYpBjkYsg_3d_3d">
<input type="hidden" name="hid_DC" id="hid_DC" value="UTLbMdg3R07bopsDbKUHM51JeIvWdftG8_2bHZNxxsXT_2bITWvXP9m1Zy_2fqRmNPpOx7">
<input type="hidden" name="Hidden_CollectorToken" id="Hidden_CollectorToken">
<input type="hidden" name="Hidden_Simple" id="Hidden_Simple">
<input type="hidden" name="hid_l04dez" id="hid_l04dez" value="RsDrTe_2b1IjsIQj68b5l2TrRCB0SORAXCRx0_2bpMErNSQ_3d">
<div>
</div></form>
The first line sends you to another page -
<form name="frmS" method="post" action="/s.aspx?sm=1jFsQEImT6d7s5gJzLre0g%3d%3d" id="frmS">
You're being sent to the URL specified in the action attribute of your form.
You are getting a redirect response from your server (assuming that the action on your form is your current page; if not, you are going there).
If you want to submit a form without navigating, create an iframe, and set the target attribute of your form to the iframe.

Form not taking action

I have a problem with a form. It is not sending any action (page not even refreshing on click). If I copy the form in another document locally it has no problem, all working well, mail message being sent. Here is the code of the form:
<form method='post' name='ContactForm' id='contactForm' action='contact_main.php'>
<p>Your name:</p>
<input type="text" class="input-box" name="user-name" placeholder="Please enter your name.">
<p>Email address:</p>
<input type="text" class="input-box" name="user-email" placeholder="Please enter your email address.">
<p>Subject:</p>
<input type="text" class="input-box" name="user-subject" placeholder="Purpose of this message.">
<p class="right-message-box">Message:</p>
<textarea class="input-box right-message-box message-box" name="user-message" placeholder="Your message."></textarea>
<button type='submit' class='myinputbtn' name='submitf' id="submitf">Send your message</button>
<div id='message_post'></div>
<input type="hidden" name="contact">
</form>
Clicking the submit button results in... nothing!
Please let me know if I need to edit my question before downrating. Thanks!
Use
<input type="submit" ...
instead of a button (which is used with Javascript, not for form submitting)

how to include directions in iframe

I have the following form:
<form method="get" action="http://maps.google.com/maps" target="_blank">
<select name="daddr">
<option selected value="Bovetstrasse 1, 3012 Bern, Switzerland">Missione (a Berna)</option>
<option value="">Zollikofen</option>
<option value="">Bümpliz</option>
<option value="">Ostermundigen</option>
<option value="">Münsingen</option>
<option value="">Konolfingen</option>
<option value="">Worb</option>
</select>
<input type="text" name="saddr" maxlength="255" value="">
<input type="hidden" name="hl" value="it">
<input type="hidden" name="z" value="15">
<input type="hidden" name="t" value="m">
<input type="hidden" name="layer" value="t">
<input type="hidden" name="doflg" value="ptk">
<!--input type="hidden" name="output" value="embed"-->
<button type="submit">Guidami</button>
<p class="Didascalia">Powered by Google</p>
</form>
It opens a new window with the map and the directions on the left side as usual.
What I would like to do is to open this content in an iframe that I have in the same page but
if I symply change the target to the iframe name, I get an error (This content cannot be displayed in a frame. To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.)
if I also un-comment the output=embed parameter, then only the map is shown with the route but no listing of directions
Does any-one know how to do this?