39,326 Topics

Member Avatar for
Member Avatar for geekme

I write the following html code : <html> <body> <form method="post"> <input name="imap" type="image" src="screenshot.png"> </form> </body> </html> But when in browser i seee no picture My php code is as follows: <?php echo $_REQUEST["imap_x],$_REQUEST["imap_y"]; ?> Please help.

Member Avatar for diafol
0
55
Member Avatar for vizz

how to hide some content on webpage from unregistered user ? I am using PHP Login Script from about.com [URL="http://php.about.com/od/finishedphp1/ss/php_login_code.htm"]http://php.about.com/od/finishedphp1/ss/php_login_code.htm[/URL]

Member Avatar for IIM
0
99
Member Avatar for Nybuler

Hi all, I got some little problem for Unicode: My Unicode were Chienese world => 你好, 有什么能协助您的吗? When the 1st time i insert it in to database it saved in this form -> "&#20320 &#22909 , &#26377 &#20160 &#20040 &#33021 &#21327 &#21161 &#24744 &#30340 &#21527 &#65311" ( every &# 1234 …

Member Avatar for diafol
0
172
Member Avatar for naru vaishnaw

i want to show friend request without pressing submit query button. please anyone help me .change the code without form <?php session_start(); mysql_connect("localhost", "root", ""); mysql_select_db("aa"); //START OF LOGIN if(!isset($_SESSION["logged"])) { if(isset($_POST["username"])) { $query = mysql_query("SELECT id FROM members WHERE username = '" . $_POST["username"] . "'"); if(mysql_num_rows($query) > 0) …

Member Avatar for diafol
0
123
Member Avatar for jacob21

Hi, I am fetching data from the database & trying to print the data & export in to excel sheet.but don't know how to do. Please suggest.

Member Avatar for karthik_ppts
0
331
Member Avatar for jssutton11

On a webpage, I have a table (generated on page load through php/html) on the side that has several links (one on each row), and when you click any of them it calls a javascript function (href='javascript:newtable()') that uses an ajax requests to populate the table again (performed by a …

Member Avatar for jssutton11
0
183
Member Avatar for Stefano Mtangoo

Friends, I'm rushing towards deadline and I think that makes me do childish mistakes. Here I have validation that requires regex and each time I input valid expression preg_match returns false. It is long now I'm trying to spot error but I cannot! I have googled and AFAICS, things seems …

Member Avatar for Stefano Mtangoo
0
159
Member Avatar for PPS

I need a little help getting started with this, suggestions would be great! The applications' purpose is this: a school is allocated a certain amount of $ for the year to spend on updating technology, it's called 'refresh'. The database has a table for the [B]location[/B] and amount of $ …

Member Avatar for PPS
0
93
Member Avatar for nigelsponge

Hi, this is probably very easy for someone, I have a link that I am creating dynamically. There is no problem if I use a static link but when I try to make it dynamic, I get syntax errors. I am not really a php developer. If someone could help …

Member Avatar for diafol
0
517
Member Avatar for heshanm

Hi all, The 2 tables are as follows. [B] account_details[/B] (account_number, nic, full_name, name_with_initials, phone_number, address, gender, date_of_birth) [B]account[/B] (account_number, account_type, fd_period, account_balance, account_interest) In my accounts opening form there are 9 fields. NIC, Full name, Name with initials, Phone number, Address, Gender, DOB, Account Type, FD period I want …

Member Avatar for heshanm
0
189
Member Avatar for heshanm

Hi all, I just know whether it will allow in php to store data in a sigle form into 2 tables, because i want to use these data in some other tasks. In my form there are 7 fields. They are [B]nic, full name, name with initials, phone number, address, …

Member Avatar for heshanm
0
154
Member Avatar for svmer

Hi i want to know how to make space within hyperlinked text or images for example: <a href="http://www.daniweb.com">daniweb</a> <a href="http://www.daniweb.com">daniweb 2</a> so the output will be Daniweb daniweb 2 if add <BR> instead of </a> then it's now what i mean it's out put is that daniweb daniweb 2 is …

Member Avatar for almostbob
0
102
Member Avatar for ashiiiish

I am trying to upload few texts and the image using the code But its showing error have a look at the two codes... [CODE]<body> <center> <h2>Add News</h2> <form name="news_registration" action="addnews_process.php" method="post" enctype="multipart/form-data"> <table width="600" border="0" align="center"> <tr> <td width="49%" align="left">News Type</td> <td width="3%">&nbsp;</td> <td width="48%" align="right"><select name="category" id="category"> <?php …

Member Avatar for pixelsoul
0
115
Member Avatar for didi00

Hi, everyone. I have a button that links to another page, but it doesn't work. Here is the code: [code] <div class="pageNumbers"> <ul> <li><a href="shops1.html" class="pageNumber">1</a></li> //button 1 <li><a class="pageNumber" href="shops2.html">2</a></li> //button 2 </ul> </div> [/code] Do you know what is wrong with it?

Member Avatar for didi00
0
119
Member Avatar for vbx_wx

I am not used to php but i need to use a script now, but it always give me a windwos error. This is my script: [code] $PHP_PATH = "c:\Program Files (x86)\PHP\\"; $PHP_PATH = addcslashes($PHP_PATH, ' '); $VR_PATH = dirname(__FILE__)."\VRClient.php"; $VR_SERVER = "http://localhost:8080/vrmobile/VRServer"; $handle = popen("C:\WINDOWS\system32\cmd /C start ".$PHP_PATH." -f …

Member Avatar for vbx_wx
0
113
Member Avatar for jitu_mania

Hi friends i am learning php now when i started my website which use php script i am creating a page which will consist of my friends links So I searched in my scripts forum and got this solution step 1 : create links.tpl and insert {$my_content} and save it …

Member Avatar for jitu_mania
0
192
Member Avatar for abhi10kumar

I have categories, that came from database. I have to create pages for all the categories. For this I am creating menu and submenus are displaying categories. All submenu items must correspond pages. Here is an example: --------- Menu | --------- item1 | open item1.php (came from database) --------- item2 …

Member Avatar for karthik_ppts
0
145
Member Avatar for rotten69

Hi people, I am so interested in learning PHP as it is a powerful language in the web. I know a little bit of PHP so you can say that I've got an intro to PHP at this stage. What I am really struggling the logic of PHP. What would …

Member Avatar for rotten69
0
514
Member Avatar for kleinsteve

I have a php script to process a web form and email the contents. It processes everything except the subject line correctly: [CODE]$emailSubject = 'Work Order: ' | $_POST['company'] ;[/CODE] i don't get any syntax errors, but the email displays the subject as a mismatch of letters and numbers? like …

Member Avatar for Insensus
0
91
Member Avatar for Dannis86

I've got a website: [url]http://funnymash.com[/url] (this is not advertising). I need to add some cool features, like: When the photo who wins gets a green light and the other that loses gets a red light, how am I going to do this? Also I want to make it possible to …

Member Avatar for cfwebdeveloper
0
129
Member Avatar for prabhjitsw

Hi again,Guys.Here's my problrm. In [B]Appointments.php[/B] ,In the [B]Sector Drop down list[/B] when i select a sector,through AJAX i have selected the list of hospitals for the sector using [B]fun1()[/B] and displayed it back here in [B]appointsment.php[/B].Now that's ok. But when i try to acess the hospital select lists value …

Member Avatar for ko ko
0
155
Member Avatar for aspkiddy

Hi, I have some difficulty with my 'select' In my select/menu, I display all the options come from a table (table_db_email) in my database In this table ([B]tb_code_prmtn11_email[/B]) I have two field : [B]fld_email_id fld_name_email[/B] It works here is a code [CODE]<select name="email_adress_menu" id="email_adress_menu" class="valid" onchange="submit()"> <?php echo "<option selected=\"selected\" …

0
101
Member Avatar for abhi10kumar

How two AJAX functions can be called on an event of a control? I am using check box, on checked/unchecked I want to populate combobox and want to show records in a DIV.. Please give complete code ..

Member Avatar for ko ko
0
92
Member Avatar for Mujahid158

Hello, I'm using Google Maps to show houses listings on the Google map. I'm also using AJAX to allow user to customize search parameters. Map is showing fine but the houses listings on the map is not working. Moreover, I'm getting the following pop up error; [url]http://imageshack.us/photo/my-images/857/screenshotpll.png/[/url] I'm also sharing …

Member Avatar for pritaeas
0
218
Member Avatar for patrickm129

Hi all! I'm a new to PHP and I embarked on a making a small store. One part of this involves making a form to add new products, and tables for categories. But I am getting this error: Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' on line …

Member Avatar for rotten69
0
2K
Member Avatar for stan_l

I am trying my first PHP CLI using cURL, and simply want to complete a login to an HTTPS site. The site HTML is simple: [CODE]<body> <div class='plain-header'> <img src='/images/logo.jpg' /> </div> <div class='login-form'> <form method='post'> <table> <tr> <td class='fieldname'>Username:</td> <td> <input name='login' type='text' /> </td> </tr> <tr> <td class='fieldname'>Password:</td> …

Member Avatar for pritaeas
0
156
Member Avatar for Shantanu88d

I want to find frequency of all words in a given string. I wrote this code, but it is not giving correct output. Plz help [CODE] <?php //string here $wordsArray = "Hello world hello world this is hello world"; //echo($wordsArray); //function here $startPosForWord; $endPosForWord; $wordToMatch; $word; $scannedWords; $occurance = 0; …

Member Avatar for edwinhermann
0
3K
Member Avatar for haimz
Member Avatar for edwinhermann
0
98
Member Avatar for Rsby

Hi, i moved my site to a new server yesterday and my booking form is not working since then. I have html pages with a form action button as below; <form action="http://mydomain.com/tour_form.php" method="post" style="margin:0 0 0 0;"> <br> <input name="tn" type="hidden" value="product name"> <input type="submit" class="book" value="book now"> </form> and …

Member Avatar for urtrivedi
0
161
Member Avatar for geekme

I'm working on ubuntu 10.10 , n have installed php5 and apache 2 but when I try to open a .php file by giving the complete url in the browser it pops up the window( refer thumbnail).Please help.I'm a beginner and I'm stuck on this god knows since when.

Member Avatar for JasonHippy
0
588

The End.