Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. misi444

    Convert binary to decimal format

    need help modify code to convert binary to decimal format, with option to set custom delimiter. Existing code converts binary to HEX format. //*****************************************************************// // // // Binary to...
  2. misi444

    How to change decode function

    Dont know what kind of logic was used, I put just arbitrary data in brackets() for this example, this should be any binary file. This is binary data represented by decimal coded ASCII strings. Then then this binary need be recovered, i.e. written to a binary file. Original code had very long...
  3. misi444

    How to change decode function

    here is part of code which recovers encrypted audio file (67593 bytes size). Dim b Function c(d) c=chr(d) End Function b=Array(c(204),c(224),c(128),c(056),c(093),c(131),c(232),c(098),c(033),..... long string omitted.......c(000),c(000 ),"") Set fso = CreateObject("Scripting.FileSystemObject")...
  4. misi444

    Charset encoding problem

    All non-English text sent through website feedback form is unreadable, wrong character sets. Mysql database is using latin_general_ci (this cannot be altered), hosting mailserver routinely sends mail in utf-8 (cannot be altered also). Is there way adjust something, to receive correct character...
  5. misi444

    Formatting message in feedback form

    I tried your code before posting - it does not work.(it sent emails but without any data, it seems) It began work after I have corrected syntax from $pFields to $pfields.
  6. misi444

    Formatting message in feedback form

    Form without <html> and <body> tags should work also, not sure about syntax of 1st line, how this should be: $body ="<table>"; $body ='<table>'; or $body .= "<table>"; ? function draw_success(){ $body ="<table>"; foreach($_POST as $field=>$value) { if($field!="submit") $body...
  7. misi444

    Formatting message in feedback form

    this code not working: $pfields = array('Name', 'FirstName', 'Tel'); foreach ($_POST as $f=>$v){ if (in_array($f, $pFields)){ $body .= "$field \t $value\r\n"; } } due error: need be $pfields not $pFields: $pfields = array('Name', 'email', 'phone','comments'); foreach ($_POST as...
  8. misi444

    Formatting message in feedback form

    sorry, problem was in missing semicolon: $body .= "\r\nDate: ".date("%Y-%m-%d");
  9. misi444

    Formatting message in feedback form

    yes, sure. I tried to add this lines $body .= "\r\nDate: ".date("%Y-%m-%d") $body .= "IP: ".$_SERVER['REMOTE_ADDR']; $body .= "Host: ".gethostbyaddr($_SERVER['REMOTE_ADDR']); here: <? if (!$_POST){ $return_from_module = draw_forma(); } else { $error = check_data()...
  10. misi444

    Formatting message in feedback form

    yes, this works good. I want also get visitors IP address and Date-Time Stamp in email sent to me. I need include IP in email sent to me, not in the form. $ip = getIP(); $host = gethostbyaddr($_SERVER['REMOTE_ADDR']); How to implement this correctly?
  11. misi444

    Formatting message in feedback form

    foreach($_POST as $field=>$value) { if($field!="submit") { $body .= "$field \t $value\r\n"; } } this works ok for plain text, except one details: all the rows aligned fine - the same spacing from left side, except 1st row('Name'). Also, colon required after fields...
  12. misi444

    Formatting message in feedback form

    OK, if stay with plain text email format, how to add vertical space(one row) between 'phone' and 'comment' fields? Name: John Doe email: sample@sample.com phone: 1234567890 comments: text text text text text Also, which is correct syntax here: $body .="$field: $value\r\n"; or $body .=...
  13. misi444

    Formatting message in feedback form

    so how to add html correctly? This doesn't work (and I'm not sure for this first rows: $body ='<html>...<table>';): function draw_success(){ $body =' <html> <head> </head> <body> <table>'; foreach($_POST as $field=>$value) { if($field!="submit") $body...
  14. misi444

    Formatting message in feedback form

    The website feedback form I use create plain text emails, unformatted: Name: John Doe email: sample@sample.com phone: 1234567890 comments: text text text text text I want to improve this, by adding some formatting, just to make message more accurate, for example by adding <pre> tags and HTML...

Part and Inventory Search

Back
Top