Jump to content

Deoctor

Members
  • Posts

    663
  • Joined

  • Last visited

Everything posted by Deoctor

  1. i have commented the mail option 'coz i have tried it in my localserver.. do uncomment this so that it will send mail and comment the echo command //echo "Hai".$nombre."<br>".$email."<br>".$telefono."<br>".$comentarios; mail($to,$subject,$message,$headers); header('Location: gracias.html');
  2. u can use this function $ft = array(); $ft['settings'] = array(); $ft["settings"]["FILETYPEBLACKLIST"] = "php phtml php3 php4 php5"; // File types that are not allowed for upload. $ft["settings"]["FILETYPEWHITELIST"] = ""; // Add file types here to *only* allow those types to be uploaded. function ft_check_filetype($file) { $type = strtolower(ft_get_ext($file)); // Check if we are using a whitelist. if (FILETYPEWHITELIST != "") { // User wants a whitelist $whitelist = explode(" ", FILETYPEWHITELIST); if (in_array($type, $whitelist)) { return TRUE; } else { return FALSE; } } else { // Check against file blacklist. if (FILETYPEBLACKLIST != "") { $blacklist = explode(" ", FILETYPEBLACKLIST); if (in_array($type, $blacklist)) { return FALSE; } else { return TRUE; } } else { return TRUE; } } }
  3. hai u code is not fetching the posted values from the form so that is the reason why it is not sending anything.. if (isset($_POST['submit'])) { // We get all the variables $nombre=$_POST['nombre']; $email=$_POST['email']; $comentarios=$_POST['comentarios']; } $message = "FORMULARIO DE CONTACTO\n" . "\nNombre: " . $nombre . "\nMail: " . $email . "\nTelefono: " . $telefono . "\nComentarios: " . $comentarios; echo "Hai".$nombre."<br>".$email."<br>".$telefono."<br>".$comentarios; $to = 'xxxxxxxxxx@gmail.com'; $subject = 'Nuevo comentario en noticia01'; $headers = "From: xxxxxxxxxx@gmail.com\r\n"; //mail($to,$subject,$message,$headers); //header('Location: gracias.html'); ?>
  4. if u want to display the code u can use the echo statement or else if u want to run the code then use the include() command for the page.
  5. change the table structure without using the ip as the primary key
  6. hai why dont u try the ft2 it is great tool for uploading.u can download it from this location http://www.solitude.dk/filethingie/download
  7. Are there any takers for this.Please reply
  8. Hai i have developed a site in which it will display the subscription urls which are fetched from the database. now the problem is if a user wants to delete the urls which he has already added or if he wants to change the urls i have the code for them but i require these both php pages to the displayed on when the user puts his mouse over the link. can any one let me know how to do it..
  9. u can use the radio buttons like this. <html> <head> <title>Radio Buttons</title> </head> <?PHP $male_status = 'unchecked'; $female_status = 'unchecked'; if (isset($_POST['Submit1'])) { $selected_radio = $_POST['gender']; if ($selected_radio == 'male') { $male_status = 'checked'; } else if ($selected_radio == 'female') { $female_status = 'checked'; } } ?> <body> <FORM NAME ="form1" METHOD ="POST" ACTION ="radioButton.php"> <INPUT TYPE = 'Radio' Name ='gender' value= 'male' <?PHP print $male_status; ?>>Male <INPUT TYPE = 'Radio' Name ='gender' value= 'female' <?PHP print $female_status; ?>>Female <P> <INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Select a Radio Button"> </FORM> </body> </html> now u can evalute the values resulted with the correct ones.. pass the values from this to the other php file
  10. i think u can use the fgetc() for this one..
  11. hai u can try using the ft2 for this one there u can restrict what ever u want. just check it out as an alternative and also if u can paste the code which u are using then might be it could be of some help.
  12. hai dbo is the default user that u will have for all the databases. Check with your production team whether they have used any other user while creating the database. like while if there are two users sa and pm, in which sa is the admin user for the database and the mssql.where as the pm is the ordinar user for accessing the database. then there will this problem, to change this one. u need to change the user access of all the tables to which ever user that u are using up. search the check this article. http://msdn.microsoft.com/en-us/library/ms190909.aspx
  13. Dear Mr.rich guy.. just now went through your code.. cannot able to get a relation in what you are doing.. u are using the post method for getting the username and other details but where are u getting these info from. dont u need to mention a form for this one for the user to enter details and from there i think u should call the details using post
  14. 10q i resolved it on my own
  15. i am passing values entered in a form(report.php) to the display page, if user clicks on submit button it should go to a page(adminpage.php) and display the values. if the user need to edit the values then i am passing the values to the another page(editreport.php) where he can edit the values, but the problem is that the values that are displaying in the previous page are getting passed here.can any one let me know where i am doing wrong. i am attaching the files here..can anyone help me out.. [attachment deleted by admin]
  16. can u place the entire code in the php tags and paste the entire code again.. the code which u have placed is quite confusing and also u didnt mentioned the $host,$username or any thing in the code..
  17. which version of xampp u have installed.. if ur trying with 1.7.2(beta) version.. there is a chance of this happening.. so try downloading the 1.5.5 stable version. this would work on most of the machines..
  18. have u checked the http://localhost in your machine.. if it is working then the apache have started in your machine. if not check the error.log in the machine and also make sure that u have no other program using the port 80 on your machine..
  19. dear nikifi The below code will result in picking up 5 random numbers from 1-52 and display it off one by one.. till the count becomes five..
  20. if u want to do so u can use this code instead <?php $card = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18); $i= rand(1,18); echo "$card[$i]"; echo "<p>Hello</p>"; ?>
  21. <?php $card = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18); for ($i= 1; $i <= 18; $i++) { $card[i] = rand(1,18); print "$card[1]<br />"; print "$card[2]<br />"; print "$card[3]<br />"; print "$card[4]<br />"; print "$card[5]<br />"; } ?> try this it should print a number between 1 -18 it will print u 2-6 but i dont got it why u are wriitng this.. do u want to pick a random number from the array??
  22. u are just using echo the show the query right.. ur are not running the query the query should be run using the mysql_query() command give me the table structure dumb also..
  23. the port is opened. my antivirus is blocking it out.. i hope the mail will reach to ur defined address.
  24. hai i have checked out ur sever the port 25 is closed on ur machine.. ask the webadmin to open it out so that u can send the mail check the result below
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.