I have a HTML form which sends the results to a database currently. The questions are hardcoded to the html page and I am trying to make the form more scalable, dynamic and flexible. I got suggested …
Tag: forms
How to validate and insert data of multiple checkboxes in register.blade.php laravel?
I added 2 checkbox inputs to the register.blade.php file. I want one of them to be required, i.e. the user must select one or the other, otherwise I’d like to display some kind of error message like “…
Jquery predefined textarea wont clear
Prefilling a textarea with data pulled from a DB. <textarea name=”body” id=”body” rows=”5″ cols=”70″><? echo $body; ?></textarea> I have a clear button to make it easier for the user to wipe a large chunk of text without having to highlight and delete. The button uses an onclick=”clear();” function call. Here is the function… The problem is it wont clear the
Laravel: Displaying data from db after clicking a button – but staying on the same page
That’s the task I am currently facing: Starting point: I have a form, which accepts data and saves it into the database. What needs to be done: I need to include a button called “show data” (a different one than the “submit” button in the form, it can even be a clickable div), which will then display the data from
How to send a form with 2 values ​from javascript?
I have a form and I want from a javascript function to send the form to php with 2 variables that I have in that javascript function function transfer(old_id){ var select = document….
Input Id Name showing to URL?
I have a problem, I am trying to make some forms in bootstrap however it messed up. Once I converted the forms to bootstrap related they are no longer doing the job they’re supposed to do. What I am …
Create PHP friendly array for checkboxes with jQuery
The title of the question might not be very explaining and I would really appreciate anyone who can help me with a solution. It’s a special case where I have no access to the PHP file and can’t change …
Laravel5.8: The GET method is not supported for this route. Supported methods: POST. issue
I am setting user profile update section. But when I went to profile create page, I got a following error. The GET method is not supported for this route. Supported methods: POST. I tried php …
Variable not working when an integer works fine in Gravity Forms GFAPI::get_entries filter
I am trying to understand why a variable that contains an integer cannot but used to replace the integer in GFAPI::get_entries field_filters value. This works: This does not work: where $child_entry_ID is 72. Of course prints “72” I use it like this In the case that works, my arrays print correctly, in the case that doesn’t work, I get “Array().
How to keep linebreaks in html textarea POST data
I am trying to have lyrics to a song submitted into a text area. So, this needs to keep the line-breaks when I output. I am aware of the fact that browsers standard should use rn as the line-break, and PHP’s nl2br() function can convert the rn into <br>tags. I am also aware of the fact that textarea inputs require