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 days ago.
Improve this question
Trying to achieve something along the lines of
<input id="notes" type="text" name="note | noteb" />
<input id="notes" type="text" name="note, noteb" />
so as to pass the value from the input to multiple objects once the form submits.
Is it possible and if so, how?
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 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 have a software that opens the contact-form.php page, and when it opens i get the following HTTP Headers:
http://192.168.1.7:8091/syg/new/contact-form.php?lead_id=1601734&phone_number=6977060744&first_name=John
How can i present these values to my form on PHP? The form has a typical format of:
<input type="text" class="form-control" name="your_phone" placeholder="phone" required>
you can check $_GET values like this:-
<input type="text" class="form-control" name="your_phone" placeholder="phone" value = "<?php echo (!empty($_GET['phone_number'])) ? $_GET['phone_number'] : '' ;?>" required>
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
In my application form updation twig is as follows:
<div class="form-group">
{{form_label(formUser.name)}} :
<input class="form-control" disabled="disabled" value="{{formUser.name.vars.value}}" type="text">
<input id="appbundle_user_name" name="appbundle_user[name]" value="{{formUser.name.vars.value}}" type="hidden">
</div>
It returns null value when updating the form how to solve this issue,to get the output?
disabled is not the same as readonly, it will not be included in the POST variables if that is where the value is null.
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
I'm new to PHP. I want to retrieve the value from my checkboxes in PHP and read it.
HTML
<input type="radio" NAME="andras">Male
<input type="radio" NAME="andras">Female
PHP
$number= array($_POST['andras']);
$fylo=$number[$i];
You need to use the value attribute to give values to the buttons.
<input type="radio" name="andras" value="male">Male
<input type="radio" name="andras" value="female">Female
Then in the PHP, $_POST['andras'] will contain either male or female.
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