The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Need form help
tiffcady
post Mar 3 2021, 10:59 AM
Post #1





Group: Members
Posts: 1
Joined: 2-March 21
Member No.: 27,830



I havent coded in 10 years and I have this script for a form that I get a page error on submission.
I borrowed it and I use Weebly to make my site. I just added a HTML content to my page and pasted the code in it.
Ive edited it quite a bit from what I borrowed. It had refernces to the script files and I added them to the page as I dot know how to make references in Weebly and dont want to bother learning.
I edited the form tag to email the form submission results to me. But I dont get them on submit I get just the page not found error.
I'd like to have a confirmation message or page displayed after submission. I dont want to use php. Prefer it all to be done in this page using jscript and html.
Can you help me get this working? Im pretty sure Im not far from a solution.
I also dont have a style sheet on my server that this refers to - is it accessing the original sites css file? I dont want this form to access the original site I borrowed it from at all, can you review this code to make sure it is not accessing anything outside of itself?
Also the date pop ups dont work, is there a script I forgot to embed?
Original form is here:http://avipro.asnap.net/avi-pro/airvets
Oh I also removed all the error messages in the spans after each question because they were displaying all the time - likely from me not refering to the style sheet right?

1. Need form to send me email results when submitted
2. Need confirmation page or messgae to display aftter submission "Thanks ...we will reply within 24 hours, text 281-658-9661 if you need service within the next 2-3 days so we can reply sooner"
3. Fix page not found error on submission
4. make it stand alone
5. make date fields text not pop ups
6. Make error message for each question invisible unless needed- copy style sheet from original and add to mine?

THanks!
Tiffany

MY CODE:http://www.houston-pet-taxi-transport-flight-travel-service.com/pet-transport-estimate.html




User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 3 2021, 11:20 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



The form doesn't use a script. It's just a mailto form. Meaning that if it worked it would open the default email client on the user's machine with a mail with the entered data in it. If the user has an email client. You really should use a script on the server. mailto is totally unreliable, especially today when many people only use web mail.

But, there are several reasons for that it doesn't work at all. You have this (I changed your email so spam bots won't pick it up from here).

CODE
<form name="petquote" id="petquote" action=”mailto:info@example.com” method=”POST” enctype=”multipart/form-data”>


First, you have used Word or the like. There are curly quotes around all values except the ones for name and id. Change to plain straight quotes. Use a text editor. Then I think text/plain is a better choice for enctype. Like this.

CODE
<form name="petquote" id="petquote" action="mailto:info@example.com" method="post" enctype="text/plain">


I don't understand what you said about the style sheet. You have plenty CSS and the form looks styled?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 04:02 AM