Having problems with my submit button in my php/html file [closed] - javascript

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 2 years ago.
Improve this question
I am starting now in this whole world of development and I created a PHP file with some HTML included.
in the beginning, the file was called index.html, but then I started using PHP in the file so I renamed it to index.php. Then I found a not so common name for my project and renamed it to LoginProject.php.
Everything is working perfectly except for my submit button.
When I press enter or click submit, the button in the file named LoginProject.php sends me to a "secondary" page called index.html (the original name I gave my project).
Here you can see the error message I'm receiving
so you can see I'm talking about.
Can anyone help me change that?
Thanks,
B.

check it
<form action="LoginProject.php"
method="POST"
>

Related

Javascript not showing up on GitHub Pages [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 4 months ago.
This post was edited and submitted for review 4 months ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I'm new to web development.
I made a website using HTML, CSS, and JavaScript and uploaded it to GitHub Pages. My JavaScript doesn't work there.
When running on my localhost, everything works fine, but on GitHub pages the javascript simply does not show up on my HTML page. If you check the IMPORTANTE_LER.md file, there's a youtube video on how it looks on localhost.
My repo: https://github.com/maruan-achkar/N2PAC_NEW
Console errors:
Probably the way you included your JS file path breaks in Github Pages because it can't find the file so adding a "./something.js" to your include might fix it.
<script src="./something.js" type="module"></script>

Switching to new web page with html [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 1 year ago.
Improve this question
When the login part is clicked on the link I gave below, the page is refreshed, but I want to switch to another new white page, how can I do that?
Thanks
Use target=_blank property to open the link to new page
Just add target-blank.
Click Me
The "href" tag is a "Hypertext Reference" so you can use this code to go to new pages or link to other .html files or even websites like Tesla.com, Amazon.com, etc. You can even link things like emails, phone numbers, Java Script, etc. Here are some examples.
Teslas Website
Blank Page
Home Page
123 456 7890
Hope this helped!

Trying to get a simple php form to fire [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 5 years ago.
Improve this question
I shouldnt even be in HTML/CSS, but here I am trying to incorporate a php modal contact form into my site...
I'm trying to get all of a demo form's functionality into my footer page (and then I'll restyle everything.)
http://danux.me/sections/footer_modal.html
I'm trying to get "email me" to fire ideally, but am settling now for just the Demo button to fire the popup form.
I also uploaded the demo form I'm pulling code from, just to make sure it works on my site. (It does.)
http://danux.me/contact/
Any guesses as to what I'm doing wrong?
Your first link is in a different folder, yet the url for $.get points to the same relative file. Which isn't there.
So in contact.js needs to have
$.get("../contact/data/contact.php", function(data){
I obviously cant test this. And it looks like there is some redesign in folderstructure coming up.

jQuery change input button value attribute text after click [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 6 years ago.
Improve this question
I got a problem with my jQuery code on a Website.
Website: LastDeath
I want what the title says, to change the value text in an input button(Send Button).
I've already Googled and tested some code snippets from other questions, but it doesn't fix my problem. So I asking U guys! :)
If u open the console(in chrome #chromelover) go to sources, js, jq-main.js
you can see the current code snippet(MESSAGE FORM) for the input button, test.. do whatever you want with it and I would appreciate a comment.
Thanks,
Mike.
A few things:
Load jquery first using:
<script
src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
I would start with:
$(document).ready() ...
As I've never seen $().ready().
I guess it's what's breaking your code.
I don't understand your idea of changing the text on the button as it is the submit button and the page would be reloaded. In case you want to submit using an AJAX request later, you may want to use preventDefault (https://api.jquery.com/event.preventdefault/) to prevent page reload.

is there away to get the path of HTML element [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 8 years ago.
Improve this question
I'm trying to change or remove errors from a HTML page I'm using firebug add in firefox and I have this part which I really don't where its writen :
is there a way to get the file where this is write .
thanks for any hint
Continuing from my comment: The highlighted element is dynamically added by a slider plugin e.g. like http://jqueryui.com/slider/ The clue is the classes like ui-slider-handler.
Look for the id="voltage" to find the place in the HTML where the div is and look for #voltage or ("voltage" or 'voltage') to see where the plugin is connect to it (in any jQuery or Javascript code).
I don't think you can get the exact path of the file, but check "View page source" option to see what files the page has been linked to.

Categories