The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> HTML coding problem
fairyskills27
post Feb 9 2021, 12:57 PM
Post #1





Group: Members
Posts: 1
Joined: 9-February 21
Member No.: 27,782



Hi,
I'm making a website for a friends business but now I'm stuck, I tried to fix it myself but I'm not into html so I failed miserably.
I want an option for the customer to upload pictures with a message that goes to an email adress. I could just do a "mailto" but we'd strongly prefer a text box with the option to attach pictures on the website.

The code I have so far:

<form data-component="form-121456465">
<div class="form-group">
<label for="email">E-Mail</label>
<input type="email" class="form-control" id="email" placeholder="max.mustermann@example.com">
</div>
<div class="form-group">
<label for="message">Nachricht</label>
<textarea class="form-control" name="message" id="message" rows="6" placeholder="Was würden Sie uns gerne mitteilen?" required></textarea>
</div>
<div class="form-group">
<label for="file">Datei</label>
<div class="input-group">
<span class="input-group-btn">
<input id="file" name="file" type="file" class="sr-only" aria-describedby="file_help" />

</div>
<small id="file_help" class="form-text text-muted"></small>
</div>
<div class="checkbox">
</div>
<div class="form-group clearfix">
<button type="submit" class="btn btn-default pull-right">Absenden</button>
</div>
</form>


I don't know where I got this from and if it even makes sense but I feel like this comes close to what I want. I just cant define where the text and images are send to.

Thanks
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 9 2021, 01:11 PM
Post #2


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

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



You need a script on the server that handles the form. The URL to that goes in the action attribute in the form tag. There are ready-made scripts you can search for.

Things like this simply can't be done with HTML alone. A HTML form just provides the interface. The action, whatever it my be, takes place on the server with the help of a programming language.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

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

 



- Lo-Fi Version Time is now: 19th April 2024 - 05:23 AM