jack Posted November 19, 2005 Share Posted November 19, 2005 Hello all,Iam very very new to PHP first of all.So my questions seems to be funny for many experts here.Anyway my question is as follws : I have a HTML page and on this HTML page i have a code which redirects the user to other site, since the user can rt click and c the code i want to write that part in PHP. If i write .php file is it possible for the normal user to c the php code?Let me make it clear again On the HTML page i got a submit button when the user clicks on the submit button the user is redirected to .PHP page.Now .PHP file will be visible on the address bar.By rt clicking can the user c the code?Pls help meThanks in advanceRegardsJackFadd Link to comment Share on other sites More sharing options...
Paim Posted November 19, 2005 Share Posted November 19, 2005 If you click 'View Source' and the page contains PHP coding, you won't be able to see the code. So something like: <?phpecho "Hello";?> will come up as: Hello however, PHP coding won't work at all if you ahve your page named *.html...or if your web server doesn't support PHP. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now