Posts

Showing posts from January, 2010

name of actress in bollywood

Aishika Chand (1) Amisha Patel (4) Amrita (8) Anu Vaishnavi (2) Anushka (5) Asin (3) Aunty Actresses (15) Ayesha Takia (2) Beauty Pageant Girls (10) Bhairavi Goswami (2) bhavana (3) Bhumika (3) Bhuvaneswari (2) Bikini (10) Bikini Babes (13) Bipasha Basu (3) Bollywood Actress (28) bollywood babes (6) Bollywood Kissing (12) Bollywood News (7) Celina Jaitely (5) charmi (5) Closeup (7) Daisy Boppana (1) Dating Actresses (3) Deepal Shaw (1) Deepika Padukone (4) Divya Khosla (2) Divya Spandana (2) Esha Deol (2) farzana (2) Geeta Basra (2) gul panag (2) Hot (30) Hot Babes (48) hot model (9) Hot Pop Stars (6) Hot Wallpaper (8) hrishita bhatt (2) Item Girls (5) Jiah Khan (2) Kajal (3) Kangana Ranaut (4) Kannada Actress (14) Kareena Kapur (5) kashmira shah (3) Katrina Kaif (6) kausha (2) Kaveri Jha (4) Kim Sharma (3) Kiran (4) Koena Mitra (2) Lakshmi Rai (2) Lara Dutta (1) madhuri dixit (2) Malayalam Actress (27) Mallika Sherawat (4) Mandira Bedi (2) meera jasmine (2) Minissha Lamba (2) Mona Cho

नेपालीमा राशिफल

कारोबारमा उन्नति2009-08-02 निरन्तर लाभ 2009-08-03 नयाँ बाटा हरु खुल्ने2009-08-04 मार्ग प्रसस्त हुने2009-08-05 माताको स्वास्थको उपेक्षा नगर्नुस2009-08-06 मानहानी र धन हानी2009-08-07 राम्रो समय 2009-08-08 मान सम्मान बढ्ने2009-08-13 संगितप्रेमीको लागी राम्रो दिन2009-08-15 श्वास सवन्धी कष्ट2009-08-16 महिलाहरुमा गर्भको समस्या2009-08-17 ज्ञान प्राप्ति हुन सक्ने2009-08-18 जातिय मान्छेलाई फाइदा 2009-08-19 कसैबाट बिश्वासधात हुन सक्ने2009-08-20 ससुरालबाट धन2009-08-21 बिबाद सुझलन सक्ने2009-08-24 गुप्त रोगले सताउने2009-08-25 जागिरमा हतार नगर्नुहोला । 2009-08-26 वैदेशीक यात्राको सम्भावना । 2009-08-27 नराम्रो समचार सुनिएला। 2009-08-28 साथिभाईको सहयोगमा धन आर्जन हुनेछ। 2009-08-29 आकश्मिक लाभ हुनेछ। 2009-08-30 समय तपाईको पक्षमा छ । 2009-08-31 समय तपाईको पक्षमा छ । धार्मिक कार्यमा लाभ2009-08-02 राम्रो दिन 2009-08-03 सरकारी काममा सफलता2009-08-04 लाभ र हर्ष मिल्ने2009-08-05 बुहारीको कारण झगडा2009-08-06 सुअबसरको सदुपयोग गर्नुस2009-08-07 अनावश्यक खर्चबाट बच्नुस2009-08-08 पाकेटमार देखी सवधान2009-08-13 भोजनम

१२ वर्षे मक्कर मेला

Image
Panauti is a historical city in Nepal. It is 32 km SE from the capital Kathmandu found in the central regions of Nepal. It was a small state given by King Bhupitendra Malla as dowry to his sister. This town has a population of under 50,000 people and a few prominent icons, such as the Indreswor temple and Durbar square found in the town center. At the end of the 13th Century, Panauti was finally integrated into the unified kingdom of Nepal, along with Kathmandu, Patan, and Bakthapur, which are all former capital cities of the Kathmandu valley. Panauti, consists of a variety of Buddhist and Hindu religious monuments, and is considered to be one of the area’s most important medieval sites. Panauti, situated at the confluence of the two rivers Rosi and Punyamati, has been regarded as an important religious site since very early times. In Nepali society, such river scared places. A visit or just an ablution in such places enables man to be freed from m

2010-01-02 loadshedding

Image

File Upload Forms and Scripts

File Upload Forms and Scripts So far we've looked at simple form input. Browsers Netscape 2 or better and Internet Explorer 4 or better all support file uploads, and so, of course, does PHP. In this section, you will examine the features that PHP makes available to deal with this kind of input. First, we need to create the HTML. HTML forms that include file upload fields must include an ENCTYPE argument: ENCTYPE="multipart/form-data" PHP also works with an optional hidden field that you can insert before the file upload field. It should be called MAX_FILE_SIZE and should have a value representing the maximum size in bytes of the file that you are willing to accept. This size cannot override the maximum size set in the upload_max_filesize field in your php.ini file that defaults to 2MB. The MAX_FILE_SIZE field is obeyed at the browser's discretion, so you should rely upon the php.ini setting to cap unreasonable uploads. After the MAX_FILE_SIZE field is entered, you are

Redirecting the User in php aand mysql

Image
Redirecting the User Our simple script still has one major drawback. The form is rewritten whether or not the user guesses correctly. The fact that the HTML is hard-coded makes it difficult to avoid writing the entire page. We can, however, redirect the user to a congratulations page, thereby sidestepping the issue altogether. When a server script communicates with a client, it must first send some headers that provide information about the document to follow. PHP usually handles this task for you automatically, but you can choose to send your own header lines with PHP's header() function. To call the header() function, you must be sure that no output has been sent to the browser. The first time that content is sent to the browser, PHP sends out headers and it is too late for you to send your own. Any output from your document, even a line break or a space outside of your script tags, causes headers to be sent. I

Using Hidden Fields to Save State

Image
Using Hidden Fields to Save State The script in Listing 10.7 has no way of knowing how many guesses a user has made. We can use a hidden field to keep track of this. The mark-up for a hidden field is similar to that of a text field. From the user's perspective, however, it has no output. A user cannot see a hidden field, unless he views the HTML source of the document that contains it. Listing 10.8 adds a hidden field to the number-guessing script and some PHP to work with it. Listing 10.8 Saving State with a Hidden Field 1: <?php 2: $num_to_guess = 42; 3: $message = ""; 4: if ( ! isset( $_POST['guess'] ) ) { 5: $message = "Welcome to the guessing machine!"; 6: } else if ( $_POST['guess'] > $num_to_guess ) { 7: $message = $_POST['guess']." is too big! Try a smaller number"; 8: } else if ( $_POST['guess'] < $num_to_guess ) { 9: $message = $_POST['guess']." is t

Combining HTML and PHP Code on a Single Page

Combining HTML and PHP Code on a Single   Page For some smaller scripts, you might want to include   form-parsing code on the same page as a hard-coded HTML form. Such a combination   can be useful if you need to present the same form to the user more than once.   You would have more flexibility if you were to write the entire page   dynamically, of course, but you would miss out on one of the great strengths of   PHP. The more standard HTML you can leave in your pages, the easier they will be   for designers and page builders to amend without reference to you. You should   avoid scattering substantial chunks of PHP code throughout your documents,   however. This practice makes them hard to read and maintain. Where possible, you   should create functions that can be called from within your HTML code and can be   reused in other projects. For the following examples, imagine that we are creating a site   that teaches basic math to preschool children and have been asked to create a   scri

Accessing Form Input with User-Defined Arrays

Image
Accessing Form Input with User-Defined Arrays The examples so far enable us to gather information from HTML elements that submit a single value per element name. This leaves us with a problem when working with select elements. These elements make it possible for the user to choose multiple items. Suppose we name the select element with a plain name: <select name="products" multiple="multiple"> The script that receives this data will only have access to a single value corresponding to this name in $_REQUEST['products']. We can change this behavior by renaming any elements of this kind so that its name ends with an empty set of square brackets. We do so in Listing 10.4 . Listing 10.4 An HTML Form with a select Element 1: <!DOCTYPE html PUBLIC 2: "-//W3C//DTD XHTML 1.0 Strict//EN" 3: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 4: <html> 5: <head> 6: <title> Listing 10.

Importing User Input into Global Scope

Importing User Input into Global Scope It is possible, but not recommended, to import fields from a form submission into global variables. This behavior was once the default for PHP. Although it was useful for quick scripts, it represented a security risk, with the prospect of user-submitted values overwriting script variables. You can change the new default by altering the php.ini file. You can also import user input explicitly with the import_request_variables() function. This function requires a string representing the types to import and another optional but advisable string that adds a prefix to all imported variable names. The types argument can be any combination of g, p and c, standing for get, post, and cookies, respectively. If you only use one or two of these letters, then only the corresponding parameters are imported. The order is important in that earlier types are overwritten by later ones. That is, with the string gp, get variables are overwritten by post variables of t