php and xammp server
Hello everyone!
I am new to php language.
I want to know if we install xammp server on our pc . Is there any need to install php 5.5.1 or any other version through php.net and mysql for data base or simply start work on the editor in simple php and sql language having xammp installed??I am much confused upon it.. Can someone help me about it????
The second question is i have made a form and action="form.php" and when i click the submit button it moves to form.php but does not provide the end result which is being fetched from the text area. as form.html is another page and form.php is another page residing with html page location and a;so in htdocs folder in xammp.. Plz help me..
I am new to php language.
I want to know if we install xammp server on our pc . Is there any need to install php 5.5.1 or any other version through php.net and mysql for data base or simply start work on the editor in simple php and sql language having xammp installed??I am much confused upon it.. Can someone help me about it????
The second question is i have made a form and action="form.php" and when i click the submit button it moves to form.php but does not provide the end result which is being fetched from the text area. as form.html is another page and form.php is another page residing with html page location and a;so in htdocs folder in xammp.. Plz help me..
Replies
-
Nayan GoenkaNo you don't need to separately install them. Make sure you have the latest xampp server installed.
For the form action, Can you post the action script here? Which method are you using to collect the data? -
Vicky OneHTML CODE
form.htm
PHP CODE/////
form.php
welcome.Your name is:
echo $_POST["fname"];
?>
The result comes// welcome.Your name is:
and please also tell me the location of these two files if form.htm is placed in a folder on desktop and form.php in htdocs of xammp. is it necassary to have a copy of form.php within same folder as form.htm. I have done both cases but it does not work..it does not show name written in text area of form. -
Nayan GoenkaYou have to keep both the files in the same directory. Only the files inside the htdocs folder are available or lets say part of the server. All of the related files have to be there. I will test your code in my own system and get back to you with the solution. 😀
-
Vicky Oneok thx
-
Vicky Oneform.html
Form
form.php
form.php
welcome.Your name is:
echo $_POST["fname"];
?>
NOw i have:
c:\desktop\form\form.htmlc:\desktop\form\form.php
and also c:\xammp\htdocs\form.php
Activating xammp server it is not working..Now wht i do??2nd Scenarioif we have one page like this. form.php[/INDENT]
[INDENT=1][/INDENT]
[INDENT=1]form.php [/INDENT]
[INDENT=1][/INDENT]
[INDENT=1][/INDENT]
[INDENT=1][INDENT=1]if(isset($_POST["fname"])) {[/INDENT]
[INDENT=1]echo 'Welcome. Your name is: ' . $_POST["fname"];[/INDENT]
[INDENT=1]}[/INDENT]
[INDENT=1]?>[/INDENT]
[INDENT=1]
and using #-Link-Snipped-# works but i want them to be separated as like above 1st condition and it should work. -
Nayan GoenkaDude you need to put the form.html in the same folder, which is htdocs. It will not work untill then. Both files need to be part of the server. No matter how good your code is, if both the concerned files cannot be accessed by the server how can they interact?
-
Vicky Onei have done that too. still it is not working.. Well i will find any way for it to work..
but now i got a problem regarding joomla -
Nayan GoenkaVicky Onei have done that too. still it is not working.. Well i will find any way for it to work..
but now i got a problem regarding joomla
Your code seems correct. I don't understand the issue then. Anyways, What about joomla? -
Vicky Onefor every new websit to be create on joomla. do we ever nedd to copy a copy of joomla in out htdocs. or if we add a single copy of joomla in htdocs we can create multiple websites over it?
-
Vicky Onethe idea i my mind is developed that for every new website we have to copy a new joomla folder and then rename it to develop anew website on joomal using joomla installer??
-
Nayan GoenkaVicky Onethe idea i my mind is developed that for every new website we have to copy a new joomla folder and then rename it to develop anew website on joomal using joomla installer??
Even if you are using a same framework but different projects, you have to make multiple copies of it unless both are linked in some way. you cannot host two different websites on a single framework. The DNS would not be able to resolve them. -
Vicky Oneok thx that was helpful to reduce confusion.
-
Vicky OneNOw what would be your preference for dunamic websites
Jomla
Wordpress
or
simple coding...
To make a professional dynaimc website..Should we use tool or should do coding??? -
Nayan GoenkaVicky OneNOw what would be your preference for dunamic websites
Jomla
Wordpress
or
simple coding...
To make a professional dynaimc website..Should we use tool or should do coding???
You should use pre-made frames for making dynamic environment websites. Its pointless to scrap code yourself again. Ultimately you will wind up making something resembling them. So why to code again when it is already done. Not to waste time, effort and money and start instantly.
You are reading an archived discussion.
Related Posts
If you thought that the work of tech giants like Samsung, Sony and Apple were laudable in the smartwatch sector, wait till you meet the Hyetis Crossbow. This Swiss-made watch...
We have a wifi facility in our college and we used it for varioud purpose but what I want to know is
1)how it can offer high speeds of 1to3mbps?...
On this auspicious occasion of the 67th Independence Day of India, we bring you the news of a recent technical development by a team from the Microsoft Research India who...
this boy made my day!. living in a drought area with heavy winds he came up with an idea to build windmill using scrap materials at an age of 14...
In ubuntu repository quite old applications are available.eg : Arduino 1.0.5 is available but ubuntu repo has 1.0.3
So, I compile latest source & manually push applications to /usr/share/applications
For...