I am having a problem on notifying the user when he/she submit a empty form. When I submit an empty form, the system doesn't notify or alert the user that the form is empty. And when I put a title and I leave the content textbox empty its still add to the database and notify that it successfully added. Same goes when I leave the title textbox empty. The two textboxes should have contain texts before submitting. Here is my code... <?php extract($_POST); if($submit=='submit' || strlen($service_name)>0 ) { $rs=mysql_query("select * from tblservices where service_name='$service_name'"); if (mysql_num_rows($rs)>0) { echo '<div class="n_error"><p>Opps! …

Member Avatar
Member Avatar
+0 forum 4

I am working on a simpler version of the following question: http://www.cs.ucf.edu/courses/cnt4714/spr2011/prog1.pdf and have simplified the problem in the following manner: SO: input pipe is PIPE4 and output pipe is PIPE0 S1: input pipe is PIPE0 and output pipe is PIPE1 S2: input pipe is PIPE1 and output pipe is PIPE2 S3: input pipe is PIPE2 and output pipe is PIPE3 S4: input pipe is PIPE3 and output pipe is PIPE4 The output that i am getting: WHO CAME?? Pipe4 and Pipe0:Position0 GRANTING ACCESS TO Pipe4 and Pipe0 WHO CAME?? Pipe0 and Pipe1:Position1 SLEEPING : 1 RELIEVING NOTIFIED Final Capacity …

Member Avatar
+0 forum 0

I am making a program in which the program assigns a variable to the numbers 1 - 10. I am suppose to use wait and notify. I put them in but I don't know how to assign the variables to the numbers. My code is and could someone tell me how would I assign the vairables [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package vairables; public class Vairables { public static void main(String[] args) { class IntegerHolder { String variable = null; synchronized void insert(String v) { while …

Member Avatar
Member Avatar
+0 forum 1

The End.