I am trying to register barnes and noble account
what is the accepted phone-number format here?
I can see the HTML code for the pattern attribute is
^((1|\+1)?(\s|-|.)?)?((\(|\s\()?[2-9]{1}\d{2}|[2-9]{1}\d{2}(\)|\)\s)?)(\s|-|.)?(\d{3}(\s|-|.)?\d{4})
I tried to enter it in +1(319)123-4567
but without any luck, any ideas?
I fured out, that I got a problem with the "&" in a parameter, because the browser is interpreting it as a new parameter. Using urlencode doesn't help.
Example: http://www.example.com?artist=Brooks & Dunn&title=Maria
Is there a way to go around that problem?
Use URL encoding to encode unsafe characters in an URL.
http://www.example.com?artist=Brooks%20%26%20Dunn&title=Maria
See https://en.wikipedia.org/wiki/Percent-encoding
I want my e-mail link to set the e-mail subject to :
Some text & some other text
my tag is
mailto
and it sets the Subject only to
Some text
How do I correctly write the %20%26%20 (" & ") part?
Thanks
mailto:somemail#example.com?subject=some%20text%20%26%20some%20other%20text
I created an open-source tool for making this easy. Enter the strings you want and you'll instantly get the mailto:
mailto.now.sh
💌⚡️ Template full emails in a mailto
Im using the following mailto link to send an email:
<a class="share3" title="" href="mailto:?subject=#check&body=#domain">
It works well, but sometimes my subject will contain an ampersand (&) character, and when it does my email is created without a body.
Any way to resolve this problem?
In order to get special/reserved characters into a URL, you must encode them - to get an & to work, it must be encoded to %26.
More details here: http://www.w3schools.com/tags/ref_urlencode.asp
use %26 for the & in the subject.
I need to make a Mailto link to my website which is suppose to contain either the product name or the product page URL in the subject section. How can I do it?
Exp: When you get an email through eBay about a product you are selling or buying, you automatically know what product that email is about by seeing the product name in the subject section.
How can i do this?
Email Me!
Internet Archive:
Set up an HTML mailto form without a back-end script
HTML Mailto Attribute and Tips
HTML Mailto Tips and Tricks
Mailto Syntax
Related Stackoverflow Questions:
Avoiding the Mailto Annoyance?
Best way to obfuscate an e-mail address on a website?
Effective method to hide email from spam bots
What are some ways to protect emails on websites from spambots?
I've run into problems with this before when I didn't url encode the value, so I would suggest (using lc's example):
<a href="mailto:foo#bar.com?subject=This+Is+My+Product">
or
<a href="mailto:foo#bar.com?subject=This%20Is%20My%20Product">
This page [Link Dead] outlines the syntax of mailto URIs:
Address message to multiple recipients
, (comma separating e-mail addresses)
Add entry in the "Subject" field
subject=Subject Field Text
Add entry in the "Copy To" or "CC" field
cc=id#internet.node
Add entry in the "Blind Copy To" or "BCC" field
bcc=id#internet.node
Add entry in the "Body" field
body=Your message here
Within the body use "%0A" for a new line,
use "%0A%0A" for a new line preceded by a blank line (paragraph),
What you are looking for is:
<a href="mailto:foo#bar.com?subject=This Is My Product">
Note, it's probably a good idea to URL encode the spaces with either a + or a %20:
<a href="mailto:foo#bar.com?subject=This+Is+My+Product">
Try This
If you want something more advanced, you're going to have to code it from scratch (or use someone else's script). Try looking into PHP, ASP.NET, Ruby on Rails, etc.
Try this code to set subject, body, cc, bcc
<p>HI venky!</p>