Welcome To Script

The Php Scripts Page

Offers

Php Scripts News

Congratulations, you have found a great source for recent news for Php Scripts. Also browse and make use of our other resources.

Read more


Top Php Scripts Results

PHP Scripts
PHP Scripts for developers and programmers both free and commercial.

Hot Scripts - The net's largest PHP, CGI, Perl, JavaScript and ASP ...
Hot Scripts is the net's largest PHP, CGI, Perl, JavaScript and ASP script collection and resource web portal. We are an Internet directory that compiles and distributes Web ...

Free PHP Scripts | Open Source PHP - PHP Scripts
Free PHP scripts | Open source PHP library ... Gscripts.net is a fast growing directory of free php scripts such as php forums, php photo galleries, CMS, php e-commerce solutions ...

PHP Script Modules Code | Search & Download Software Free
PHP Script Modules Code Search & Download Software Free . PHP is a programming language for dynamically built web sites. PHP used to stand for PHP: Hypertext Preprocessor.

php scripts - learn php programming and download original php scripts
Learn PHP Programming ... TDavid's PHP Diary updates: Using mktime and date function to skip dates and create simple calendar functions ...

PHP Scripts
SiteScripts is the web developers script portal, containing PHP scripts, ASP scripts, Javascripts and resources for web masters, web developers and programmers. SiteScripts ...

The PHP Resource Index: Complete Scripts
PHP scripts of all varieties that are ready for use on your web site.

The PHP Resource Index
4496 PHP resources listed in 282 categories at The PHP Resource Index. ... Although not complete scripts, these code pieces aid in development and often with little ...

PHP scripts, ASP, CGI, Perl, JavaScript, and hosted scripts
ScriptsBank is a database website listing free php scripts, asp scripts, cgi scripts, javascript, and hosted scripts.

Other Php Scripts Results



Open Question: What's wrong with my script?

I don't understand..it seems so basic but it's not working <html> <head> <title> </title> <script type="text/javascript"> function inventoryCheck() { var qty=document.cartform.qty101; var available=document.cartform.available101; if(qty > available){ alert("we do not have that many in stock") ; } } </script> <body> <form action="index.php?action=update" method="post" name="cartform" id="cart"> <input type="number" name="qty101" value="15" size="3" maxlength="3"/> <input type="hidden" name="available101" value="10" size="3" maxlength="3"> <button type="submit" onclick="inventoryCheck()"> </form> </body> </html> more

Open Question: Php authorization script that wont let users log in on other computers help?

I am having trouble logging into my CMS on pc's other than my laptop. It's as though the code is reading a mac address or something. I use the same credentials on each pc. It gives me an errorm message that says" you don't have premissions to change this page. I am trying to edit the content via the ems. There are live of code in php that seem to be sending the message. if (!auth("users.roles.view")) { > > > include("../header.php"); > > > ?><p>You do not have permissions to access this area of the > > > administration panel. <a href="#" onclick="javascript: > > > history.go(-1);">Click here</a> to go back.</p><? > > > include("../footer.php"); > > > exit(); > > > } > > >Its a custom made cms. It asks to log you out if you are logged in on another computer.Its a custom made cms. It asks to log you out if you are logged in on another computer. more

Open Question: xml php website stuff automation?

right now i have a php script(Below)hat will take the songs in a folder and create an xml playlist which is then sent to the music player on my webpage. the problem is that the xml playlist it generates is not random, so the same songs always come up in the same order. is there an easy way to edit the script to generate a random playlist from the folder of songs? it was suggested to me that i shuffle the array, but seeing as i dont knowvery much PHP i cannot figure out how to shuffle the array and make it work, can someone please help me? <?php $defaultExtension = 'mp3'; // it can be changed $filetype = isset($_GET['type'])?$_GET['type']:$defa… $dir = $_GET['dir']; $rootDir = ''; //don't change zis :) $files = array(); if(is_dir($dir)) { $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { if($filename != '.' and $filename != '..' and is_dir($dir.'/'.$filename)) $dirs[] = $filename; } sort($dirs); $rootDir = $dir; foreach($dirs as $dir){ $d2h = opendir($rootDir.'/'.$dir); $files[$dir] = array(); while (false !== ($filename = readdir($d2h))) { if($filename != '.' and $filename != '..' and !is_dir($rootDir.'/'.$dir.'/'.$filename) and substr($filename,strrpos($filename,'.')+… == $filetype) array_push($files[$dir],$filename); } } } echo '<?xml version="1.0" encoding="utf-8"?>'; echo ' <playlist>'; foreach($files as $folder => $list_of_files){ if(sizeof($list_of_files)>0){ echo ' <folder name="'.$folder.'">'; foreach($list_of_files as $file){ echo ' <file path="'.$rootDir.'/'.$folder.'/'.$file.'… />'; } echo ' </folder>'; } } echo ' </playlist>'; ?> more

Open Question: I have bought an Elite Gaming Ladders script and I get this error (in details). Help?

Here is the error "Warning: realpath(): SAFE MODE Restriction in effect. The script whose uid is 223887 is not allowed to access /usr/lib/php4/20020429 owned by uid 0 in /www/zxq.net/a/c/g/acgl/htdocs/install/install.php on line 2 Warning: file_exists(): open_basedir restriction in effect. File(/www/zxq.net/a/c/g/acgl/ioncube/ioncube_loader_lin_5.2.so) is not within the allowed path(s): (/www/zxq.net/a/c/g/acgl/htdocs/) in /www/zxq.net/a/c/g/acgl/htdocs/install/install.php on line 2 Warning: file_exists(): open_basedir restriction in effect. File(/www/zxq.net/a/c/g/ioncube/ioncube_loader_lin_5.2.so) is not within the allowed path(s): (/www/zxq.net/a/c/g/acgl/htdocs/) in /www/zxq.net/a/c/g/acgl/htdocs/install/install.php on line 2 Warning: file_exists(): open_basedir restriction in effect. File(/www/zxq.net/a/c/ioncube/ioncube_loader_lin_5.2.so) is not within the allowed path(s): (/www/zxq.net/a/c/g/acgl/htdocs/) in /www/zxq.net/a/c/g/acgl/htdocs/install/install.php on line 2 Warning: file_exists(): open_basedir restriction in effect. File(/www/zxq.net/a/ioncube/ioncube_loader_lin_5.2.so) is not within the allowed path(s): (/www/zxq.net/a/c/g/acgl/htdocs/) in /www/zxq.net/a/c/g/acgl/htdocs/install/install.php on line 2 Warning: file_exists(): open_basedir restriction in effect. File(/www/zxq.net/ioncube/ioncube_loader_lin_5.2.so) is not within the allowed path(s): (/www/zxq.net/a/c/g/acgl/htdocs/) in /www/zxq.net/a/c/g/acgl/htdocs/install/install.php on line 2 Warning: file_exists(): open_basedir restriction in effect. File(/www/ioncube/ioncube_loader_lin_5.2.so) is not within the allowed path(s): (/www/zxq.net/a/c/g/acgl/htdocs/) in /www/zxq.net/a/c/g/acgl/htdocs/install/install.php on line 2 Site error: the file /www/zxq.net/a/c/g/acgl/htdocs/install/install.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator." I have no idea what to do. Also, if I have to install ionCube PHP Loader, how do I do that, or does my hosting website have to do that for me? more

Resolved Question: can any one give me a php script that will record IP,OS,Browser and save it to a file?

 more

Open Question: PHP form.... 2 buttons?

I have a php form with a submit button that goes to another page which processes the forms details and adds to dabase.. (Thats working fine) However, I wish to add a button that goes to another page with runs a different script which processes the same form..... How do I do this... basically have 2 buttons but bother goto different pages to process 1 form.. thanks more

Open Question: PHP: How do I remove my Ip address from the stat counter?

I have a stat counter for my website, but I do not want it to count visits from my Ip address. What is the EXACT code I would insert into the code saying that my Ip address was 12.34.567.890? The PHP counter code: <?php //Stat counter for xxxxxxxxxx.com.nu $maxlines = 100; // the maximum number of lines to show $fn = "log.txt"; // the name of the log file to create $s = 'document.write(\'Stat Counter\')'; $host = 'xxxxxxxxxx.com.nu'; // the shortest url // get referring page $page = @$HTTP_REFERER; $uarray = parse_url($page); $refhost = $uarray["host"]; // create new file if necessary if (!file_exists($fn)) { $fp = fopen ($fn, "w"); $os = "0\n"; $fw = fwrite($fp, $os); fclose($fp); } // read existing data $fa = file($fn); $nl = count($fa); $c = $fa[0] + 1; // inc hit // write data to file $fp = fopen ($fn, "w"); if (flock($fp, LOCK_EX)) { //lock the file $os = $c . "\n\n"; $fr = fwrite($fp,$os); $ip = getenv("REMOTE_ADDR"); $os = $uarray["path"]."\t".date("D M jS g:ia")."\t$ip\t".$_GET['ref']; $fr = fwrite($fp,$os); if ($nl > $maxlines) { $nl = $maxlines; } if ($nl > 1) { for ($i = 1; $i < $nl; $i++) $fr = fwrite($fp,$fa[$i]); } flock($fp, LOCK_UN); //release lock fclose($fp); } //output the javascript text echo ($s); ?> The script on every html page that sends information to the counter: <SCRIPT TYPE="text/javascript" LANGUAGE="javascript"> var counterPath = "log/webcounter.php"; document.write("<iframe src=\""+counterPath+"\?ref="+document.referrer+"\" width=1 height=1 marginwidth=0 marginheight=0 frameborder=0 scrolling=\"no\"><\/iframe>"); </SCRIPT> Also if you could give me a code for an even better php counter that would be nice. ThanksThanks for the response, but this does not work. I receive a T_DNUMBER syntax error. Where in the code should I place this code? What I want it to do is when the php code realizes that it's my Ip address, it exits and does nothing more. more

Open Question: i need help with php, xml, stuff?

right now i have a php script(Below)hat will take the songs in a folder and create an xml playlist which is then sent to the music player on my webpage. the problem is that the xml playlist it generates is not random, so the same songs always come up in the same order. is there an easy way to edit the script to generate a random playlist from the folder of songs? if not can someone direct me to a resource that will teach me what i need to know to either change the script or write a new one? <?php $defaultExtension = 'mp3'; // it can be changed $filetype = isset($_GET['type'])?$_GET['type']:$defaultExtension; $dir = $_GET['dir']; $rootDir = ''; //don't change zis :) $files = array(); if(is_dir($dir)) { $dh = opendir($dir); while (false !== ($filename = readdir($dh))) { if($filename != '.' and $filename != '..' and is_dir($dir.'/'.$filename)) $dirs[] = $filename; } sort($dirs); $rootDir = $dir; foreach($dirs as $dir){ $d2h = opendir($rootDir.'/'.$dir); $files[$dir] = array(); while (false !== ($filename = readdir($d2h))) { if($filename != '.' and $filename != '..' and !is_dir($rootDir.'/'.$dir.'/'.$filename) and substr($filename,strrpos($filename,'.')+1) == $filetype) array_push($files[$dir],$filename); } } } echo '<?xml version="1.0" encoding="utf-8"?>'; echo ' <playlist>'; foreach($files as $folder => $list_of_files){ if(sizeof($list_of_files)>0){ echo ' <folder name="'.$folder.'">'; foreach($list_of_files as $file){ echo ' <file path="'.$rootDir.'/'.$folder.'/'.$file.'" />'; } echo ' </folder>'; } } echo ' </playlist>'; ?> more

Open Question: Blog Script (Easy ten points)?

okay, i have a website, rpcomputer.110mb.com .... i wanted to know if there is a blog script, that will fit in my current template...it needs to only require php. more

Open Question: How to select the first paragraph in a page that is not in a table?

I am a bit stuck on this one. I am writing a script in PHP that is to extract the first paragraph of any webpage. Currently, all it does is find the first <p> tags, and extracts the data between, then converts it to plaintext. I now need to expand this to select the data between the first <p> tags that are not in a table. If it is in a table, it needs to be skipped. I'm stuck, help? more

Resolved Question: Help with Socks5 Proxy?

I would like to run a socks5 proxy on a web server from a hosting provider. It is a Linux server, but I do not have shell access. I can run some simple terminal commands (cd, dir, pwd) with a simple php script that uses system() but I can not run ./configure, make, or make install. Is there a way to run socks5 on this server? I tried using phproxy, but it doesn't seem to work on anything but port 80. Is there an alternative socks, http or https proxy that I can use with programs like Firefox. Note: I would prefer to have a dedicated server, rather than use tar Thanks more

Open Question: PHP: Trimming the text in a link?

Hello yahoo answers. PHP noob here. I am building a webpage and would like to trim how big the links for forum post are... I am displaying recent forum post on my side bar, but sometimes, the titles are too long and need trimming. For example... A titles post like: Hey guys I love yahoo answers Should be abbreviated to: Hey guys... Here is the PHP for plugging the links: while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "<a href=\"$urlPath/viewtopic.php?f=$row[forum_id]&t=$row[topic_id]&p=$row[post_id]#p$row[post_id]\" class=\"nav2\" TARGET=\"_blank\">" . $row["topic_title"] . "</a> <a href=\"$urlPath/memberlist.php?mode=viewprofile&u=$row[user_id]\" TARGET=\"_blank\">" . ""; } mysql_free_result($result); mysql_close($link); If you need to see the whole script, I can post it, just let me know. Thank you in advance!I don't think you're understanding Bella, it's working fine as is... I just need the post titles abbreviated. The post titles are represented by ["topic_title"] in the snippet I posted. more

Open Question: PHP search functions not working... In need of help.?

I'm working on PHP homework and I can't seem to get the search functions to work correctly. The first two work alright, but I don't think they're going into the elements correctly and the ones that are noted in the comments aren't working at all and I get offset errors. I've gotta do five different searches. One that searches $states that ends in xas and stores it in element0. A second that searches $states that begins with k and ends in s, stored in element 1. A third search that begins with M and ends in s, stored in element2. A fourth search that ends in a, stored in element3. Finally, a fifth that searches the beginning of the string that starts with M. I've worked out all the code the best I could, but only the ones not in comments work and I'm not sure exactly why the others are giving errors and why they're not being stored properly. <?php $states = "Mississippi Alabama Texas Massachusetts Kansas"; print("This script will search, '$states' <br /> <br />"); //Search for any words ending in 'xas' if (ereg( "[[:<:]]([a-zA-Z]*xas)[[:>:]]", $states, $statesArray ) ) print( "Match found ending in 'xas': " . $statesArray[ 0 ] ."<br />"); //Search for any words, case insensitive, starting with 'k' and ending in 's' if ( eregi( "[[:<:]](k[[:alpha:]]+s)[[:>:]]", $states, $statesArray ) ) print( "Match found beginning with 'k' and ending in 's': " . $statesArray[ 1 ] ."<br />"); //Search for any words starting with 'M' and ending in 's' //if ( ereg( "[[:<:]](M[[:alpha:]]*s)[[:>:]]", $states, $statesArray ) ) //print( "Match found beginning with 'M' and ending in 's': " . //$statesArray[ 2 ] ."<br />"); //Search for any words ending in 'a' //if (ereg( "[[:<:]]([a-zA-Z]*a)[[:>:]]", $states, $statesArray ) ) //print( "Match found ending in 'a': " . //$statesArray[ 3 ] ."<br />"); //while ( ereg("[[:<:]]([[:upper:]][[:lower:]])*M)[[:>:]]", $states, $statesArray ) ) //{ // print( $statesArray[ 4 ] . " " ); // $states = ereg_replace( $statesArray[ 4 ], "", $states ); //} // end while //print( $statesArray[0], $statesArray[1], $statesArray[2], $statesArray[3], $statesArray[4], ); ?><!-- end of PHP Script --> more

Resolved Question: CSS class in a PHP link?

Hello there. I'm trying to edit the style in a PHP code, can someone offer any help? The code is: "<a href=\"$urlPath/viewtopic.php?f=$row[forum_id]&t=$row[topic_id]&p=$row[post_id]#p$row[post_id]\" TARGET=\"_blank\">" . $row["topic_title"] . "</a> I would like to have the equivalent of <a href= "link" class="nav" target="_blank">URL</a> but the class="nav" keeps stumping me. I do not have much experience with PHP... CSS is my thing, but I'd really like to get this script looking like it should. Anyone willing to help? more

Open Question: php ftp upload script?

i need a script that uploads a file to a specific directory and then displays the user visible or down loadable path to the file more

Resolved Question: How to send email using php script?

I want to send email using php website can anyone tell me How to send email using php script? more

Open Question: HELP. i need web designers help!?

Ok i need help on this php that wont work. i have everything set up and with xampp and other php works so it has to be the script. here it is CODE: <html> <head> <title>Tutorial 1</title> </head> <body> <p> <form method=POST action="tutorial1.php"> Username: <br /> <input type="text" name="user"> <br /> Password <br /> <input type="text" name="pass"> <br /> <input type="submit" value="Submit"> </form> </p> <?php $user = $_post['user']; $pass = $_post['pass']; if (($user == "jdawg01")&&($pass == "pcup")) echo "Access granted"; else echo "Wrong username or password"; ?> </body> </html> more

Open Question: MySQL connection problem?

I am trying to learn MySQL (used with PHP) by using a tutorial on www.w3schools.com. The tutorial says that to connect to MySQL all you need to do is use the PHP function "mysql_connect", but whenever I do this I receive the error message "Could not connect: Access denied for user 'apache'@'localhost' (using password: NO)". Does anyone know why this is? I am running these PHP scripts on my website on www.freewebhostingarea.com. Thank you in advance! more

Open Question: External .js wont work?

Removed this menu (nav) code from the header into an external .js file and removed <script> tags. $(document).ready(function() { $("ul.subnav").parent().append(""); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*) $("ul.topnav li span").hover(function() //When trigger is hovered... { //Following events are applied to the subnav itself (moving subnav up and down) $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click $(this).parent().hover(function() { }, function() { $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up }); //Following events are applied to the trigger (Hover events for the trigger) }).hover(function() { $(this).addClass("subhover"); //On hover over, add class "subhover" }, function() { //On Hover Out $(this).removeClass("subhover"); //On hover out, remove class "subhover" }); }); I replaced it with <script type="text/javascript" src="<?php echo $domain; ?>js/nav.js"></script> It is sourcing from the right directory but it does not work. and yes it did work when it was coded in the header. Please help! more

Open Question: jquery ajax question?

i made a form and i want it to post on the page without refreshing but i dont get what im doing wrong, because it doesnt work. here is the form: <form action=""> <textarea id="message" rows=5 cols=100 wrap="physical"></textarea> <input type="submit" value="send" id="button"/> </form> here is the jquery script: $(function(){ $("#button").click(function(){ var message= $("#message").val(); $.ajax({ type: "POST", url:"index.php", data: message, success: function(){ alert("it wroks:")+ message; //so i know if it works, but it doesnt. } }); return false; }; }); and the php that handles and shows the post: <?php $arival=$_POST['message']; echo $arival; ?> im doing something wrong, but i really dont know what. more

Open Question: How Can I Run 2 Continuous Loops in One PHP Script?

So I have one file called functions.php with all my functions in it. The function I am trying to run has a while(true){ } in it. I need to run this function with 2 different users in 1 script. (So pretty much running 2 of this function at the same time.) Is this possible? If not, how else can I do this. (I would rather not have to run 2 different scripts.) more

Open Question: Want to send email through PHP?

Hello .. i m learning PHP rite now .. i have learnt one PHP SCRIPT in which we can send a mail through that Script .. but i dont know my SMTP and everything .. i dont even know anything about it . . plzz tell me step by step how to find my SMTP connection .. with port and everything .. i assure you that i will give the full marks for the best answer .. thank a lot guys for helpin me .. this is such a great website for we beginners to learn something from the experts .. Mitt more

Voting Question: Make an URL to IP Online Converter?

Hey, I want to get a script (PHP HTML etc) to make my own online site to convert a url to ip address Please don't say why not use theirs One like this: http://jeays.net/webtools/unfilter.htm Thanks Heaps -JacobAnd I know about Ping but I want to make it N00b friendly! more

Voting Question: I need help setting up my Apache sever with php to my website?

So i have just made this free website on WEEBLY.COM, and I want to put manga on it. I looked up other manga sites and i noticed they are using some kind of program to distribute their manga. I wanted to just put that on my website, but after searching i found out that i had to do LOTS of things M)to do that. First i download the Online Manga Viewer (OVM, the script) then i installed Apache and PHP. Now i am stuck and i really dont know what to do can someone please help me i really want to put manga on my website. I am using OVM 1.7 more

Open Question: Why does the UDK, the game part of it, crash whenever i try to "summon" a custom vehicle?

If I'm in Instant Action using the UDK version of UT3 when i try to summon a custom vehicle, the Parasite, it crashes, is there a special place to put it? I put it in script because it was a .u file. Here is the page the file is on: http://forums.epicgames.com/showthread.php?t=664910when ever*Wait, is that right? Is it whenever or when ever?Oh, and what directory should i put it in if it is for udk instead of ut3? more

Voting Question: Is there a way to ensure a user is still linking to my website without manually checking?

I am working on a link exchange section on my site. The user can gain special access on my site for as long as they link to my website from theirs. Is there a way to create a php or java script that automatically checks if they are still linking to my website? Any ideas on how I could do this? Thanks! more

Resolved Question: What is php and mysql?

I'm trying to learn how to make a website. And i do know html xhtml java script. And i come across these to thing php and mysql. What is php and mysql and what is it use for? Also what is real a cheap good book to learn it php and mysql? more

Voting Question: Freelancer PHP Script - where can i buy one from?

I need a PHP script where a user can join up to the website for a small monthly fee/yearly fee and then advertise their services. The member needs to be able to write on their profile how much they charge per hour, where they are based etc etc. anyone know of any scripts? more

Resolved Question: PHP : How to make directory and sub directory using php script?

i want to make directory and subdirectory using php script at same time. more

Resolved Question: PHP create directory within a directory?

Hello, I use the following script to create a directory based on the username that is signed in, however I would like it to create a folder based on the username withing another directory.... $target = $row['username']; if (!is_dir($target)) @mkdir($target); I would like the following struture. At the moment i have the following struture: /myusername/ I would like: /users/myusername Thanks in advanceA HUGE thank you to "Web Programmer"... ive had this problem for days now and within a few minutes you solved it.... Thanks Again more

Voting Question: AMD Phenom II X6 1090T vs Intel Core i7 930?

Ive gotta make a decision on which to buy... I can get the i7 at the microcenter for $200.. The AMD I would get a mobo+cpu combo for around 370.. Buying a motherboard and ram for the i7 costs more than that of the AMD.. Both builds would come out to be about the same price.. AMD Build may be a little cheaper.. Which CPU should I choose? I think about the AMD 6 cores.. then I think about the 4 cores of the i7 with hyperthreading... so 8 threads on the processor windows reads it as 8 cores... I run multiple instances of one program and run a lot of php scripts.. more

Resolved Question: How do I make my own in-website pop ups?

I want to add one of those in-website pop ups to my website, but I dont know how. I do not want an ACTUAL POP UP, that is like a new window that opens when people enter the website. I want the pop-up to be an in-website type box that opens with information and a javascripted or php scripted [X] for exit. Can anyone help me? I know its possible I seen it done on many many websites, but I cannot find one to show you at the moment An Example can be found on: http://www.fragrancenet.com/. When you enter the website a 10% coupon pops out from the left side of the website. THAT IS WHAT I WANT,I dont need stupid asshole remarks either, I am not a web designer.. I am someone designing my own website looking for help. more

Voting Question: How do I get the SuperComputer mod to work on Sims 3?

I have Ambitions and custom content (only sims3.pack-files however). I downloaded The SuperComputer - Phase Six (Version 88 - Patch 1.12) from http://ts3.tscexchange.com/index.php?topic=3482.0, and tried to install it. It said something about access to the path was denied, so I placed the file manually in Documents\Electronic Arts\The Sims 3\Mods\Packages. (I also downloaded the resource.cfg-file from that sims2wiki site) Then I tried to run the game, and when I got to the first menu, a little in-game box popped up and said that the SuperComputer mod-script was found, I clicked ok, and moved on. BUT when it was like 95% done loading the house and family it stayed there, everything looked normal, except it stopped loading. I restarted the game several times, still not working. Little help?Putting the file in the root folder didn' work :(Putting the file in the root folder didn' work :(But thanks for answering so fast! more

Resolved Question: PHP _GET code how can I make sure all field is fill?

create a PHP page to handle processing data passed in via the URL. For the GET, you will need to read two pramaters from the URL -­‐ name -­‐ class Your PHP script should print out a message showing the values of the parameters that were passed in. If a parameter is empty you should display a message saying that the field was left blank. It is not sufficient to just print nothing if a parameter was blank. It is also not appropriate to have an error if a parameter was left blank or did not have a value.? This is my code :- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="rtl"> <head> <title>Part 1 - HTTP GET</title> </head> <body> <form method="get" action="get_params.php"> <table border="1" width="400"> <tr> <td>Name:</td><td> <input type="text" name="name" value="" /></td> </tr> <td>Class:</td><td> <input type="text" name="class" value="" /></td> <tr> <td><input type="submit" value="send" /></td> <td><input type="reset" value="reset"></td> </tr> </table> <?php if (empty($_GET['name']) or empty($_POST['class'])) { echo '<BR><B><FONT COLOR=red> Pelse Type your name and class </FONT></BR></B>'; } { else{echo '<BR><B><FONT COLOR=red> Thanks </FONT></BR></B>'; } echo $_GET["name"]; echo "<br>"; echo $_GET["class"]; ?> </form> </body> </html>I need get message if the the name or class blank .....the code is work but it does not show any messages if the user left the field blank ... more

Resolved Question: Website Navigation Help!?

Hello! Hello! Hello! So i've been maintaining and building on a website for our import / export company slowly for the last couple of years. I've written the code in PHP (so I can integrate with a database when I need to...) But as more and more products get added to the range, the menu system just gets more and more complex. At current I am using a Java Script Code, that expands the menu out from the left. It is going out to four levels at some point!! I really need a better navigation system for products!! Any help or suggestions would be greatly appreciated..... website : www.egroupuk.com (At current All links are held in a seperate page, using PHP include fo pull them onto the main page) So i only need to play with one page of links...... more

Resolved Question: mobile verification code using php?

i want to write a php script for my site. when user submit form then verification code will sent to user's mobile. more

Resolved Question: How do I configure my config.php file for my script?

I purchased a script and I am trying to configure my config.php file. I am having trouble finding the base directory for my sub directory. Lets say I have a domain which I host a sub directory named "test1" The web url would be the website name + the sub directory. www.example.com/test1. But would would the the local base directory leading up to the folder test1? more

Resolved Question: Looking for a Shared Web Host That...?

1. Allows the changing of the PHP config setting: max_execution_time to more than 10 minutes 2. Does not stop the script when it hits a maximum for CPU usage, but throttles it, so it only uses the max, but continues to run, only at a lower speed. 3. Is in an affordable and SHARED environment, preferably something under 10$/month I have recently been using Godaddy, which works perfectly, and fits all the criteria except for #2; it stops scripts instead of throttling their CPU usage, so I'm looking for a new host. Thanks in advance! more

Resolved Question: How to make an image rotator?

When you go to a popular website like HULU, most of what takes up the space is the image rotator, which shows which movies and episodes are on Hulu. I viewed the source code, but sadly it is programmed in Flash. I am not preferably a fan of flash now, because as a web designer I am unable to reach the iOS users. I know HTML, CSS, some Javascript, and basic PHP. I have not figured out a way to program an image rotator without action script. Does anyone know how to do this? more

Voting Question: Looking for the Right Shared Web Host?

Recently, I have been using Godaddy. I mainly like them, except for their one undocumented limitation on CPU usage which interferes with a script that I have recently created, so I'm looking for a new host. Here are my requirements: 1. I must be able to modify PHP settings, in specific, max_execution_time 2. It must be SHARED hosting, not VPS, which will be my last resort 3. It must not have a CPU limitation, or at least be more reasonable than Godaddy's (max CPU allotted for 20s before the script is cut off) So, are there any hosting companies out there that have these characteristics? I really don't want to have to pay for a VPS =/ Thanks! more

Resolved Question: Java: Im making a script that learn as it goes,how do I make a variable that updates everytime the script runs?

Im new to Java, I don't know how to do databases or anything complex (although I have good experience with other languages). I'm taking a class and am halfway through it. But I am writing a tic tac toe script (for fun) and my technique that I am using will make the script learn as it goes. When it loses a game, it memorizes the sequence of moves and it's last move that made it lose and it will save it somehow to know next time to try something different. After quite a few games it will soon become unbeatable. My only problem is how do I make it save a variable that can be updated every time the program is run again so it can say to the program: "this made you lose before". In PHP I would have just used a database or even a text file that lists the possible mess-ups it can make and use that file to do this, but I don't know how to do it in Java. Please help! Best answer soon please more

Resolved Question: Can a webmaster help me.?

I need help from someone who knows what they are doing when it comes to web development. I have personal experience on the net but i am not a pro. Recently I decided to make a website to help people get more known on Youtube. I have done all the designing and it is really turning out great. Since I am using webs.com as my host we cannot use php and such things that i need to input a feature. (i have a premium account) This what they say: "Premium service customers can use CGI/Perl. However, this type of programming is not available for free account holders, nor do we support the use of MySQL, MSACCESS or PHP. You can, however, link to remote scripts from your website." I was wondering if there was a way i could make a "points system", whenever someone logs in or posts a comment they could get rewarded with points. Someone please help me achieve this. more

Resolved Question: Php 'Include' Compatibility With CSS?

I have a problem. I am learning the PHP include script for my already built site. The problem is its got a side menu and i dont know how to effectively use the script. I followed this tutorial http://www.tizag.com/phpT/include.php but it just gives me a basic menu. Can someone tell me how to code it so it links in with my CSS and everytime i add a new page into the side menu all the other pages update? Thanks more

Resolved Question: Questions about Free Web Hosts?

Could you tell me a web host which allows php scripting (such as post) with no cost? Also one with has the same as above but with no adverts? I really dont mind what the sub-domain name is (such as example.web-11-thebest.com) more

Resolved Question: How can I do this with jquery?

Ok. So first of all, here's some background information. I'm developing a website using Drupal. But that's probably not important. But here we go; My webpage has a php generated, unordered list. Each list has a 4 letter code, followed by a 4 digit number, then " - delete". The "delete" is a php generated url, based on the url arguments. The url links to a page that isn't useful for the user, it just causes a php script to make some database changes. And I need it so if a user clicks on one of the lines (or links in the line), the php gets executed, and the element gets removed. I'm using $.get(\"/remove/content/$code/$number"); to run the script when clicked. But I don't know how to make it go away. Well, I do - but not properly. Here's my javascript. Just ignore the quotes being escaped, it's actually being typed into a php variable. But the code still runs. $(document).ready(function(){ $(\"#removable_content\").click(function(event){ if( confirm(\"Are you sure you want to delete this content? Click 'OK' to confirm.\") ){ $.get(\"/remove/content/current_code/current_number/prev_code/prev_number\"); $(this).hide(\"slow\"); } }); }) and the ul is in the form of <ul> <li dev="removable_content"> code number - hyperlink_saying_delete </li> </ul> BUT I'm just a little lost at this... I can't get it to work. I just don't have a very strong html/css background. And I've only just started anything with javascript today. But I'm working hard at it :P more

Resolved Question: Upgrading to Joomla - What is a good folder name?

I am running a linking website for games. The original website name was Game Web Links. That is the same url for my site. I was using PHP-NUKE as a website CMS, but it really sucks. I decided to run Joomla on a sub folder on my site, with a seperate database. I plan on eventually copying all those files over, once I modify Joomla to do the same thing as my cheezy phpnuke script. I am still holding onto my previous script and hosting that as the main, because I have modified, and payed for new work on it. When I have time and money, I will modify Joomla to be a mirror image, then overwrite the phpnuke files on the main /httpdocs/ folder. To make a long story short... What should I call this sub folder, just in case it is permanent, but an evolved version of my site? Example: /mysite.com/welcome/ , /mysite.com/evolved/, /mysite.com/advanced/ Those are just examples. What would not sound like a WTF?! name for the sub folder running joomla? more

Resolved Question: PHP Shopping Cart Script for Developer?

is there any open source Shopping Cart developed in PHP , for my developer, to use it instead of developing from start? We are looking for following functionality 1. No Templates 2. Payment Module. 3. Coupon Module 4. Should not have inventory Appreciate any help more

Resolved Question: shell script to take back up of my php files?

I want to write shell script to zip the php files in specified directory and recursively. can any one help me? more

Resolved Question: php script that displays data from a mysql database?

i need a php script that displays data from a mysql database more

Resolved Question: i have to set up my own php.ini could any one help me how can i write the script for php.ini?

 more