Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I've got a problem. I don't know how to transfer JS variables to PHP.
In JS I've got my main script and I'm using PHP only to file management but I need some variables from JS.
The short answer is AJAX, (or SOAP but you better go with AJAX). So go do a little research on it, and if you know jQuery or Prototype or something similar, you are pretty much off for starting to code in a new technology in minutes.
Here are some links, to get you started:
How to start learning Ajax?
http://api.jquery.com/jquery.ajax/
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Hi I started learning web design couple of months ago and I just made my first functional site using HTML, CSS and JavaScript and PHP for my form. I wanted to find out if there is anyway I can transfer my whole site to a CMS without redesigning it. Thanks
You use some frameworks like CodeIgniter or WordPress. These are the most loved and widely used frameworks in PHP.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
This may be a small question, but I haven't found any direct answer yet. Is it considered bad practice to use PHP alongside HTML? (using PHP foreach for example in combination of with HTML)
I have searched on Google and I didn't find a direct answer. Another example: What should I do when an user logs in on a website. Do I store the important information with $_SESSION (PHP) or should I store it with sessionStorage(Javascript)?
1) HTML and PHP go hand in hand, and unless you know one of the two languages you have to use them together
2) you should save the information with the $ _SESSION of php and destroy them every time a user logs-out
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
How can I make website where the moderator will be able to publish a post or an image without accessing to the code. To publish something like a facebook status from some part of site. And second question, who can I make that someone can login to my site(moderator/administrator), I know how to make login form but just visualy withaout some functionality. Thanks
(I know HTML, CSS, JavaScript)
You seem to be talking about a Content Management System. I'd suggest you look at some of the (many) options out there
e.g. Wordpress or Drupal - neither is perfect but both are widely supported.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am developping an application. As final result the application generates a Html document consisting of variables from external Javascript and Php files.Which is the safest way to pass these variables?.
Thank you very much.
You can use AJAX to do this, you make the request in JS, and process the information in PHP(server side), and you can return an JSON Object with the variables, or simply, return the HTML code and output it.
Hope it helps :D
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a lot of elements that are created on the fly from data received on the server, as JSON. To create these elements a lot of HTML is going inside my JavaScript code. Is there any solution to this problem? The JavaScript code is polluted and writing HTML tags becomes harder and less maintainable.
Templating tools such as handlebars, mustache and dust.js were designed to solve this very problem.
Ember.js is another alternative that allows you to remove HTML from your JavaScript through their templating tool called HTMLBars.
Check it out!