Solved

PHP Code Lock Down

Posted on 2013-02-05
4
316 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

919 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now