No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
i want to get the alert on responce text, but getting nothing, my code is as follow, [ICODE] <?php session_start(); ?> <script type="text/javascript"> var xmlHttp function checkCAP(str) { if (str=="") { alert("plase enter the code"); return } xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Browser does not support HTTP Request") return } … |
|
hello, i want to arrange variables in array from foreach loop like this [ICODE] foreach($arr as $array){ $variable['first'] = $array['im']; //first record from im column in a table $variable['second']= $array['im']; //2nd record from im column in a table } echo $variable['first']; echo $variable['second']; [/ICODE] the purpose is to make the … |
|
i have a simple form validation onsubmit event. The requirement is very simple, if validate.php brings any error it shows errors and it stops form for further processing else form submit and action runs process.php. But, unfortunately ajax function is not working onsubmit event.. any help please..... files are attached … |
|
i want to insert non empt values (as $im1, $im2.....) in mysql database, code is as follow, im_id is auto_increment key [CODE] $im1 =image1['image']; $im2 =image2['image']; $im3 =image3['image']; $im4 =image4['image']; $sql = "INSERT INTO `class-ads`.`images` (im_id, image) VALUES (NULL, '$im1'), (NULL, '$im2'), (NULL, '$im3'), (NULL, '$im4') mysql_query($sql) or die('Error, Posting … |
|
hello friends, i am searching a ajax captcha from some time which have following properties, - intimate user for wrong verification code without refresing ... 2ndly - if the user enters the right code, it process the form normally. unfortunately i could not find reqired script. please help me any … |
|
hi friends, my code is as follow, [ICODE] ------sql query here------------ $result = mysql_query($sql): while ($row = mysql_fetch_array($res)) { $row[tableLegends]; $link[]=$row; } [/ICODE] when i use foreach loop in template, it give the inavlid argument "Invalid argument supplied for foreach() error" [ICODE] foreach($link AS %links){ --------code here------- } [/ICODE] i … |
|
In php file while loop is used to populate data in array in a following way, [ICODE] $result = mysql_query($sql ) or die ('Error, list failed. ' . mysql_error()); while($row = mysql_fetch_array($result)) { $row[tableLegends]; $link[]=$row; } [/ICODE] and for loop is used in printing data in theme file [ICODE] for … |
|
hellow everybody, i have created a image gallery, i am displaying a button name "[B][COLOR="Red"]Collect[/COLOR][/B]" with every image, when ever a registered user clicks on this button, the image id will be stored in the database table, but it must be behind the scene, i mean without refreshing the whole … |
|
hi, i have passed following parameters in ajax function, [ICODE] onclick = "agU(<?php echo $u . ' , ' . $msg; ?>);" [/ICODE] its not working. when i test the same function in following way it runs fine. [ICODE] onclick = "agU(<?php echo $u; ?>);" [/ICODE] am i commiting any … |
|
i have displayed a button on a page, by which a user may report anything to admin about contents complaint. when user click on this button, it leads to a new page where in a form he fills data & send to admin. now i want when user click on … |
|
i am getting the list of values from databas table, some values are null, i want to show the values, which are not null. example is as follow, [ICODE] //sql query while ($row =mysql_query($result)) { $carBrand =$row['brandName']; $carMod = $row['model']; $carModYear =$row['modYear']; $regCity =$row['regCity']; $demand =$row['demand']; //some of them are … |
|
i have four checkboxes, user have option to select all or any of them as per the nature of complaint. the html code is as follow.... [ICODE] <input type="checkbox" name="comp1" value="Abusive words are used"> <input type="checkbox" name="comp2" value="Attachments are vulgar"> <input type="checkbox" name="comp3" value="Provided links are not valid or open … |
|
is it possible to use the xmlHTTP.responseText in any other java function, after execuation of stateChanged() function??? example in ajax... [ICODE] function stateChanged(){ if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { var result = xmlHttp.responseText if (result.length=="0"){ var task = "do"; //i want to use "task" in other js function return task; } … |
|
i want to display alert on the basis of responce text in AJAX, meaning to say i am getting responce text in id "responce " through php file by AJAX method, when responce is incorrect it shows alert before form submission the code is as follow, [ICODE] <?php session_start(); ?> … |
|
i want to populate drop down box values on the basis of other drop down box value dynamically(without refreshing the page) using java script. i tried to search on google, but could not find anything. please can anybody help me in this regards. Thanks |
|
i want to validate whether the checkbox is empty or not, if it is empty, the alert box show message, but the following code is not working... [ICODE] function validate(form) { with(form) { if(agreement.value.checked==false) { alert("Please commit the agreement to continue."); agreement.focus(); return false; } } [/ICODE] Secondly, i want … |
|
i want to provide an option to user to preview the form input before form submission, it runs well, but it does the same action on pressing submission or preview button html [ICODE] <form> <tr> <td width="26%" height="30" align="right"><font face="Calibri">Category:</font></td> <input type="text" name="category" size="30"></td> <td width="26%" height="30" align="right"><font face="Calibri">City:</font></td> <input … |
|
Hellow evey body, I have to use same sql query frequently on diferenet php scripts pages in a appliction, i want to put this query in a funtion to use it where i want but this funtion is not working at all. i am unable to figure out the problem, … |
|
Hellow, Can we prevent exposing java script and css in source code of web page on the user machine??? please if anybody know about it???? shuja |
|
hello everybody, i want to pass directory name as a variable in include function like this, [ICODE] $page = 'test'; include('$page/test.php'); [/ICODE] i know this a wrong way, but i don't know how to do it. please anybody help in this regard. Thank in advance.... |
|
hello, i have following php-mysql image list script, which populate images in columns and rows of html tables, but i want to change the html columns and rows strctures into xhtml and css, i don't know how to do, [ICODE] <?php $albumId = $_GET['album']; $query = "SELECT im_id, im_title, im_thumbnail … |
|
hello, I don't know whether should I post my problem in this forum or some else. However, is there any method to auto select css tab with corresponding link. I mean to say when ever you open any link from web site its corresponding css tab automatically shows selection(highlighted). I … |
|
Have a good day, i am new to ajax, i wana display image during page load time, just like happen in youtube videos at loading time before palying. Secondly when we update any page through ajax, how can we diplay message after updation, just like "You Successfull updated the Page", … |
|
Have a nice Day, i tried to use vertical-align property of css in one of my project, but it did not work at all. can anybody tell me how can we use this property properly or any other alternative technique. thanks in advance |
|
Have a nice day, i am working on image gallery, i want to create a php script that allow user to select multiple files from any folder of his computer and then upload it to server, just like flickr or orkut, but i have no idea how it can be … |
|
All Dears, I want to create images horizontal thumbnails view in 3 columns rather than vertical list view in 1 column. I have created vertical list view in 1 column, but now i am not understanding how to create thumbnails view in 3 columns php script. Please help in this … |
|
can we connect from php to oracle 6. if it is possible then, how can we do it... regards shuja |
|
how can we sent multiple values in xmlHTTP respnse, [ICODE] var xmlHttp function [B][COLOR="red"]callAjax(id)[/COLOR][/B] { if (id.length==0) { document.getElementById("txtHint").innerHTML="" return } xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { & so on.................... ................................ [/ICODE] i want to add "id2" variable also like [B][COLOR="Red"]callAjax(id,id2)[/COLOR][/B] how can we do it?????? secondly, how can we intiame the … |
|
Re:
im Indian a novice and in php. I installed the wamp server2 that has the apacheserver,phpmyadmin and mysql but when I try to connect mysql through PHP code a error message is comming so I cnat connect mysql. can someone help me. Thanks Susanta |
|
Re:
Hi, Friends, I am new for Php please send me the tutorial which one is the best for Php learning |