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
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
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();
});
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 6 years ago.
Improve this question
Example: http://imgur.com/gallery/bXNOg
I haven't found anything about this anywhere. I want to remove the form it has been submitted. Is this even a thing or is he just putting a black box over it?
This is a really basic IF/ELSE solution that could be done in numerous languages. A basic PHP example
<?php
if ( (isset($_POST[submitted])) && ($_POST[submitted] =='true')){
// form handler code goes here..
} else {
// form has not been submitted. so show a form
?>
<form action="" method="POST">
input tags. lots of em
<input type="hidden" name="submitted" value="true">
<input type="submit" value="SUBMIT THE FORM">
</form>
<?php
}
?>
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 6 years ago.
Improve this question
I have a vanilla PHP directory comprising of queried MySQLi information but I want to make it so that on the press of a button it would dynamically take the information from whatever button I clicked and populate the a redirect page with that information.
The problem being, no matter where I look I can't figure out how to achieve that, $_GET & $_POST don't seem to be the way to go, any pointers?
Cheers in advance.
You were on the right path, maybe you just missed something. Here is an example using POST:
HTML
<form action="page2.php" method="post">
<button type="submit" name="myButton" value="myValue1">Click Me!</button>
<button type="submit" name="myButton" value="myValue2">Click Me!</button>
...
</form>
PHP
$whichButton = $_POST['myButton'];
echo $whichButton; // myValue1 or myValue2
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'>