Tarvitsisin kotisivuilleni lomakkeen, mutta palvelin, jolla sivut ovat ei tarjoa cgi-skriptiä lomakkeen lähettämiseen. Minulla ei myöskään ole valtuuksia/taitoa lisätä palvelimelle skriptiä. Voinko käyttää jonkin ulkopuolisen palvelimen skriptiä ja ennenkaikkea - mikähän tällainen palvelin voisi olla joka antaa ulkopuolisen käyttää cgi-skriptejään?
Lomakeongelma
Johanna
8504
0Äänestä
Muut lukivat myös
Odottaa vastausta
Näihin keskusteluihin ei ole vielä vastattu. Ole ensimmäinen.
Vastaukset 8
Vanhimmat
haluat jonkinlaisen kyselylomakkeen, tai vastaavan niin kantsii käydä sellasil sivuil, ku www.sivuille.net
Homma hoituu PHP:lläkin jos palvelin sitä tukee. Lisäksi palvelimen pitää pystyä lähettämään sähköpostia. Seuraava esim. lähettää sähköpostiin lomakkeen.
Lomaketiedostoon:
Kirjoita viestisi tähän
Käsittelijätiedostoon (kasittelija.php)
Lähetetään viesti...
Takaisin
Ilman mitää kikkareita sähköpostiin, vaatii, että käyttäjällä on toimiva sähköpostiohjelma:
Kirjoita viestisi tähän
Tuon tuloksena saat emailiin hieman kökön näköisen viestin, joka on "ehkä hieman" hankalasti luettavissa.
Parse error: parse error in /kansio/alikansio//toinenalikansio/kasittelija.php on line 10.
Mitähän tuo mahtaa tarkoittaa?
Pitäis myös nähdä mitä sillä rivillä 10 on, muuten menee kristallipallo-osastolle.
"CGI Sendmailform example
At the moment the mail-from address is not visible in the mail which is send by sendformmail.dll. In order to correct this, we made some alterations to this source code. The variable mail-from is now not dynamic anymore but you'll have to set it to . The variable for the e-mail address must be changed and the e-mail address will be shown in the mail-body not anymore in the mail-from part of the mail.
Send Form Mail allows you to send e-mail via HTML forms, which offers very useful interactivity on your web-site. The form may contain check boxes, blank boxes in which text can be written, etc.
Create a web page using HTML with a form tag using the following syntax:
Then your web page must contain hidden controls containing the email addresses to send the form results to with a name of mail-to and the mail's subject with the name of mail-subject. For example:
For multiple recipients just have multiple "mail-to" form controls. In addition, there is an option to have your own page be presented on successful sending of the mail. For this you need to add:
Then you must have one control of text type with the name mail-from. This control contains whom the mail is from. For example:
So, a simple web page example would look like the following:
Send Form Mail Web Page Sample
Your Email Address:
Name:
Address:
"
LÄHDE:
http://www.activeisp.com/
--> support
--> kohta: Perl/CGI
Ei toiminut tuokaan. Lähetä-nappia kun painoi, niin väitti ettei löydä koko sivua.
testasitko tuota siis netissä (ei omalla koneella) olevilla sivuilla? .
Testasin.