619 Posted Topics

Member Avatar for Kniggles

You can use Ajax. Once page is loaded at user side and then you want any php operation without page load you can use ajax. Below is sample code. You need to include jQuery file to run it. By default show only one pic. When user click on button call …

Member Avatar for Kniggles
0
264
Member Avatar for sigit_p

Make sure you have proper src to show image in browser. Your src can be relative or absolute. 1) http://localhost/nseries/A2-1C1-1B.png OR 2) nseries/A2-1C1-1B.png (considering php page running this code is placed beside nseries folder.)

Member Avatar for sigit_p
0
212
Member Avatar for HasNor

I think you should add `$_SESSION['timeout'] = time(); ` inside ` if(isset($_SESSION['timeout'])) { `condition. Once your session expires and you are redirected back to index.php again you will have $_SESSION['timeout'] set with time(); So you can redirect back anywhere.

Member Avatar for vibhaJ
0
94
Member Avatar for HasNor
Member Avatar for HasNor
0
233
Member Avatar for garyrichard

Learn from this link and then post if you have issue. [http://remysharp.com/2007/01/20/auto-populating-select-boxes-using-jquery-ajax/](http://remysharp.com/2007/01/20/auto-populating-select-boxes-using-jquery-ajax/)

Member Avatar for veedeoo
0
574
Member Avatar for ettypaldos

You can also have one single ajax function and pass both user and sex parameter on ajax request. [CODE] <html> <head> <script type="text/javascript"> function showUser() { var users = document.getElementById('users').value; var sex = document.getElementById('sex').value; if (users=="" && sex=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, …

Member Avatar for johns1982
0
5K
Member Avatar for dschuett

What do you mean by **corrupt**?? Are you uploading image file, how do you know file is corrupted? Also check both file's size.

Member Avatar for dschuett
0
130
Member Avatar for trektrak

http://php-login-script.com/ http://www.webdesign.org/web-programming/php/register-login-script.8721.html

Member Avatar for vibhaJ
0
183
Member Avatar for prvnkmr449

Make sure you don't sent anything on browser before you use session_start. Is there any blank space before code start?

Member Avatar for Szabi Zsoldos
0
418
Member Avatar for mbarandao

Are you displaying this category values from database? **If yes,** then when numeric values are posted after form submission, you need to fetch value of category from database using posted numeric id. **If no,** you can directly use text as a value. > Making the value equal to the text …

Member Avatar for mbarandao
0
201
Member Avatar for salii

what is error line number? Also for testing remove all comments once and then try.

Member Avatar for salii
0
1K
Member Avatar for divyakrishnan

Yes. You need to create new .htaccess file and place it at root of your project. There are many sites which can create code for htaccess. Personally i like this site: [http://www.generateit.net/mod-rewrite/](http://www.generateit.net/mod-rewrite/)

Member Avatar for divyakrishnan
0
2K
Member Avatar for newbie1234

On login page you need to check session. If it is set then you need to redirect user to home page as shown below. if(!isset($_SESSION['Memberid'])){ header("Location: home.php"); } Also make sure session_start() should be in top of page.You can add session_start() in database_connection.php file.

Member Avatar for broj1
0
148
Member Avatar for divyakrishnan

I am not sure if you can access via this. But can you have access of image storage of other machine? If yes you can save image in wamp folder.

Member Avatar for vibhaJ
0
349
Member Avatar for kimmi_baby
Member Avatar for vibhaJ
0
171
Member Avatar for HasNor

You can use below function for filtering data before inserting in database. function filter($data) { $data = trim(htmlentities(strip_tags($data))); if (get_magic_quotes_gpc()) $data = stripslashes($data); $data = mysql_real_escape_string($data); return $data; } $filename = filter($filename);

Member Avatar for vibhaJ
0
102
Member Avatar for arwalters1990

Use session_start on top of page. There should be no other HTML codes, html comments or any white space.

Member Avatar for arwalters1990
0
338
Member Avatar for riahc3
Member Avatar for vibhaJ

Hi Friends, I want to develop a website like file manager. Where user register and will get fix disk space lets say 20MB. Now user can upload their pdf, doc, txt, jpeg etc files upto their disk limit. I can develop upto this using PHP. Now my issue is if …

Member Avatar for vibhaJ
0
142
Member Avatar for riahc3

You have to use . (dot) for concatenation and not +. So this: echo ('result es ' + $result); Should be echo ('result es '. $result);

Member Avatar for riahc3
0
725
Member Avatar for daniel36

Wherever you are using `$_GET'tm'] ` use ` isset($_GET['tm']) `before it as shown below `if(isset($_GET['tm']) && $_GET['tm']...something..)`

Member Avatar for vibhaJ
0
140
Member Avatar for veledrom

You want to redirect to xml page, what is goback.php? If you want to redirect to xml file i.e. myfile.xml then, `header("location:myfile.xml");`

Member Avatar for vibhaJ
0
230
Member Avatar for PF2G

You mean your search is working fine, but you just need to arrange search result list.. Is it right??

Member Avatar for PF2G
0
164
Member Avatar for hwoarang69
Member Avatar for ramganesht

id is missing in query. ` $query = "SELECT id, type, name, location, landmark FROM table1";` It seems strings are not concatinated properly. Try this: <? $output = ""; while($arr = mysql_fetch_array($result, MYSQL_ASSOC)) { $output.='<li> <a><a href="posts.php?ID='.$arr['id'].'&type='.$arr['type'].'&name='.$arr['name'].'">'.$arr['name'].' '.$arr['location'].'</a> <br /><p>Name: '.$arr['name'].'</p> <br /><p>Type: '.$arr['type'].'</p> <br /><p>Location: '.$arr['location'].'</p> </li>'; } echo …

Member Avatar for |-|x
0
226
Member Avatar for azdonald

<? $mtn = array('08034', '08035', '08036','08037'); $rand_key = array_rand($mtn,1); echo $mtn[$rand_key]; ?>

Member Avatar for vibhaJ
0
129
Member Avatar for hwoarang69

You have blank space in host name. Also add `$mail->SMTPDebug = 2; ` in your code for debugging. $mail->SMTPDebug = 2; // enables SMTP debug information (for testing) // 1 = errors and messages // 2 = messages only $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "ssl"; // …

Member Avatar for vibhaJ
1
8K
Member Avatar for Transcendent

Are you checking in local system? You won't receive email without SMTP. Once you upload this to LIVE you will get emails.

Member Avatar for diafol
0
224
Member Avatar for hwoarang69

Which PHPMailer version you are using?? It seems old. Try to download latest package from [http://phpmailer.worxware.com/](http://phpmailer.worxware.com/)

Member Avatar for hwoarang69
0
680
Member Avatar for hwoarang69

You can not use session during forget password. Also you can only use email for checking: <? $email = $_POST['email']; $queryget = mysql_query("SELECT username FROM user WHERE email = '$email'") or die("query didnt work"); $num_rows = mysql_num_rows($queryget); if($num_rows > 0) { $row = mysql_fetch_assoc($queryget); $username = $row['username']; // Send email …

Member Avatar for vibhaJ
0
125

The End.