Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I am making a form and I want it to email me whenever somebody completes it. Does anybody know if this can be done in HTML alone or if this has to utilize something more? So basically I want to know if it is possible for when a button is pressed, if that can send an email. Thank You!
<form action="mailto:yourmailadress#xxx.com?Subject=Mail Subject" 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>
This is the process of sending mail that can be done with html without using a different language.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have a registration page, having 3 columns username, email, and password. Login Page, consisting of 2 columns email and password now I want to show the username of the corresponding email while logging into the page.
Note- I just want to know how can I fetch the value entered in email to another page.
Thanks in Advance!!
you can get user information like this
sessionService.loadUser().then(user => console.log(user));
you could do this:
page1.php:
<form action="page2.php" method="POST">
<input type="text" name="name" />
<input type="text" name="surname" />
<input type="button" value="Click Me">
</form>
Then once you submit the form the file page2.php will receive the form field values in this way;
page2.php
if($_POST){
var_dump($_POST);
}
good luck!
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I'm wondering how can I make checkbox image with html that I can send it with php to email. Or how can I target that image in checkbox with php?
I want that to be like small shop, that you can click on image and send it to email and ask for price.
Here is my tiny code:
<form>
<label>
<img src="https://upload.wikimedia.org/wikipedia/hr/thumb/5/55/Avatar_2009.jpg/220px-Avatar_2009.jpg">
<input type="checkbox" id="box">
</label>
<input type="submit" value="ask for price">
</form>
You can create another label and use for
TRY THIS:
<form>
<label for="box">
<input type="checkbox" id="box">
<img src="https://upload.wikimedia.org/wikipedia/hr/thumb/5/55/Avatar_2009.jpg/220px-Avatar_2009.jpg">
</label>
<input type="submit" value="ask for price">
</form>
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i have 61 fields in a page, i need input validation , if any one leaves a field blank and enter submit then a error message should show. because i can`t code for every single field validation, quite lengthy. numeric field should accept only numbers, here the field is "phn_no". i am just showing only 2 fields. thank you folks.
<form action="save.php" method="post">
<input type="text" name="name" id="name">
<input type="text" name="phn_no" id="phn_no">
<input type="submit" value="save" name="submit">
</form>
Use input like this
<input type="text" name="name" id="name" required>
required field must be fill then only we submit the form otherwise it display notification.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
this is my first question!
I'm working on a simple email spoofer, but the problem is, when you click the submit button, the form fields save the originally entered values, and that means you can spam someone with tons of the same email easily by either pressing the submit button a lot or refreshing the page.
I would like some assistance.
Index.php - http://pastebin.com/dWp5V9vW
Mail.php - http://pastebin.com/DdZs8Rhq
That's because you're dropping the submitted field data into the HTML elements using PHP.
Here is the form HTML without the PHP extras.
<form action="index.php" method="POST">
<input type="text" name="from" placeholder="From" value="">
<input type="text" name="to" placeholder="To" value="">
<input type="text" name="subject" placeholder="Subject" value="">
<textarea name="body"></textarea>
<input type="submit" name="submit" value="Sent">
</form>
Just replace it in your index.php file.
Edit: If you're feeling a bit lazy, I did it for you: http://pastebin.com/XDZyva5T
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
im trying to pass a variable with a submit button and it doesn't work.
<FORM METHOD="LINK" ACTION=<?php echo "\"add_event.php?email=".$email."\""?>>
<INPUT TYPE="submit" VALUE="add event">
</FORM>
$email is fine in the page that's calling it.
http://localhost/aproject/add_event.php?
that is the url that's passed.
not
http://localhost/aproject/add_event.php?email=myemail#email.com
as I want.
Any thoughts are appreciated.
edit:
the generated html is
<form method="LINK" action="add_event.php?email=closeded#gmail.com">
<input type="submit" value="add event">
</form>
There is no such form method as LINK, so your form is using GET (the default).
When you submit a GET form, you will destroy any existing query string on the form action and replace it with one generated from the form data.
Use a hidden input to store your data instead.
<form action="add_event.php">
<input type="hidden" name="email" value="<?php echo htmlspecialchars($email); ?>">
<input type="submit" VALUE="add event">
</form>