Jump to content

geniuscapri

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Everything posted by geniuscapri

  1. Thanks ansarka,
  2. Thanks ansarka
  3. why ignore me???????????????? i am not spaming here or any thing wrong. i am just asking for help. but no any one helping me. then why icont do it.??? its only reaction. :-X
  4. only one reply
  5. again no any reply
  6. This is My XML Code! <users_acounts> <user_info> <username>asdfasd</username> <password>fasd</password> <firstname>fasdf</firstname> <lastname></lastname> <email></email> <mail_stop></mail_stop> <phone></phone> <permission> <readonly>no</readonly> <img_manager>no</img_manager> <doc_share>no</doc_share> <CPX>no</CPX> </permission> </user_info> <user_info> <username>fhjfgjhfg</username> <password>jhfgjhfg</password> <firstname>jhfgjhfghj</firstname> <lastname></lastname> <email></email> <mail_stop></mail_stop> <phone></phone> <permission> <readonly>no</readonly> <img_manager>no</img_manager> <doc_share>no</doc_share> <CPX>no</CPX> </permission> </user_info> </users_acounts> and This is my PHP Code <?php $file = 'testFile.xml'; if (file_exists($file)) { // load file $xml = simplexml_load_file($file) or die ("Unable to load XML file!"); $userinfo_tag=$xml->user_info; foreach($userinfo_tag as $userinfo_tag2) { $xml = simplexml_load_file($file) or die ("Unable to load XML file!"); $username_tag=$userinfo_tag2->username; foreach($username_tag as $un_value) { echo $un_value; } ?> every thing is working. now want to edit any some values who's between <user_info> </ user_info> tags. now start my problem i am going to send user_info as ref to another page for edit my xml data. i am doing this with. <a href="user_edit.php?userinfo=<?php echo $userinfo_tag2;?>">Edit</a> But $userinfo_tag2 is not going to my next page. now Rovas can you help me???
  7. no any reply :'(
  8. again here. i have 3 input fields UserName: CountryName: Age: i want to insert this out put data in XML. it should be multiple data. and after adding i also want to edit them or delete. any one can help me about it??? This is a experiment :-\
  9. no any one know???
  10. Hello Developers, i want to edit XML values with php. any one can help me???
  11. no any one know about it???
  12. Hello Developers, any one know how to we can send multiple data with multi select filed???
  13. how??????????????????????????????????????? :'(
  14. Hello Friends, i have a problem. i am sending mail with mail() function. every thing working is Good. but i have a one problem. i am sending mail with a from name XYZ but when i receive that mail in mail box there i get from name is [email protected] why is that??? and how can i hide this??? Pleas Reply. Thanks
  15. any PHP Developer here???
  16. hello what happen no any one know about it. i thought here comes developers. But.. Pleas Help if any one know.
  17. yes i am using header $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "From: $from" . "\r\n";
  18. no any body know ????? ???
  19. Yes . already told there. every thing is fine. i have just problem with from name. from name also going but with my host name. i want to skip host name from name.
  20. Hello Friends, i have a problem. i am sending mail with mail() function. every thing working is Good. but i have a one problem. i am sending mail with a from name XYZ but when i receive that mail in mail box there i get from name is [email protected] why is that??? and how can i hide this??? Pleas Reply. Thanks
  21. if any one have good and simple mail attachment script?
  22. if (is_uploaded_file($fileatt)) { // Read the file to be attached ('rb' = read binary) $file = f open($fileatt,'rb'); $data = f read($file,filesize($fileatt)); f close($file); // Generate a boundary string $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; // Add the headers for a file attachment $headers = "From: $from \n"; $headers .= "MIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; // Add a multipart boundary above the message $message = "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type: text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message . "\n\n"; // Base64 encode the file data $data = chunk_split(base64_encode($data)); // Add file attachment to the message $message .= "--{$mime_boundary}\n" . "Content-Type: {$fileatt_type};\n" . " name=\"{$fileatt_name}\"\n" . //"Content-Disposition: attachment;\n" . //" filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n" . "--{$mime_boundary}--\n"; }else {$msg= "File error! ";} $smail = mail($to, $sub, $message, $headers); if($smail){ $msg = 'Your message has been sent Successfully. <a href="dev.html">Click here</a> to go back'; } else{ $msg = 'Sorry your message has not sent Please click <a href="dev.html"><b>here</b></a> and try again'; }
  23. Sorry form is not alow to send code.
  24. Hello Programers, i have problem in this functaions fopen and fclose. i am using in attachment mail. i dont have any syntaxt Error in my code. any body can Help me ???
×
×
  • 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.