html form submit issue - html

I have finished my site but my issue is when I tried to submit a contact to see if it works, I keep getting the error " Cannot GET /bojurier#gmail.com ". I was hoping some can help me with what I'm doing wrong.
I have tried changing the input into a button but it still gave me an error.
<form class="form-wrap" action="bojurier#gmail.com" method="Get" enctype="text/plain">
<input type="text" placeholder="Name">
<input type="email" placeholder="Email">
<textarea placeholder="Message" name="Message"></textarea>
<input type="submit" name="submit" value="Send">
</form>
The error message below is what I keep on getting.
Cannot GET /bojurier#gmail.com

You need to change your action to mailto:
<form class="form-wrap" action="mailto:bojurier#gmail.com" method="Get"
enctype="text/plain">

Method should be post. Will receive these details. Method='post' and action="mailto:you#yourdmainhere.com it will work.

Related

My form doesn’t show info when someone submits, for example I’ll receive the name, email, message but it’ll be blank

I’m using the FormSubmit API.
When a person fills out the form and submits it, whatever they have filled out doesn’t show and I just receive an empty form.
<section id="form-section" class="fade-contact">
<h2 id="form-title" class="fade-contact">Get in touch</h2>
<form action="https://formsubmit.co/8421d4ce6448fbeda493e2c8ce639a8e" method="POST" id="form">
<!-- <input type="hidden" name="_captcha" value="false"> -->
<!-- <input type="hidden" name="_autoresponse" value="Thank you for getting in touch!"> -->
<div class="name-email fade-contact">
<input type="text" name="name" placeholder="YOUR NAME" id="form-name" required>
<input type="email" name="email" placeholder="YOUR EMAIL" id="form-email" required>
</div>
<input type="text" name="textarea" placeholder="YOUR MESSAGE" id="form-message" class="fade-contact" required>
<button type="submit" class="btn submit-btn fade-contact">submit</button>
</form>
</section>
I corrected the name attribute to not use 2 of the same values but still it doesn’t work!
Here is an image of the formsubmitAPI website instructions
screenshot of formsubmitAPI guide
btw I hosted with netlify just incase that helps
I FIXED IT!!!!!!!
Turns out I had some JavaScript to clear the input values after submission and that was somehow affecting the form. I guess the input values were clearing before the form was submitting hence I was getting blank emails.
I just commented it out for now and will look into it later.
But…..I fixed it!! I’m so happy!
Thank you to everyone that helped

mailto not sending text from text area in chrome

I have mailto in my HTML and it seems to be working as it launches my default mail app (Mail on Mac). The problem is it is not sending the text from the text area. Below is my code.
<form target="_top" action="mailto:briankaty1#blueyonder.co.uk" method="post" enctype="text/plain">
<label>name</label>
<input type="text"><br>
<label>Your email</label>
<input type="email"><br>
<label>Your message</label>
<textarea name="" id="" cols="30" rows="10"></textarea><br>
<input type="submit" name="">
</form>
Any help would be appreciated.
Only form controls with a name can be successful controls. None of yours have a name.
Asides
You should learn how to use the label element properly. Without a for attribute or a form control inside it, a label is useless.
mailto: forms are highly unreliable. Use an HTTP(S) URL and a server-side form handler instead.
Just mocked this up for testing because I didn't believe this was actually possible, and what do you know - it is. Seconding #Quentin's comment that you should not do this, but I can confirm this does populate the mail body with form content (on Debian/Firefox, anyways).
<form target="_top" action="mailto:{YOUR_EMAIL}" method="post" enctype="text/plain">
<label>name</label>
<input name="name" type="text"><br>
<label>Your email</label>
<input name="email" type="email"><br>
<label>Your message</label>
<textarea name="message" id="" cols="30" rows="10"></textarea><br>
<input type="submit" name="">
</form>

"Internal Server Error" Dreamweaver cc 2018

I am creating a form in html, on Dreamweaver cc 2018. For my new website. But every time I use it ,it prints "Internal Server Error". Which means that there is a problem, but no matter how many websites I look for answers on there it never works. Here is my form code.
<form action="myemail#exemple.com" method="get" enctype="text/plain">
Name:<br>
<input type="text" name="name"><br>
E-mail:<br>
<input type="text" name="mail"><br>
Comment:<br>
<input type="text" name="comment" size="50"><br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
I have tried "get" "post" and "default"
And I am not on a server.
Thanks :-)
If you're trying to send a mail you'll need to use action="mailto:myemail#exemple.com" instead of action="myemail#exemple.com"

HTML form won't validate

I made an HTML form for a client programming project I am working on. The form is not supposed to be connected to a server for the project, but it needs to have validation. I have tried using "required" but it doesn't seem to work. Adding in "placeholder" works though. I don't know what I'm doing wrong.
<div id='details' style="right:30px;">
<form name="details" method="post" id='detailsForm' onsubmit="return validateForm()">
First Name:<br> <input type="text" name="firstName" required><br><br>
Email Address:<br> <input type="email" name="emailAddress" placeholder="Enter a valid email address" required><br><br>
<input type="button" value="Submit" onclick="slideOff('details');"/>
<p>Sign up for our daily newsletter all about Istanbul - the greatest city in the world!</p>
</form>
</div>
HTML 5 validation triggers when you submit the form.
You don't have a submit button (only a button button), so that never happens.

Why does my input box not accept data on my website

I have a form to enable people to provide an email address but it wont allow any input. The site is www.pbadvisory.com.au and here is my HTML code:
<form action="mailto:jdoe#pbadvisory.com.au" method="get">
<input type="text" name="emailaddress" id="newsletter_email" />
<input type="submit" id="newsletter_subscribe" value="Subscribe" name="submit" />
</form>
any suggestions to fix would be appreciated
Just went through your site. Actually it is allowing to input the text. But the text color is white and background is white, so its invisible. Change the text color so you can see it.
You cannot use a mailto: as a form action. If you want a form that sends e-mail, it must be done server-side.
Try with following Changes!
<form action="MAILTO:jdoe#pbadvisory.com.au" method="post" enctype="text/plain">
<input type="text" name="emailaddress" id="newsletter_email" />
<input type="submit" id="newsletter_subscribe" value="Subscribe" name="submit" />
</form>
Form method should be 'post' not get. That's the reason for your problem. Any way here is the full code with email subject is also included.
<form method="post" action="mailto:youremail#youremail.com?Subject=Email Subject" enctype="text/plain">
E-mail:<input id="emailAddress" name="E-mail" type="text" maxlength="24" />
<input type="submit" value="Send Email" />
</form>
Hope it helped.
Update:
Just a note this is not the right way if you want users to get subscribe with your web site.