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
How to make confirm tab before page redirects to calculation php?
echo '<form action="include/reserve.php?Nr='.$row['Nr'].'" method="post">
<input class="button1" type="submit" name="reserve" value="Reserve" />
</form>';
With some javascript
document.querySelector('.button1').addEventListener('click',function(e){
e.preventDefault();
//Do whatever you want
//Then get your form element with js and call .submit();
});
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 1 year ago.
Improve this question
So I'm trying to make something like this: www.someurl.com/toFiles?info=something and i don't know what to search or what tutorials to look for. I'm asking for a Youtube tutorial or something else that could help me.
Your question is not clear. But what I understood I am adding here.
Try this:
<form method="get" action="https://www.someurl.com/toFiles">
<input type="text" name="info">
<input type="submit" name="submit" value="Submit" >
</form>
After clicking submit button it will show result like:
www.someurl.com/toFiles?info=something
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 form that currently goes to a PHP page to process the data from the form and output it to plain text. However, I would also like an option to have the output use special HTML formatting. Is that even possible?
You can use the formaction-attribute on the button like this:
<form method="post" action="show-as-text.php">
<button>Show as text</button>
<button formaction="show-as-html.php">Show as html</button>
</form>
The formatction-attribute on the button will override the forms action.
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 7 years ago.
Improve this question
<button name="saveV" class="btn highbutton" type="button"
onclick="if(<?php echo $test?>()) {homepage.test2()}">
When I click this button my data is saved in db. All I want to do is to display the contents of a div once data is stored. Please Help
You could call jQuery's toggle() function after saving your data:
$("#mydiv").toggle()
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 8 years ago.
Improve this question
I'd like to change the value of the html button but this keeps showing plain text why?
<input type="submit" value="<? $button_value ?>">
<input type="submit" value="<?php echo $button_value; ?>">
try this
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 8 years ago.
Improve this question
How do I get the data the user inputs (SUCID) and insert it correctly with SUCID, SID, CID
$SUCID = clean($_POST['SUCID']);
I suppose your function clean() doesn't works correctly.
I think you need to change the
<button type='submit'>
to
<input type='submit'>