Validation in php help !


 
Thread Tools Search this Thread
Top Forums Web Development Validation in php help !
# 1  
Old 07-27-2010
Error Validation in php help !

I am validating a form using php script and I want to "echo" the error message near to the text box itself & not below all the controls....Can I Position the display messages ?..Pls help me...
# 2  
Old 07-30-2010
You can't seek backwards and re-write output you've already written, no. You can use javascript to alter DOM elements. Beyond that it's hard to see how to help you knowing so little about your design, code, and goals.
# 3  
Old 07-31-2010
If you re-write the entire page showing the error(s), you can put the error messages anywhere, as long as your script processes all the input and creates the error messages BEFORE re-displaying any of the page.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Validation using While and IF

I am learning Shell scripting on own. I am trying to do an assignment to get details from the user like username their individual marks ,DOB and send a report in mail with the Details calculated like total and average. validate_marks() { local Value=$1 if && then return 0 else... (1 Reply)
Discussion started by: JayashreeRobin
1 Replies

2. Shell Programming and Scripting

Value validation

Hi All I am trying to validate a value using if condition requirement is need to check whether its a valid numeric value the input contains ( space, #N/A and negative and positive decimal values and Zeros) if it contains the space, I need to display the error message as space ... (15 Replies)
Discussion started by: tsurendra
15 Replies

3. Shell Programming and Scripting

Length validation

I am using below code to find the length of first column additionally I want the complete row which length is greater than 12.at the end I want the rows where first column data length is greater than 12. Just it should validate and highlight the rows where length(first column) is greater than... (5 Replies)
Discussion started by: srivalli
5 Replies

4. Shell Programming and Scripting

Variable Validation

Hi Guys, I am getting count from a file (pipe delimited). "23"|"9896"|"20090101"|"New Load" I am using the following code to get the first two counts. CtrlFileByte=`/bin/gawk -F"|" '{ print $1 }' $ControlFile`; CtrlFileCnt=`/bin/gawk -F"|" '{ print $2 }' $ControlFile`; But the... (2 Replies)
Discussion started by: mac4rfree
2 Replies

5. Shell Programming and Scripting

Name validation

Hi All, I need to write a small piece of code to check the following. name should contain (A-Z), spaces, hyphens & apostrophes I need to generate regular expressions for the same. Please help me out as i am not familiar with regular expressions. (1 Reply)
Discussion started by: lifzgud
1 Replies

6. Shell Programming and Scripting

Validation help

Hi, I am new to Unix shell scripting and need help to add some validation to an existing script. I've made a script that takes two argument (input) but I want the script to display an error message when nothing (null) is entered. So far I managed to validate the fist argument but fail to... (2 Replies)
Discussion started by: zen10
2 Replies

7. Shell Programming and Scripting

Form validation in PHP

My form validation script looks like this of the form like this.... <html> <form method="POST" action=""> <table > <tr> <td >Name:</td> <td ><input type="text" name="name" size="30%"></td> </tr> <tr> <td >Phone:</td> <td ><input type="text" name="phone" size="30%"></td> </tr>... (0 Replies)
Discussion started by: gameboy87
0 Replies

8. UNIX for Advanced & Expert Users

Need help with text validation

Hi, I am posting this to get some help from expert users. Any idea is appriciated. https://www.unix.com/shell-programming-scripting/117736-matching-names-2-text-files.html#post302347353 Thank you! (0 Replies)
Discussion started by: rider29
0 Replies

9. UNIX for Dummies Questions & Answers

Validation

I'm kinda new in shell scripting. How do i validate an input from a user to conform to requirement. For example, echo "Enter First Name: " read FName echo "Enter Date of Employment (dd/mm/yyyy): " read DoE If the user enters data that is alphanumeric, it accepts it. I hope i've... (1 Reply)
Discussion started by: Allenzo
1 Replies

10. UNIX for Dummies Questions & Answers

validation on a parameter

Hi guys! Im tryin to set up a login script that allows a user to login with only the following "forename.surname" . The username all contain lowercase letters so thats not a problem to sort out, but im having problems making sure that they can only enter 1 " . " . the code i have so far is this... (1 Reply)
Discussion started by: Henley55
1 Replies
Login or Register to Ask a Question