jbillens Posted December 7, 2007 Share Posted December 7, 2007 I am working on a page to upload results to a database. When i submit my form to php it opens in dreamweaver. How do I stop it from opening in dreamweaver and open in the web page and run the php script. Thanks for the help Josh Quote Link to comment Share on other sites More sharing options...
Yesideez Posted December 7, 2007 Share Posted December 7, 2007 You need to be running a server on your machine that will parse the PHP - google WAMP and install that. Quote Link to comment Share on other sites More sharing options...
jbillens Posted December 7, 2007 Author Share Posted December 7, 2007 I have wamp installed already. I can run a script to test php like <? phpinfo(); ?> and php works fine. but in my script the php does not run. could this be an error in coding or some error in setup. I just do not understand why it would be opening off my page in dreamweaver. Josh Quote Link to comment Share on other sites More sharing options...
revraz Posted December 7, 2007 Share Posted December 7, 2007 Do you have <?PHP tags in your code? Quote Link to comment Share on other sites More sharing options...
jbillens Posted December 7, 2007 Author Share Posted December 7, 2007 no i used the short hand version <? I enabled this in my php.ini file Quote Link to comment Share on other sites More sharing options...
Yesideez Posted December 7, 2007 Share Posted December 7, 2007 It's best to use the long version because most (not all) servers have short enabled. Quote Link to comment Share on other sites More sharing options...
Crew-Portal Posted December 7, 2007 Share Posted December 7, 2007 yes it is best to use longhand because the first reason is (as said before by Yesideez) Not all servers are compliant to shorthand. Secondly if you have XML on your server these are the tage XML uses to define its DTD and that will mess up your code if running XML and PHP on one doc echo "<? = Bad execpt for XML"; echo "<?php = Good For PHP"; Quote Link to comment Share on other sites More sharing options...
jbillens Posted December 8, 2007 Author Share Posted December 8, 2007 Ok I changed all opening tags but the problem still persists. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.