Search found 25 matches

by satheshf12000
Wed Oct 11, 2006 5:29 pm
Forum: PHP - Code
Topic: Php and javascript problem
Replies: 6
Views: 719

I searched the forum and found that no HTML should be sent before header. Atleast the title will be sent. The situation is this. 1. Can't use javascript (if user disables the javascript). 2. Using html to send atleast title and some meta tags and sometimes more html to design tables and etc.. How ca...
by satheshf12000
Wed Oct 11, 2006 5:21 am
Forum: PHP - Code
Topic: Edit Info from MySQL database
Replies: 9
Views: 1228

PHP codes should be on top. Then comes html. Try this way. If not post what have u tried.
by satheshf12000
Tue Oct 10, 2006 6:56 am
Forum: PHP - Code
Topic: directory reading
Replies: 2
Views: 617

I think this is what u need.. <?php $handle = opendir("yourpath"); while ($file = readdir($handle)) { if($file != "." && $file != "..") // to omit . and .. from the directory $gallery[] = $file; } sort($gallery); foreach($gallery as $value) echo "$value<br>...
by satheshf12000
Tue Oct 10, 2006 6:24 am
Forum: PHP - Code
Topic: Edit Info from MySQL database
Replies: 9
Views: 1228

Hi I think this is what u need.. rite ?? <?php $host = "localhost"; $account = "username"; $pass = "password"; $dbname = "your_db_name"; $connect=mysql_connect($host,$account,$pass); $db = mysql_select_db($dbname); $quer = "select * from uinfo where email...
by satheshf12000
Mon Oct 09, 2006 3:19 pm
Forum: PHP - Code
Topic: Php and javascript problem
Replies: 6
Views: 719

Php and javascript problem

Hi all, I have used the following code to redirect the registered user to the member page upon successful login. $insert_goto = "member.php"; print "<script language=\"JavaScript\">"; print "window.location = '$insert_goto' "; print "</script>"; Ever...
by satheshf12000
Tue Sep 19, 2006 5:03 pm
Forum: Javascript
Topic: php reading directory problem
Replies: 3
Views: 802

php reading directory problem

hi all.. I am reading all image files by this code. $dir = "images/"; $jpgext = ".jpg"; $dh = opendir($dir); while($filename = readdir($dh)) { $filepath = $dir.$filename; if(is_file($filepath) and ereg("\.jpg$",$filename)) { $gallery[] = $filepath; $fnarray[] = $filenam...
by satheshf12000
Fri Sep 15, 2006 2:23 am
Forum: Javascript
Topic: login problem
Replies: 15
Views: 2715

Salting it on the clientside would probably defeat the purpose, as you must have the salt visible in plain test within the browser... I've written a class (based off of Maugrim's tutorial) for implementing the challenge/response pattern for login (assuming it's a pattern Wink) Unfortunatly, I wrote...
by satheshf12000
Thu Sep 14, 2006 1:37 pm
Forum: Javascript
Topic: Submit button not working
Replies: 14
Views: 3748

hey both the forms are working when i press the enter key. i jus tried it out jus by copying your code..
by satheshf12000
Thu Sep 14, 2006 11:09 am
Forum: Javascript
Topic: login problem
Replies: 15
Views: 2715

login problem

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Hi all.. ...
by satheshf12000
Mon Sep 04, 2006 5:43 pm
Forum: PHP - Code
Topic: include statement not working
Replies: 1
Views: 187

include statement not working

hi all.. I am using include statement to include("menu.php") in my index page(index.php and menu.php are in the same directory). then i have sports/cricket/cricket.php. when i use include statement like include("/menu.php") in sports/cricket/cricket.php, i am NOT getting the menu...