hi all,
i created a shoutbox where users will display messages. when they click on shoutbox a table will appear in which we have message and name when they submit messages it should appear beside that shoutbox
shoutbox hiii hyderabad:praveen :: hello praveen:pandu
like this,i have inserted messages and names into database and i have to retrieve them in same page the problem its not coming and error is displayed saying program is not responding
i want to display that message without refreshing the page
please help me thank u in advance
praveen_dusari
11
Posting Whiz in Training
Recommended Answers
Jump to Posthai praveen ,
here i am giving u code using javascript , u can usse it if u like...........<HTML> <HEAD> <SCRIPT LANGUAGE="javascript"> function CreateMsg() { var MsgDOM = document.getElementById("MSG"); MsgDOM.innerHTML = "Hello, " + document.forms[0].FNAME.value + " " + document.forms[0].LNAME.value + ". You're sex is " …
Jump to PostTry this..
it works fine:<? mysql_connect('localhost','root','1234'); mysql_select_db('banjarahills'); if($_SERVER['REQUEST_METHOD']=='POST'){ print_r($_POST); $n=$_POST['name']; $m=$_POST['message']; } if(isset($_POST['submit'])) { $message=$_POST['message']; $name=$_POST['name']; if(strlen($message)<1) { print "You did not type amessage."; //no name entered } else if(strlen($name)<1) { print "You did not type name."; //no post entered } else { $thedate=date("U"); //get unix …
All 7 Replies
us12
2
Newbie Poster
praveen_dusari
commented:
thank u
+1
Shanti C
commented:
good code you have posted...
+1
Shanti C
106
Posting Virtuoso
Shanti C
106
Posting Virtuoso
praveen_dusari
11
Posting Whiz in Training
Shanti C
106
Posting Virtuoso
praveen_dusari
11
Posting Whiz in Training
us12
2
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.