473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

security and required fields with php not jave ..

i need help in this form

Expand|Select|Wrap|Line Numbers
  1. <FORM action="thanx.php" method="post">
  2. <TABLE width="100%" border=0>
  3.   <TBODY>
  4.   <TR>
  5.     <TD align=center><FONT color=#ff0000>* </FONT>title:<BR><INPUT size=40
  6.      name=title><BR></TD>
  7.     </TR>
  8.       </TBODY>
  9.       <TABLE width="100%" border=0>
  10.        <TBODY>
  11.        <TR>
  12.        <TD align=center><FONT color=#ff0000>* </FONT>Url<BR><INPUT size=40
  13.      name=url value=http://><BR><TD></TR></TBODY></TABLE>
  14.       </TD>
  15.     </TR>
  16.      <TABLE width="100%" border=0>
  17.        <TBODY>
  18.        <TR>
  19.        <TD align=center>description<BR>
  20.        <textarea cols="50" rows="4" name="description"></textarea><BR><TD></TR></TBODY></TABLE>
  21.       </TD>
  22.     </TBODY></TABLE>
  23.     <P style="TEXT-ALIGN: center" align=center><INPUT class=submit type=submit value="add" name=send></TD>
  24. </FORM>
first :

i want make fields required "at lest Three letters" using php not java ...

but i want the user don't leave the form if this fields empty ..

and i need the user don't go the add.php if this fields empty

like :: please fill the blank fields

second :
some time my users post in the in fields ..something like this



Expand|Select|Wrap|Line Numbers
  1. <SCRIPT type=text/javascript>
  2. <!--
  3. //-->
  4. </SCRIPT>
or something like this


Expand|Select|Wrap|Line Numbers
  1.  <a href=""</a>
and some time user write one letter in the field
i don't accept this ..because it makes problems in the results..
so what can i do to fix this and make security for this .
so can anyone help me ..please
Jan 17 '11 #1
1 1190
dlite922
1,584 Expert 1GB
read the values in PHP and massage the data. if it doesn't validate, don't redirect to add.php.

If you don't understand what I'm talking about, then you need to learn PHP. We cannot write all that code for you. We don't even know your exact detailed requirements even if someone did offer to code it for you.

Good luck,


Dan
Jan 21 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Melissa | last post by:
I have a web form that has required field validators, and then submits an email when the form is completely filled out. Well, it is working on my local machine, but when I put it out on the server,...
14
by: Oleg | last post by:
Hello there: I've been trying to create two different sets of required fields in one form and to use a radiobutton as sort of a switcher between these sets. In my HTML form there are two...
2
by: Cliff R. | last post by:
Hello, I have a form that has a few required fields and also an "agree to terms" checkbox that must be required. I have used Javascripts for both functions individually, but I need a little help...
5
by: Dave Brydon | last post by:
I'm checking for required fields, and using the code below, which I normally have no difficulties with; however, as a twist I decided to return the focus back to the specific field(s) in question...
2
by: bufbec1 | last post by:
I am pretty good with Access, but do not understand VBA. I have researched this topic and see only VBA answers, so I hope someone can help with my specific question. I have 2 fields for an...
3
by: kaosyeti | last post by:
i have a form that has required fields and i have a delete button, created by the wizard, that has this code for onclick: Private Sub cmddeleterecord_Click() On Error GoTo...
1
by: swingingming | last post by:
Hi, I made a form based on one table that has several required fields. If in the form, I leave some of them blank and close the form using 'X', I get 2 warning messages, 1st is "... field is...
1
by: Ledmark | last post by:
Hello - I am building a database that will have four different Action Types (Change, Recruitment, Losses, Fee) - basically four different forms in one. I'm trying to figure out how to write VBA so...
1
by: sdavis1970 | last post by:
I am working on an Access 2002 database where one of the tables has five required fields making up the key. There is a form that is linked to this table which is used for adding new records. ...
8
by: Ledmark | last post by:
Hello - I have made forms which have many required fields so when a person is filling out the forms and they get interrupted they can't save it and go back to it - they have to start over. Is...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.