Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Master Marketing
Master Marketing
1,200 Points

Isn't there a way to do the Paypal button in PHP so visitors won't see the html and won't be able to manipulate it?

I find it very unsecure to know that people can actually change the details of my shop (in Randy Hoyt's How to make a Simple PHP Application). Is there any way to do it with PHP so visitors won't be able to make changes into my site without my consent?

1 Answer

HTML cannot be "hidden". For your browser to render a website it must know the HTML, and so that cannot be held secret. The advantage of php is that everything is run on the server-side and so the client/browser will never see any of the php - so what you can do is just to add "checks" with php once the client has submitted their forms or orders to ensure that nothing that nothing sensitive has been manipulated.