Pytanie : ty znać funkcja jak $notes = nl2br ($_POST ["notatka]); w ASP?

ty znać funkcja jak $notes = nl2br ($_POST ["notatka]); w ASP?
I use email forma na mój strona internetowa, ale email przychodzić z bez jakaś breaklines.
in PHP tam  być funkcja dla to $notes = nl2br ($_POST ["notatka]);
what o ASP?
thank ty.

Odpowiedź : ty znać funkcja jak $notes = nl2br ($_POST ["notatka]); w ASP?

Odpowiedź… Po Tym Jak ty widzieć widzieć, zadawalać read ten strona ostrożnie:
http://code.google.com/apis/maps/documentation/staticmaps/

(1) Ty móc the rozmiar the okno do 640x640 piksel
(2) Google móc (2) dla ty - the statyczny mapa API móc adres czerep albo nawet imię punkt zwrotny.  Lub ty móc geocoder.  Google i Yahoo oferować geocoders.  Zadawalać widzieć the kod odrzynek dla przykład to.
(3) Ty móc mnóstwo różny lokacja na mapa.  I wysyłać uzupełnienie odpowiedź z przykład móc the sposób ty móc the Google Mapa API wieloskładnikowy pushpins lub ikona na mapa.

Najlepszy uwzględnienie, ~Ray
(1):
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
    
    


    Yahoo/Google SimpleGeoCoder Demonstracja
    
    
    
    Addr:  
    Miasto:  
    ST:   
    Zamek błyskawiczny:  
    
    
    
    
    adres = $_GET ["a"];
$demo->city    = $_GET ["c"];
$demo->state   = $_GET ["s"];
$demo->zip     = $_GET ["z"];


// TEST THE YAHOO! GEOCODER
$demo->geocodeYahoo ();
echowy PHP_EOL. "YAHOO! ";
print_rr ($demo);


// TEST THE GOOGLE GEOCODER
$demo->geocodeGoogle ();
echowy PHP_EOL. "GOOGLE";
print_rr ($demo);

// WSZYSTKO ROBIĆ
kostka do gry ();


// PROSTY GEOCODER KLASA
klasowy SimpleGeoCoder
{
    // OZNAJMIAĆ THE WKŁAD DANE
    społeczeństwo $location;

    // USE CZĘŚĆ DLA TO ZAPYTANIE, LUB UŻYWAĆ THE CZĘŚĆ
    społeczeństwo $address;
    społeczeństwo $city;
    społeczeństwo $state;
    społeczeństwo $zip;

    // OZNAJMIAĆ THE PRACUJĄCY DANE
    intymny $precis;

    // OZNAJMIAĆ THE WYDAJNOŚĆ DANE
    społeczeństwo $latitude;
    społeczeństwo $longitude;
    społeczeństwo $precision;
    społeczeństwo $warning;
    społeczeństwo $geocoder;

    // OZNAJMIAĆ THE KONSTRUKTOR
    jawny funkcja __construct ()
    {
        $this->latitude  = 0.0;
        $this->longitude = 0.0;
        $this->precision = FAŁSZYWY;  // CHCIEĆ WARTOŚĆ 5 LUB WYSOKI, WYSOKI BYĆ LEPSZY
        $this->warning   = '';
        $this->geocoder  = '';
        $this->precis ($this->precis);
    }

    // OZNAJMIAĆ THE DATA-CLEANUP
    intymny funkcja _cleanup ($str)
    {
        $str = preg_replace ("/[^ \" a-zA-Z0-9&! #$% () "+:? \/@, _ \. \ -]/', '', $str);
        powrotny podstrzyżenie (preg_replace ("/\ s \ s+/", '', $str));
    }

    // OZNAJMIAĆ THE YAHOO! WERSJA THE WÓŁ ROBOCZY
    jawny funkcja geocodeYahoo ()
    {
        jeżeli (! definiować ("YAHOO_API ")) definiować ("YAHOO_API", "YAHOO_API ");
        $this->geocoder = "Yahoo! ";
        $yahooUrl       = "http://local.yahooapis.com/MapsService/V1/geocode?&appid=". YAHOO_API;

        // TY MÓC DLA ZAPYTANIE ZAPYTANIE
        jeżeli ($this->location! = '')
        {
            $yahooUrl. = "&location=". urlencode ($this->_cleanup ($this->location));
        }

        // TY MÓC DLA INDYWIDUALNY KAWAŁEK ADRES
        inny
        {   $yahooUrl. = "&street=". urlencode ($this->_cleanup ($this->address));
            $yahooUrl. = "&city="   . urlencode ($this->_cleanup ($this->city));
            $yahooUrl. = "&state="  . urlencode ($this->_cleanup ($this->state));
            $yahooUrl. = "&zip="    . urlencode ($this->_cleanup ($this->zip));
        }

        // WYKONYWAĆ YAHOO GEOCODER ZAPYTANIE
        // NOTATKA - UŻYWAĆ BŁĄD STŁUMIENIE LUB ONO SZCZEKAĆ PROŚBA THE YAHOO API KLUCZ - NA NIEPOWODZENIE POWRÓT HTTP 400 ZŁY PROŚBA
        jeżeli ($yfp = @fopen ($yahooUrl, "r "))
        {
            $yahooResponse = '';
            podczas gdy (! feof ($yfp))
            {
                $yahooResponse. = fgets ($yfp);
            }
            fclose ($yfp);
        }
        inny
        {
            powrotny FAŁSZYWY;
        }

        // EGZAMININOWAĆ THE REZULTAT
        jeżeli ($yahooResponse! = '') // PUSTY, MY DOSTAĆ DANE
        {
            $ydata    = nowy SimpleXMLElement ($yahooResponse);

            // CZEK DLA JAKAŚ BŁĄD WIADOMOŚĆ, JEŻELI PUNKT, WYDOBYWAĆ THE DANE PUNKT
            $yerror    = $ydata->Message;
            jeżeli ($yerror == '')
            {
                $this->precis    = (smyczkowy) $ydata->Result ["precyzja"];
                $this->warning   = (smyczkowy) $ydata->Result ["ostrzegać"];
                $this->latitude  = (smyczkowy) $ydata->Result->Latitude;
                $this->longitude = (smyczkowy) $ydata->Result->Longitude;

                // TE OŚWIADCZENIE MÓC UŻYWAĆ POWRÓT NORMALIZOWAĆ ADRES
                $this->address   = (smyczkowy) $ydata->Result->Address;
                $this->city      = (smyczkowy) $ydata->Result->City;
                $this->state     = (smyczkowy) $ydata->Result->State;
                $this->zip       = (smyczkowy) $ydata->Result->Zip;

                // USTAWIAĆ PRECYZJA NUMEROWY WARTOŚĆ
                jeżeli ($this->precis == "zamek błyskawiczny ")     {$this->precision = "5"; }
                jeżeli ($this->precis == "ulica ")  {$this->precision = "6"; }
                jeżeli ($this->precis == "adres ") {$this->precision = "8"; }
            }
            inny
            {
                powrotny FAŁSZYWY;
            }
        }

        // ŻADNY REZULTAT - YAHOO BYĆ CHORY PRZY YAHOO
        inny
        {
            powrotny FAŁSZYWY;
        }

        powrotny PRAWDZIWY;
    } // KOŃCÓWKA funkcja geocodeYahoo


    // OZNAJMIAĆ THE GOOGLE WERSJA THE WÓŁ ROBOCZY
    jawny funkcja geocodeGoogle ()
    {
        jeżeli (! definiować ("GOOGLE_API ")) definiować ("GOOGLE_API", "GOOGLE_API ");
        $this->geocoder = "Google";
        $googleUrl      = "http://maps.google.com/maps/geo?key=". GOOGLE_API. "&output=csv";
        jeżeli ($this->location! = '') // TY MÓC DLA ZAPYTANIE ZAPYTANIE
        {
            $googleUrl. = "&q=". urlencode ($this->_cleanup ($this->location));
        }
        inny // TY MÓC DLA INDYWIDUALNY KAWAŁEK ADRES
        {
            $googleUrl. = "&q=". urlencode (podstrzyżenie (
                    $this->_cleanup ($this->address)
            . ''. $this->_cleanup ($this->city)
            . ''. $this->_cleanup ($this->state)
            . ''. $this->_cleanup ($this->zip)
            ));
        }

        // WYKONYWAĆ GOOGLE GEOCODER ZAPYTANIE
        jeżeli ($gfp = @fopen ($googleUrl, "r "))
        {
            $googleResponse = '';
            podczas gdy (! feof ($gfp))
            {
                $googleResponse. = fgets ($gfp);
            }
            fclose ($gfp);
        }
        inny
        {
            powrotny FAŁSZYWY;
        }

        // EKSTRAKT THE DANE OD THE CSV SZNUREK
        $gdata    = wybuchać (",", $googleResponse);
        jeżeli ($gdata [(0)]! = "200") // ODPOWIEDŹ KOD MUSIEĆ "200" -- JEŻELI 602 - ZŁY KOD POCZTOWY LUB NIE DO UŻYTKU ADRES
        {
            powrotny FAŁSZYWY;
        }
        $this->precision = $gdata [(1)]; // GEOCODE DOKŁADNOŚĆ - KOD POCZTOWY = 5, WYSOKI LICZBA BYĆ LEPSZY
        $this->latitude  = $gdata [2];
        $this->longitude = $gdata [3];
        powrotny PRAWDZIWY;
    } // KOŃCÓWKA funkcja geocodeGoogle

} // KOŃCÓWKA klasa SimpleGeocoder



// NIEPOWIĄZANY FUNKCJA THE WYDAJNOŚĆ THE INFORMACJA PUBLICZNA TYLKO
funkcja print_rr ($thing)
{
    $str = print_r ($thing, PRAWDZIWY);
    $arr = wybuchać (PHP_EOL, $str);
    $num = obliczenie ($arr) - (1);
    foreach ($arr jako $ptr => $txt)
    {
        jeżeli (preg_match ("/: intymny]/", $txt))
        {
            $ptr ($arr [$ptr]);
        }
    }
    echo implode (PHP_EOL, $arr);
}
Inne rozwiązania  
 
programming4us programming4us