- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 8
- Posts with Upvotes
- 8
- Upvoting Members
- 7
- Downvotes Received
- 5
- Posts with Downvotes
- 5
- Downvoting Members
- 2
66 Posted Topics
Re: Hmmm... There is a minor difference in those codes. Let me explain.. This is your first code for uploading file... [CODE] move_uploaded_file($_FILES['upload']['name'],$uploaddir.'/$file/'.$_FILES['file']['name']);[/CODE] And, this is your second code for uploading file... [CODE] move_uploaded_file($_FILES['file']['tmp_name'],$uploaddir.'uploads'.$_FILES['file']['name']); [/CODE] Now, can you feel the difference..? Nothing, in the first code, you are uploading the file … | |
Hi guys., I have trapped in a very critic situation. I need to upload files without any restriction of file size. I have a uploader developed using Flash and PHP. I have changed the settings in php.ini as follows upload_max_filesize = 100M post_max_size = 128M memory_limit = 512M max_execution_time = … | |
Hi guys., I have a textbox for entering URL. I validate that URL using regular expression. Now the problem is, How do i know whether the entered URL is exist or not.? For example, if user enter "http://www.daniweb.cam" rather entering "http://www.daniweb.com", how do i intimate them that the entered url … | |
Hi guys.. Can anybody tell me about how to increment default session timeout(20 mins) in dot net..? It's urgent.. Hope anybody will help me.. Thanks in advance... | |
Hi experts., I need your kind help on about how to handle Naviswork ActiveX control integrated with HTML, PHP and Javascript. I need to display a Naviswork viewer in my website. For that, I created a Browse button to select Naviswork file. After selecting the file, the file path has … | |
Hi experts., Can anybody know how to select and upload multiple files using javascript [ with php too ]..? I dont want to use silverlight or flash..! I just need to do it in simple way.. Please help me..! Thanks., | |
Hi experts., Can anybody help me out how to upload multiple files using php..? I need to select multiple files at the same time and when click to upload, it should upload all files at once..? Can we do that..? Help me...! Thanks, Dragonbaki ![]() | |
Hi experts., I am back again... Now i am working in a Joomla project. Here i have a big trouble for sending mail. Once, i send a mail with entries in Contact module, it says "Could not instantiate mail function" with "Thank you for your mail". But i didn't receive … | |
Re: Hi vijay.., For your probs, u dont need to go to AJAX.. you can done with only using Javascript.. For this you need to use Hidden form... Here i can narrate this.. First you create a dummy hidden form inside the body tag with the fields that you need to … | |
Re: Hi.. Good question.. PHP is a open source technology as well as it is easy to learn and we become an expert within a short time.. and more specifically, developing a web application like websites, webprojects etc can be done easier and more faster by these open source technologies.. Not … | |
Hi experts.,:) I have tried to send mail using silverlight application and now i am very much tired because of can't get it correctly.... I wrote a Web Service for sending mail as like below. [CODE] using System.Web.Mail; MailMessage msg = new MailMessage(); msg.From = emailFrom; msg.To = emailTo; msg.Subject … | |
Re: Yes., In your edit.php page, there is no line for displaying anything [no echo statement]... So only you are having blank screen... Try with some conditional statements here to display a message or redirect from here to another page showing your desired message.. Thanks.., | |
Re: Hi., This one is the basic tutorial site for joomla which provides enough details for beginners to work efficiently and easily create their own websites.. Go through it.. [URL="http://www.siteground.com/tutorials/joomla/"]http://www.siteground.com/tutorials/joomla/[/URL] If any probs, let me know... | |
Re: I checked that the else part in doResult_PFN() function works perfect and returns an alert msg.. | |
Hi all... For more days, I am struggling with one damn concept.. I have created a sample mail sending code which supports to upload our resume and send it to some company person.. I have cleared many bugs and finally it works fine. But the problem is when i host … | |
I am new to ASP.net.. Can anybody explaine me how to do number validation..? I need for phone number, age etc... very urgent.. Pls.. | |
Re: Give like this... Its working... [CODE] include ("../includes/store.php"); [/CODE] | |
Re: Hi Craig.. At line 5, you are getting this... if ($_POST['Submit']) But, the name of the submit button is "button"...so use if($_POST['button']) At line 12. you used $emailc. But where did you used.. At line 22, you are using.. $email1 = stripslashes($email1); what abt $email1..? where did you get that … | |
Re: There is nothing specially needed for installing php. If you install wampserver on windows, it will automatically configure itself. Use the following code to know more about installation... [URL="http://www.wampserver.com/en/presentation.php"]http://www.wampserver.com/en/presentation.php[/URL] and use the following to download wampserver. [URL="http://www.wampserver.com/en/download.php"]http://www.wampserver.com/en/download.php[/URL] If you feel any probs, pls let me know... | |
Re: You have assingned a null value for $id in function get_agency_profile($id = '') After the if condition fails, then executing the else statement. Please check, this may be the problem.. May be i am also wrong. Check it and let me know if any probs. | |
Re: Hmmm... Your code is fine.. But see at line 37.. You did not specify where the submitted values to go.. So only you have such problem. Try this.. [CODE] <form method="post" action=""> // for passing the values to this same page. [/CODE] Surely it will work. If still any probs, … | |
Re: Dont worry.. Now use this.. It works fine... [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <title>Directory</title> <body> <b>Account Information:</b> <?php error_reporting(E_ALL & ~E_NOTICE); $lname=$_POST["lastname"]; $fname=$_POST["firstname"]; $addr=$_POST["address"]; $cty=$_POST["city"]; $stat=$_POST["state"]; $zip=$_POST["zipcode"]; $acode=$_POST["areacode"]; $phone=$_POST["telephone"]; $words[] = wordCheck($lname, "lastname"); $words[] = wordCheck($fname, "firstname"); $words[] = wordCheck($addr, "address"); $words[] = wordCheck($cty, … | |
Re: What is your actual probs here..? Sorry, i cant get you clearly... | |
Re: Go to the following link to download the wampserver 2.0 version. This is flexible for you to work.. [URL="http://www.wampserver.com/en/download.php"]http://www.wampserver.com/en/download.php[/URL] | |
Re: Use the following... Replace your select box like this.. [CODE] echo "Select Blood Group   <select name='BloodGroup'><option value='none'>Select</option>"; // This will user friendly, when displaying 'Select' text, rather leaving it as a blank... while($row=mysqli_fetch_array($result)){echo "<option>".$row[BloodGroup]."</option>";}echo "</select><br>"; [/CODE] Now, Your query will be succeeded based on some conditions... [CODE] if(($Bloodgroup=='none')&&($Age=="")) { echo … | |
Re: Nothing special.. You did not used the opening tag (<?php ) and closing tag (?>) properly... See in your code at this place in body section... [CODE] Click here to: <a href='logout.php'>Log OUT</a><div style="text-align:right;"><input type="button" value="Print this page" onClick="window.print()"></div> ?> // This is the error... echo mysql_error(); echo "<hr>"; [/CODE] … | |
Re: Nothing probs.., Just get the value that the users have entered.. and then validate it., Suppose, [CODE] $name=$_POST['username']; if($name!="") { header('Location:payment.php'); } else { echo "Sorry.. We need your all details to make your payment better.."; exit; } [/CODE] This is a simple way.. Try this to use it in … | |
Re: There is no wrong in the above code.. But if you post the actual form code with the above means, i can easily help you... | |
Re: In line 12, you missed $ sign in the variable $city... $data='$first_name | $last_name | $mobile_number |$office_number |$addres | $post_code [B]|city |[/B]$file\n'; Try this, you will get it... | |
Re: This code will work... [CODE] <?php $file =$_POST['file']; $file_description =$_POST['file_description']; $user_ip =$_SERVER['REMOTE_ADDR']; $file_name =$_FILES["file"]["name"]; // $file and $file_name are same.. So use anyone to store it in the database... if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] … | |
Re: Try to do like this... You will get it... [CODE] echo "<script type='text/javascript'> doDecryption('<?php $myValue; ?>'); </script>"; [/CODE] | |
Re: Hi gdsm.., Here i post you a sample code.. Just replace your table name and place you displaying format in specified area here, you will get it as your wish.. It will works better., If any probs, pls let me know... [CODE] <?php $id=$_POST['id'] @$option=$_POST['submit1']; // This is for your … | |
Re: $fvalues is a single dimensional array only... not two dimensional array... And the value will be stored after explode as $fvalues[0]="apple" and $fvalues[1]=$4.00.. likewise... So, use it as single dimensional array..you will get it... | |
Re: if you have sample code., just post to us.. we will help u... | |
Re: Images are the special type to handle with Mysql database.. First of all, check if you uploaded the image to the database correcly by the following code as an example.. [CODE] <?php // the upload function function upload(){ if(is_uploaded_file($_FILES['userfile']['tmp_name'])) { // check the file is less than the maximum file … | |
Re: What is the value of $bi..? How do the get the value of $bi in the relevant page..? By what method $_GET or $_POST... Tell me.. we will clear it.. | |
Re: Replace the below line with your line 20 [CODE] if ((strlen($retval)<4) || (strlen($retval)>7)) [/CODE] This should perfectly works... | |
Re: In your output.php just make another column for edit and delete in the while condition as follows... while($row = mysql_fetch_array($result)) { echo "<font color='red'>Name :</font> ".$row['User_Name'].",<br >"; echo "<font color='blue'>Email :</font>".$row['Email'].",<br >"; echo "<font color='green'>Attachements :</font>"."<a href='{$row['name']}' > 'Download'</a>".".<br />"; $mail=$row['Email']; echo "<a href='edit.php?mail_id=$mail'> Edit </a>"."<br>"; echo "<a href='del.php?mail_id=$mail'> Delete … | |
Re: He says.. nothing but you missed the semicolon (;) at the end of font-size in style part of php page.. By that, may it cause such error... Try it, you would surely get it... | |
Re: Hi rakibtg... The following link is very useful for you, which helps you to satisfy all your needs.... [URL="http://www.anyexample.com/programming/php/how_to_send_email_with_php.xml"]http://www.anyexample.com/programming/php/how_to_send_email_with_php.xml[/URL] Hope, you will get it.. If any problem, let me know... | |
Re: There should be no spaces in between header function.. for (e.g) header(Location:sample.php); and no echo function to be used before header function. This will also deny the redirection task.... Suppose still any problem, please let me know.... | |
Re: In your code.. $filename variable having the value of last updated file in to your database.. So only you have this problem... Use the following code... $files=$row['name']; // This will get filename for each iteration and stored in $files.. <a href=$files> Open Attachment </a> // Now use like this... This … | |
Re: Yeah.. It's special... pt_register() function which is especially used to access the register global variables.. We obviously know that, all variables in php should begin with '$' sign... Here, they are replacing those special characters with null values at registered area... So only, this code shows the output without showning … | |
Re: Hi Shenba... Try the following code.. This will save the execution time and works faster and easier... // By this query, you can just select and use only username and password fields alone and it works faster by checking both simultaneously... $sql=mysql_query("select username,password from table_name where username='$username' and password='$password'"); // … | |
Re: In your code, this is wrong i think... mail( "myemail@gmail.com", "Study Name", "Name: $name", "Comment: $comment", "Studyname: $studyname"); Obviously, the mail() function syntax is mail($to,$subject,$message,$headers); Isnt it..? But you gave Name, Comment, Studyname like that.. First of all, you have to store the message in a separate variable (e.g $message) … | |
Re: Hmmm... your code is good.. But, for submit button, we should not write click function... why, Because.. Once, we clicked that button, it first submits the values to the corresponding action page and then only click function will be called.. Here, submitting process is primary.. So, you are unable to … | |
Re: Hi mehargags... If you like to retain the last selected date means.., your code is wrong... Try the below shown code.. It works perfectly,... [CODE] <?php @$date=$_REQUEST['date']; @$month=$_REQUEST['month']; @$year=$_REQUEST['year']; echo "<form action='' method='post' name='sample'>"; echo "Date : "; echo "<select name='date'>"; for($i=1;$i<=31;$i++) { echo "<option value=$i "; if($date==$i) { echo … | |
Re: Try with [B]visibility:visible;[/B] in your css... It will work.. if still probs, pls let me know... | |
I am trying to send mail using php. But it shows error as failed to connect with mailserver 'localhost'. Then i use smtp.bizmail.yahoo.com as SMTP mail server, then it shows SMTP error 530, Authentication required.. I don't know how to pass smtp username and password through php.ini file.. If anybody … |
The End.