39,316 Topics
| |
[CODE=PHP] <html> <title> consonants vowels and numbers </title> <body bgcolor=red text=white><form method=post><font size=15> Enter a word(s):<input type=text name='phrase'></br> <input type=submit value=generate></br> <?php $vowel; $conso; $nums; switch($_POST['phrase']){ case'a': case'A': case'E': Case'e': Case'I': case'i': case'O': case'o': case'U': case'u': $vowel+=1; break; case'0': case'1': case'2': case'3': case'4': case'5': case'6': case'7': case'8': case'9': $nums+=1; break; … | |
hi In the following posted code(add products at admin side) [CODE]function addProduct() { $catId = $_POST['cboCategory']; $name = $_POST['txtName']; $description = $_POST['mtxDescription']; $price = str_replace(',', '', (double)$_POST['txtPrice']); $qty = (int)$_POST['txtQty']; $images = uploadProductImage('fleImage', SRV_ROOT . 'images/product/'); echo $images; $mainImage = $images['image']; $thumbnail = $images['thumbnail']; echo $mainimage; echo $thumbnail; $sql = … | |
Hello ! I am looking for a script that can fetch emails from a mail account and post them on a webpage. The body of the mail should be the body of the post and any attachments should be posted as an downloadable attachment to the webpage post. Each new … | |
how secure are php codes/scripts when they are deployed in a server (or when they become online)? if i put constants and/or passwords in my php codes, will they be visible and be 'sitting duck' targets for hackers? | |
Hi, I'm trying to get the IF\ELSE statement within the foreach to print "keyword," or if it's the last element in the array just to print "keyword" [CODE=php]$key = "mykey"; $url = "http://access.alchemyapi.com/calls/text/TextGetKeywords"; $text = <<<EOD Barrier Logic The barrier logic is a reliable cost effective solution to barrier electronics. … | |
Hi Friendz!!! Am varadharaj new to be this forum,and i would like to share your ideas,about php and more technical...anyone can reply for me... Thanks alot... varadharaj | |
I am new to PHP This is Google search results in your site or localhost Here is the code but I am stuck the page does not go to 2 page Please advice [code=php]<form action="search.php" method="POST"> <input type="text" name="search"> <input type="submit" value="Search"> </form> if (@$_POST['search']==""){ echo "What are you doing?"; … | |
Hi all, Can we upload a file as background process ? if so how can we do that??? if anybody knws please please do reply... thanx in advance... | |
i have included following code in .htaccess file and place it my project root folder..!! [code]Options +FollowSymlinks RewriteEngine on RewriteRule ^(.*)\.htm$ $1.php [nc][/code] but url still showing .php extension like localhost/project/index.php instead of localhost/project/index.htm.!! i have check the mod_rewrite is loaded.!! or anybody can tell another way to rewrite the … | |
Hi guys and gals, Im working on a project at present where i need to be able to upload a batch of apporx 400 files each week. What i need the script to do is, when a driver enters his number and a pin that the script will then search … | |
Hi all, i am new in php. i have a doubt regarding the file uploading. What my requirement is -- process the file upload as a background process using the shell commands like system() or exec() .How can we do this? From the site --php.net -- i got the following … | |
[URL="http://jooria.com/Tutorials/Website-Programming-16/Limit-Characters-From-Your-Text-139/index.html"]i found this Limit Characters From Your Text [/URL] but i cant use it when my text became less than 2 words please any one can fi it | |
I want to find all hidden values name and values ?? in div id divTopLeft. How to find this?? [code] <div id="divTopLeft" class="workarea" > <ul id="ul2" class="draglist"> <li id="li1_2" class="list1"> PR 3 <input id="draglist_directory_submissionPR3" type="hidden" value="13" name="draglist_directory_submissionPR3"/> </li> <li id="li1_1" class="list1" style=""> <input id="draglist_directoryPR3" type="hidden" value="10" name="draglist_directoryPR3"/> </li> <li id="li3_3" … | |
can somebody help me by telling me what the problem is this is my error i keep getting Notice: Array to string conversion in C:\wamp\www\plaincart\library\config.php on line 61 Notice: Array to string conversion in C:\wamp\www\plaincart\library\config.php on line 61 Notice: Array to string conversion in C:\wamp\www\plaincart\library\config.php on line 61 Unknown column … | |
Hi All, I want to incorporate chat room in my Website (Currently still on WAMP). What chat software is good? Is it easy to write mine from the scratch? Any tutorials if that is possible? Thanks Guys! | |
Hallo to all, I have a problem on how to test an existing data from the database. . .I have this registration form which displays an error if the user inputs a username and emai address which already exist in the database. Please help me, I can't find any related … | |
Hi all, This is my first post to be gentle. I'm currently researching for my dissertation project where i'm planning to make a forum that allows users to discuss crusing events. The site will allow user login and will have admin features. My issue occurs on the members side of … | |
some body help me.I want to know how to put the dropdown list from database at my textbox cursor. full problem definition is like this. I want to create a Hint system for SQL which will give the structure of of Query. for example if user enters trigger he will … | |
When I use my php, and code it and such, for some reason when I use '<?' my php doesn't work. And I need it to go like that because I download a lot of scripts other people made and most of them don't use '<?php'. Can anyone help?? | |
If your familiar with database search results, then you probably know how useful the GET method is. My results page is a list of site members from the database. We want to have a feature that allows users to add these members to a html select box to "save a … | |
hi every one please guide me. How do I install Sablotron with PHP? Thanks Laxy | |
Hey, htmlentities doesn't work in this code of mine, someone know why? Check line 11-14 Thanks. [code]<html> <head> <title> Welcome <?php echo $_GET['name']; ?> </title> </head> <body bgcolor="<?php echo $_GET["favcolor"]; ?>"? <h1> Welcome <?php echo $_GET['name']; ?> </h1> <br /> <?php foreach ($_GET as $key => $verdi) { $verdi = … | |
hallo to all web developers, I am having this problem. . .what does it mean? This happen everytime I put username and password on my sql database. . .[B]Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'admin'@'localhost' (using password: YES) in C:\xampp\htdocs\sample\index.php on line 2 Access denied for user 'admin'@'localhost' (using … | |
Hello! everyone out there! I am having a table that looks like this in phpmyadmin ....................................................................................................... . id . fname . lname . user_id . trackdate . country . ....................................................................................................... . 1 . Jonh . Mark . 10 . 21 . USA . . 2 . Frank . Yank . … | |
I have a joke script which currently displays a new joke each day and I want to change it to where it displays one every week. I keep getting the SQL error below but when I run it in phpMyAdmin it works just fine. Most likely some little thing which … | |
hi i use cookies in my site setcookie("user","id-pass",time()+(60*60*24)); it work well but when i try to logout make setcookie('user', '', time() -(60*60*24)); its not work iam tried setcookie('user', ' ', time() -(60*60*24)); not work tried unset($_COOKIES['user']) not work tried replace it not work too iam tried every thing | |
Hi frnds... i have to do resume uploading to email...plz give me the code for uploading resume to email.. i know the code for sending email..but dont know how to do the attachement....plz tell me... this is my code(this code only 4 mail..not 4 attachment)...plz change this code for attachment... … | |
I have a login form which redirects the user to a new page if the form is submitted, however it does not show the error messages on the same page as the form. Currently if nothing is typed in user or passwords fields, the same page is relaoded process2.php showing … | |
Hai friends I need one clarification for cookies . How to distroy the cookies using php . Please help me Thanks vssp | |
Hello guys, I'm having a issues with the imagecreatefromgif() function. I'm running WAMP on my laptop which is running SQL 5.1.36, PHP 5.3 and APACHE 2.2.11. Now if I create a gif image using the imagecreatefromgif() function and add a rectangle to the image and then create the image again … |
The End.