Im newbie to PHP... My question is Can PHP functions replace Javascript functions or need to depend on that ?
83426
This is somewhat of an apple and orange question.\n\nIn the context you are talking about, PHP runs on the server. JavaScript runs on the client. This has advantages and disadvantages in both cases.\n\nSuppose we want to provide a form that only accepts social security numbers. Using JavaScript, we can immediately reject incorrect input, add dashes to the formatting, etc. And the server doesn't have any extra load placed on it. BUT... you assume the browser supports JavaScript and the user didn't turn it off. You also open the door for someone to bypass your scripts maliciously and put in a bad number.\n\nIf you use PHP, you probably won't be able to monitor every keystroke and dynamically insert dashes. Plus each validation is more load on your server. But the client can't force a bad number in and the browser can be anything at all -- no JavaScript required.\n\nSometimes you use both. JavaScript to get the pretty character by character formatting and PHP to do a final simple validation.\n\nAlso, AJAX allows JavaScript to call back to PHP seemlessly (look up AJAX on Google).\n\nFinally, this is a limited example. If you wanted to, say, produce a pong game that runs in the browser -- that's a job for JavaScript (or Java, but that's another question). If you wanted to send an e-mail form to a list of addresses in a predefined database, you probably want PHP. \n\nDoes that help?
148215
visit http://www.php.net/ to learn...
944895
Do you have to disable JavaScript, sometimes known as JScript, for some reason? Here are the step-by-step instructions for majority of the browsers. By the way, Java and JavaScript are two different things, so make sure that you're looking at the correct language. \n \n     TIP: If you're adding JavaScript to your pages, it's a good idea to view your pages with JavaScript disabled, so you can get an idea what users without JavaScript enabled browsers would see. \n\n \n     WARNING: Please note that you may loose some of the web page functionality by disabling JavaScript. \n\n \n\nNavigator 3.x \n\nGo to "Options | Network Preferences..." from the main menu \nChange to the "Languages" tab \nTo enable: make sure "Enable JavaScript" check box is checked\nTo disable: make sure "Enable JavaScript" check box is unchecked \nRestart the browser \n \n\nCommunicator 4.x \n\nGo to "Edit | Preferences..." from the main menu \nSelect "Advanced" panel \nTo enable: make sure "Enable JavaScript" check box is checked.\nTo disable: make sure "Enable JavaScript" check box is unchecked. \nRestart the browser \n \n\nExplorer 3.x \n\nGo to "View | Options..." from the main menu \nChange to the "Security" tab \nTo enable: make sure "Run ActiveX scripts" check box is checked\nTo disable: make sure "Run ActiveX scripts" check box is unchecked \nRestart the browser \n \n\nExplorer 4.x \n\nGo to "View | Internet Options..." from the main menu \nChange to the "Security" tab \nSelect "Custom" and click on the "Settings..." button \nTo enable: make sure "Enable" is selected under "Active scripting"\nTo disable: make sure "Disable" is selected under "Active scripting" \nRestart the browser \n \nSimply reloading the page, rather than restarting the browser, maybe sufficient under some browser versions.
283806
I learned the basics of PHP here:\nhttp://www.zend.com/php/beginners/php101-1.php\n\nTheir tutorial is really BASIC but that's exactly what I needed.  \nMy advice is to go to the book store and browse the books on php. Look for one that is written in a friendly, person to person type language. I know there are many books out there that read like a text book. Not my style.  \n\nThis tutorial should teach you the fundamentals of php.\nOnce you undertand the structure of the language you can pick apart source code from guestbooks, or the OScommerce shopping cart that runs on php.\n\nOH another thing I absolutely recommend is available here:\nhttp://www.apachefriends.org\n\nThe XAMPP install allows you to run php (and other server side) languages on your own computer.\n\nThis means you don't have to constantly upload your code to a server that runs php in order to test it.\n\nWhat xammp does is install language support to your "local server" which is your computer.  You can then run server side languages offline.\n\nLet me know if this helps.
1094897
Although it is not possible to do something exactly as you state, there is at least one good library that can help you.\n\nXAJAX can be used to call from a web page (using Java Script) functions implemented in PHP.\n\nGive it a try and you will see how easy it can be used!
96520
Javascript (no relation to Java) is a text base language used with HTML. It is used for client side manipulation. For instance, if you set up a form where the user has to fill in a name, you can create a javascript that checks to make sure they do and won't let them submit the page until they do.
554203
For HTML forms to function, they require a server-side programming language, such as ASP or PHP (I personally recommend PHP, cos I use it). You need to learn either of these languages (like PHP) first, before moving on to inserting the collected data into database and retrieveing it from the database. Try this link if its useful:\nhttp://www.google.com/search?hl=en&q=HTML+forms+php
47991
Do you have to disable JavaScript, sometimes known as JScript, for some reason? Here are the step-by-step instructions for majority of the browsers. By the way, Java and JavaScript are two different things, so make sure that you're looking at the correct language.\n \n     TIP: If you're adding JavaScript to your pages, it's a good idea to view your pages with JavaScript disabled, so you can get an idea what users without JavaScript enabled browsers would see.\n \n     WARNING: Please note that you may loose some of the web page functionality by disabling JavaScript.\n \nNavigator 3.x\n\n    * Go to "Options | Network Preferences..." from the main menu\n    * Change to the "Languages" tab\n    * To enable: make sure "Enable JavaScript" check box is checked\n      To disable: make sure "Enable JavaScript" check box is unchecked\n    * Restart the browser\n\n \nCommunicator 4.x\n\n    * Go to "Edit | Preferences..." from the main menu\n    * Select "Advanced" panel\n    * To enable: make sure "Enable JavaScript" check box is checked.\n      To disable: make sure "Enable JavaScript" check box is unchecked.\n    * Restart the browser\n\n \nExplorer 3.x\n\n    * Go to "View | Options..." from the main menu\n    * Change to the "Security" tab\n    * To enable: make sure "Run ActiveX scripts" check box is checked\n      To disable: make sure "Run ActiveX scripts" check box is unchecked\n    * Restart the browser\n\n \nExplorer 4.x\n\n    * Go to "View | Internet Options..." from the main menu\n    * Change to the "Security" tab\n    * Select "Custom" and click on the "Settings..." button\n    * To enable: make sure "Enable" is selected under "Active scripting"\n      To disable: make sure "Disable" is selected under "Active scripting"\n    * Restart the browser\n\n \nSimply reloading the page, rather than restarting the browser, maybe sufficient under some browser versions.\n \nApplicable Keywords : HTML, Internet Explorer, Explorer 3.x, Explorer 4.x, Explorer 5.x, Internet, JavaScript, JavaScript 1.0, JavaScript 1.1, JavaScript 1.2, Netscape Navigator, Navigator 2.x, Navigator 3.x, Communicator 4.x, Netscape 6.x, World Wide Web
943878
Yes, PHP is a server-side scripting language that allows you to incorporate your pages with a database, such as MySQL. With PHP, you can create online forms for collecting information and inserting it into a database and also presenting the information from a database back to the user.
561741
Plenty of  scripts .php already made for hotel and motel availability, bookings and  reservation ..Use those key words in a search..
603632
When it comes to langauages (like php or html) dont think in terms of good or bad. Think in terms of functionality. You need to look up the uses and environments for php and html ... in otherwords do you hoemwork yourself!
150121
If you know what HTML is, PHP is like the same thing, but it can communicate with other files and its dynamic and server-side (so it's like JavaScript, but you can see any ugly code by viewing the source of a website and it isn't browser-selective).\nIf you don't know what HTML is, don't go there!!\nIt isn't "aka" Perl of CGI. Same idea, different language. (Calling PHP Perl is like calling a cow a cat just because they both have four legs.)
391447
You grammar is unclear. \nIf you're wondering whether using PHP or XML will affect uploading, it won't. \nI use PHP, mostly for organization.
448033
Try free software from this site...\nhttp://www.easyphp.org\nYOu probably need some books from the library as reference too, happy php :)
676820
you don't need to convert anything. just put the html code outside the <?php ... and ?> tags and they will show up as normal html.
297641
A good tips from a programmer try PHP manual, i find it very helpful when i want to know something and don't jump over the comments if they are avilable...
515974
There is no way to convert html to php.... How it works is you call html code inside of php.  Here would be a simple example of outputting text in bold letters in the center of a webpage using html in php\n\nTheres two ways you can do it....\n\n\nCreate a file called php_example and give it the extenstion php instead of html extention     php_example.php\n\n<html>\n<title>php example</html>\n<body bgcolor = "white">\n<?php \necho "<center><b>Hello world</b></center>";\n?>\n</body>\n</html>\n\nOr you can do it this way\n\nCreate a file called php_example and give it the extenstion php instead of html extention     php_example.php\n\n<?php \necho "<center><b>Hello world</b></center>";\n?>\n\nyou can do it either way and you will get the same output to the screen.  Keeping in mind that you have the latest version of php installed on your computer that is.