"Internal Server Error" Dreamweaver cc 2018 - html

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"

Related

Sending an Email Using R Markdown?

I have always wondered if this is possible in R.
On many websites, there is usually an interactive form which allows the user to send an e-mail to the owner of the website for feedback, comments, questions and suggestions:
Is it possible to create such a form within a Rmarkdown/Flexdashboard document?
I found links online that shows something similar :
https://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_mail
How to send email from HTML Form
For example - I copy and paste this code in the Rmarkdown document:
<html>
<body>
<h2> Questions? Send an e-mail! </h2>
<form action="mailto:antonoyaro_9999999999999#hotmail.com" method="post" 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>
</body>
</html>
I think this partially worked - but is there a better way to do this?
Thanks!

html form submit issue

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.

Simple form data not working

I'm trying to upload an image and send it over to a server using a very basic form in HTML. Here is my code:
<form action="/api/addCategory" enctype="multipart/form-data" method="post">
<input type="hidden" name="name" value="test">
<input type="file" name="file" />
<input type="submit" value="Submit">
</form>
However when I click the button nothing happens (the server doesn't get any requests). The strange thing is I'm using an almost identical version of this code somewhere else in my project and it's working completely fine. What am I missing here?
Try like this ! Use any server side language like php.
<form action="/api/addCategory" enctype="multipart/form-data" method="post">
<input type="hidden" name="name" value="test">
<input type="file" name="file" />
<input type="submit" value="Submit">
<input class="fileattach" type="file" placeholder="upload" name="attachment" required><br></input>
</form>

Mailto doesn't work in chrome

For some reason mailto works in every browser but chrome for me. is it just me or is it not supported anymore? because it had worked for me before
but now it doesn't. not even the W3 schools mailto example works but it does try to but for some reason it doesn't work as seen here.
It's not just my computer I've also tried a different computer in my house and I have also made sure that no chrome extensions are interrupting it.
Update: here is an example of mailto code that doesn't work for me:
<form action="MAILTO:someone#example.com" method="post" enctype="text/plain">
Name:<br>
<input type="text" name="name" value="your name"><br>
E-mail:<br>
<input type="text" name="mail" value="your email"><br>
Comment:<br>
<input type="text" name="comment" value="your comment" size="50"><br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>

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.