-
Posts
8,682 -
Joined
-
Last visited
Previous Fields
-
Languages
HTML/CSS/JS, PHP/MySQL, bash, VCS, OSS, Java, Python
Contact Methods
-
Website URL
http://www.analogstudios.net
-
ICQ
0
Profile Information
-
Location
Rhode Island, USA
-
Interests
Music, programming, computers, web design, business, books, and politics.
Recent Profile Visitors
72,184 profile views
thescientist's Achievements
![Rank: w3schools Guru (7/7) w3schools Guru](http://content.invisioncic.com/r49260/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png)
w3schools Guru (7/7)
231
Reputation
-
EmyCodes started following thescientist
-
chikitaisaac started following thescientist
-
Jahangiralomminto started following thescientist
-
Not sure what you mean by "standard". There are lots of paradigms for how to structure your code and a lot depends on what you are trying to do. Maybe you might want to start with something like this? http://www.phptherightway.com/
-
integration UBL Bank payment integration with PHP
thescientist replied to Zeeshan Asghar's topic in PHP
yes, it's not clear what you need help with. What parts of the API? What have you tried? What are you stuck on? etc -
thescientist changed their profile photo
-
I would agree with a couple things mentioned The syntax is not correct (regardless of React usage) The need for React is not apparent That said, it certainly could be done with React, or "vanilla" JS would certainly be more practical as this "simple" case seems warrants. As far as implementation details go, would a better option be to increment a counter each time a link / page is visited in a cookie or with one of the web storage APIs? Either way a user can work around it, but at least one is a more "stateful" solution.
- 4 replies
-
- javascript
- reactjs
-
(and 2 more)
Tagged with:
-
How do I create a database in phpmyadmin + Php form problem
thescientist replied to Html's topic in PHP
Is your php file located at the root directory of the webroot? Try opening the PHP file in a browser, and if it is indeed at the root, you should be able to access it at http://<your-domain>.com/post.php. Otherwise, you have an incorrect path to post.php in your form. If the form and the PHP file are in the same directory, you could just use <form action="post.php" method="post"> -
What part specifically do you need help with? It's not very clear from your post.
-
You should be using NPM (which is what the example shows) https://www.w3schools.com/nodejs/nodejs_mongodb.asp $ npm install mongodb To elaborate, Node is the JavaScript runtime environment, NPM is the package manager. Using NPM to install Node packages for your project.
-
I second using a local Meetup as a great way to find like-minded individuals and potential project / collaboration opportunities.
-
FWIW, this ties into what was being taught to you in your header thread. PHP is a server side language, and is generating the body of document being requested by the browser, hence the reason why content being rendered before headers was causing you issues. There are generally two options for something like this Mix PHP with HTML / JS / CSS, in which PHP builds up the page content and delivers a final page to be rendered by the browser, including all the JS to be executed Just use PHP to provide data, and have JavaScript request just that data (ie. JSON) using AJAX and let JS / HTML handle generating the page content dynamically I prefer the second option since it keeps business logic separate from presentation, doesn't try and mix too many things, and is generally easier to organize and reason about. This is the general approach to most web development, where the backend, be it PHP, Java, NodeJS, etc acts as an API serving up all data to the client (browser) and then something like jQuery, AngularJS, React etc would be used to render that data into UI using the DOM, or whatever conventions are exposed by the given library / framework. Anyway, just some additional information for you to consider as you plan out your project.
-
I can't speak for the decision to include tutorials on AngularJS or jQuery, but the Angular (2+) docs and guides are quite comprehensive, in particular the Tour of Heros Getting Started Guide. That's probably you best bet.
-
it would be helpful to share the relevant code in one block, instead of three code blocks in as many posts, since it makes it harder to understand the context of your issue. And in particular with headers, seeing the whole file is important.
-
Why can't you just have different buttons pass the different data? The showModal function would expect certain data, like title, message, etc and use something innerHTML on elements inside the modal to change their values dynamically. There is certainly a way to have multiple buttons re-use the same modal, in fact this is the cornerstone premise of UI libraries like Bootstrap.
-
if they're both running, then it sounds like WAMP is already using port 80. Only have one or the other running.
-
What's the rest of the error message?