I have created a form for entering product data which sends the results back to the mysql database. I have a dropdown/select id named ‘attribute_name’ and the other ‘attribute_value’ I have managed to send the results back to the database and that is working great. I would however like to restrict the user to only choosing values based on the
Tag: html
Why does PHP’s $_POST variable get values from HTML’s name attribute instead of id attribute?
I understand that when accessing values of HTML form elements in PHP, we must use the name attribute within the $_POST variable. However, I’m not sure I understand why that’s the case. It seems to me like it may have been better for $_POST to use id attributes and take advantage of the insured uniqueness, rather than potentially finding multiple
PHP Page Navigation Optimizing – Setting “active” on nav items
I have my nav.php setup with code like this. This is to determine the page and then set both the navigation header and the item as active. I then have the following html code. How can I optimize this as I feel this is horribly done and outdated. I’ve been working on cleaning up all my older code and this
Include HTML markup from another file inside PHP file
So this is the method that I am using and it’s kinda working, but I don’t think that it’s best practice and just seems kinda off, so I wanted to see if someone knew a much better and/or cleaner method on importing HTML markup that will be located in two locations. So let’s say that I have my main index.php
How can I give an html element an ID taken from a php variable?
I am creating a website which uses php to get data from a phpmyadmin database and use the info from this database in my html. I have this php query which finds the value from the ‘ID’ field and then creates a variable called ‘$studentID’ with this value (which will be the number 2 in this case): Then I have
PHP Upload Multiple Images through Loop
I am trying to upload multiple images in a loop but for some reason it will create the directory, upload 1 file and create the MySQL record so I’m not sure why it only uploads 1 file even though when i’ve printed $i to see how many files have been counted it always counts the correct amount. PHP HTML I’ve
Undefined constant “page_link” (View: resourcesviewshomeindex.blade.php) In the: “resourcesviews/home/index.blade.php” file at line: 19 [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 9 months ago. Improve this question Hello i need help in this code Undefined constant “page_link” (View: resourcesviewshomeindex.blade.php) In
I want to display the days and date also by the relationship between the coach and working times
Here a want to add Appointments available for the coach by using two tables…one for date_days the second for trainer and I make a 1-m relation between two tables. Dateday Table… Show this way you give me an error, And I want To add a day and date and start_date/end_date to the index page for trainer Who can do this??
how can I upload csv file and password_hash [closed]
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 11 months ago. Improve this question I have this code on my website, work great, I can upload CSV file to my database, but I want the $item2 to change from
How to add php file inside the confirm() function from JS
So, I want delete records from database using confirm() function, inside this alert should been shown what will be deleted when “OK” button will be clicked. To sum up, I just want to put php file inside the confirm(). Answer Hmmm, I guess you must try AJAX Request for deleting record, check the following code for reference. I WOULD SUGGEST