Solved

PHP Code Lock Down

Posted on 2013-02-05
4
318 Views
Last Modified: 2013-02-05
I have the following code that pulls data from my MySQL database & displays it in a form. Is there any way for me to lock this code down or i nother words, when it is displayed in the form, I don't want anyone to be able to edit it or delete it....is this possible?

<td><b>Assigned Employee:</b><br><input type="text" name="name" size="25" maxlength="30" value="'.$row[55].'" /> <br> </td>

Open in new window

0
Comment
Question by:wantabe2
  • 2
4 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 38855429
do u mean deny ppl from changing your client side code????
0
 
LVL 16

Accepted Solution

by:
rbudj earned 500 total points
ID: 38855515
Use readonly="readonly"

<td><b>Assigned Employee:</b><br><input type="text" name="name" size="25" maxlength="30" value="'.$row[55].'" readonly="readonly"/> <br> </td>
0
 
LVL 15

Author Comment

by:wantabe2
ID: 38855517
yes, if possible.....once it is displayed in the form in a browser, at this time they can edit what is displayed. I didn't know if I could take that ability away or not.
0
 
LVL 15

Author Closing Comment

by:wantabe2
ID: 38855638
thanks!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question