Solved

PHP Code Lock Down

Posted on 2013-02-05
4
328 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
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…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

726 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