Autor | Zpráva | ||
---|---|---|---|
zelenac Profil * |
#1 · Zasláno: 27. 6. 2007, 14:46:13
<HTML>
<HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1250"> <META NAME="Generator" CONTENT="Golden HTML Editor 4.8.3"> <TITLE></TITLE> </HEAD> <BODY> <?php $to = "sima.o@seznam.cz"; $subject = $_POST[text]; $body = "Hi, How are you?"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> </BODY> </html> |
||
Alphard Profil |
#2 · Zasláno: 27. 6. 2007, 14:51:04
posílá to, neposílá to, vypisuje to chybu, nebo co? jaká chyba?
|
||
zelenac Profil * |
#3 · Zasláno: 27. 6. 2007, 14:52:25
tohle to hlasi :
The page cannot be displayed The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access. Please try the following: Contact the Web site administrator if you believe that this request should be allowed. Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly. HTTP Error 405 - The HTTP verb used to access this page is not allowed. Internet Information Services (IIS) Technical Information (for support personnel) Go to Microsoft Product Support Services and perform a title search for the words HTTP and 405. Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Setting Application Mappings, Securing Your Site with Web Site Permissions, and About Custom Error Messages. |
||
Taps Profil |
#4 · Zasláno: 27. 6. 2007, 14:52:40
zkus doplnit uvozovky
$subject = $_POST['text']; |
||
zelenac Profil * |
#5 · Zasláno: 27. 6. 2007, 14:53:41
tohle to hlasi :
The page cannot be displayed The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access. Please try the following: Contact the Web site administrator if you believe that this request should be allowed. Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly. HTTP Error 405 - The HTTP verb used to access this page is not allowed. Internet Information Services (IIS) Technical Information (for support personnel) Go to Microsoft Product Support Services and perform a title search for the words HTTP and 405. Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Setting Application Mappings, Securing Your Site with Web Site Permissions, and About Custom Error Messages. |
||
djlj Profil |
#6 · Zasláno: 27. 6. 2007, 14:55:49
Máš nainstalováno php jako extensi k IIS?
|
||
Taps Profil |
#7 · Zasláno: 27. 6. 2007, 14:58:17
Já jsem ten tvůj kód zkoušel na stránkách wz a zpráva mi přišla v pohodě na email.
<?php $body = "Hi, How are you?"; $to = "neco@neco.cz"; $subject = $_POST['text']; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> |
||
zelenac Profil * |
#8 · Zasláno: 27. 6. 2007, 14:58:45
taps
ty uvozky nic nemeni djlj no mam to na webu takze tam by to melo fungovat ne ? |
||
zelenac Profil * |
#9 · Zasláno: 27. 6. 2007, 14:59:16
taps : aha , dik moc , tak je to hostingem :)
|
||
Alphard Profil |
#10 · Zasláno: 27. 6. 2007, 15:03:30 · Upravil/a: Alphard
ty chyby nejsou typické pro PHP, zřejmě to bude hostingem
// trochu pozdě, třeba příště :-) |
||
djlj Profil |
#11 · Zasláno: 27. 6. 2007, 15:04:11
no mam to na webu takze tam by to melo fungovat ne ?
Pokud nemáš v nastavení ISS přidánu extensi php.dll, tak ne. |
||
zelenac Profil * |
#12 · Zasláno: 27. 6. 2007, 15:11:45
a nevite jak bych tam pridal kolonku From , jako mail odesilatele ?
|
||
Taps Profil |
#13 · Zasláno: 27. 6. 2007, 15:51:16
zelenac
pomocí formulářů -> http://www.jakpsatweb.cz/html/formulare.html |
||
Alphard Profil |
#14 · Zasláno: 27. 6. 2007, 16:30:14
|
||
Časová prodleva: 17 let
|
0