I am just starting to learn php and when I run my php file, no matter the browser, i get a 404 error. What is my code missing that is causing this? This file is supposed to display a message after a user submits a ‘contact me’ form. Answer this code works. see this is firefox: https://i.imgur.com/…
Tag: html
Jquery validation making incorrect appearance of form elements, submit button? [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 2 y…
Wrapping json results in tag
I am trying to make my own API for my discord bot and i noticed the response looks like this: font probably times new roman because it is not wrapped in a <pre> tag. But when I DO wrap it in a <pre> tag to make it look like this: (font monospace) the contents have the tags in it… For
Php get_meta_tags doesn’t getting result (help)
I want to pass user input youtube url and get keyword or tags in result. But i don’t know what is wrong. When i click on submit button nothing happens Html Thanks in advance Answer Here is a working example There are 3 small mistakes in your code: Your submit name is Submit you are checking submit Your …
Send Javascript array to PHP using Ajax (can’t echo out the array from PHP)
I’ve a form with a simple button in it. When clicking on the button the function delete_data() is called. This function fills an array with data. I would like to send this array to PHP with Ajax. …
Using PHP to validate range slider
I have a simple range slider that allows a user to select an age
Age: <br&…
Form Multiselect option is only returning 1 option in message
this is my first time making a form, and I have multi-select option but I think I’m missing out something because the form is working but when selecting multiple options the email I receive is only showing 1 option. send.php Answer You need to do a small change in your HTML. Add a bracket pair to the na…
How can i display my preg_match results in various divs so they can have multiple results under the correct heading?
Forgive me if this is simple but I have a for each loop that searches JSON data for results from a search. I then have some preg_match statements that will look at some of the tags within the JSON and if their is a match display the thumbnail in a div. and currently this all works. But it currently displays
Checkboxes values
I’m trying to get the values of the checkboxes I check and put them in a php variable, but when I output that value, it gives me zeroes (0). If I check 3 boxes, I get three zeroes, etc. Info: I want every checkbox that is checked, so if cb1 and cb3 are checked, I want the variable to be
Using the HTML Select tag to switch between languages in a multilingual website
Before I have a website that i built to switch from English to Dutch just by clicking on a hyperlink i.e <a> I had 2 files; de.php and en.php with following structures; de.php en.php To load a specific language. User only has to click on the hyperlink index.php Now, there’s need for me to add othe…