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>
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 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?
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 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 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