FORMA-EMAIL

Ερωτήσεις και απαντήσεις σχετικές με την HTML, XHTML και την κατασκευή σελίδων για το Web.

Συντονιστές: WebDev Moderators, Super-Moderators

Απάντηση
Άβαταρ μέλους
Nidas
Honorary Member
Δημοσιεύσεις: 2348
Εγγραφή: 03 Απρ 2003 13:09
Τοποθεσία: Germany/Wuppertal-Hellas/Preveza

FORMA-EMAIL

Δημοσίευση από Nidas » 26 Απρ 2003 14:14

GIA SAS ::PAIDIA EXO BALEI TON PARAKATO KODIKO GIA NA FTIAXO MIA EMAILFORM KAI OTAN PATAO SEND MESSAGE MOU BGAZEI NA SIBLIROSO TO KANONIKO EMAIL DILADI DIXNEI TO EMAIL MOU:BOREITE NA MOU PEITE TI PREPEI NA KANO GIA NA TIN SIBLIRONOUN KAI NA MOU ERXETE APEUTHIAS STO EMAIL MOU...

Κώδικας: Επιλογή όλων


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<!--  Created with the CoffeeCup HTML Editor  -->
<!--        http&#58;//www.coffeecup.com/         -->
<!--      Brewed on 26/4/2003 1&#58;12&#58;14 &&      -->
<head>
  <title></title>
  <meta name="generator" content="CoffeeCup HTML Editor -  www.coffeecup.com">
  <meta name="description" content="">
  <meta name="keywords" content="">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#FF00FF" alink="#FF0000">


</body>
</html>
<!-- Start of E-Mail Form JavaScript-->
<!--   DESCRIPTION&#58;  This will send you an e-mail with whatever your visitor enters in the fields. 
	INSTRUCTIONS&#58;  Place this entire script where you want the form to show up on the page.  You can change the values &#40;Name, E-mail, Phone, etc.&#41;  Just be sure to change that fields value in the script.  See where is says, "document.ccform.name.value", that is for the input field "name".  BE SURE TO CHANGE THE E-MAIL ADDRESS BELOW.  Currently it's at 'you@yourprovider.com'.
	FUNCTIONALITY&#58; Works in both Netscape and IE.  ONLY WORKS IF THE VISITOR HAS THEIR E-MAIL SET UP ON THEIR BROWSER.  
-->
<SCRIPT LANGUAGE=JavaScript>
//Modified by CoffeeCup Software 
//This code is Copyright &#40;c&#41; 1998 CoffeeCup Software 
//All rights reserved. License is granted to a single user to 
//reuse this code on a personal or business Web Site. 
<!--  
  if &#40;navigator.appVersion.lastIndexOf&#40;'Win'&#41; != -1&#41; &#123;
      dropline = "\r\n"  &#125; else &#123; dropline = "\n" &#125;
function coffeemsg&#40;form&#41; &#123;
document.ccform.Message.value = &#40;
   '  ' + dropline + dropline
  + '-----CoffeeCup AutoMated E-Mail Form---START----- ' + dropline
  + dropline + dropline 
  + 'Name     &#58; ' + document.ccform.name.value + dropline
  + 'Phone    &#58; ' + document.ccform.phone.value + dropline
  + 'Subject  &#58; ' + document.ccform.subject.value + dropline
  + 'E-mail    &#58; ' + document.ccform.email.value + dropline
  + 'Message&#58; ' + document.ccform.message.value
  + dropline  + dropline
  + '-----CoffeeCup AutoMated E-Mail Form----END------ ' + dropline
  + dropline + 'E-Mail Form JavaScript by&#58;' + dropline
  + 'http&#58;//www.coffeecup.com' + dropline
  + dropline + dropline 
  + ' FIELD VALUES&#58; ' + dropline
  + '  ' + dropline
&#41;;
&#125;
// -->
</SCRIPT>

<FORM name="ccform" method="post" action="mailto&#58;onoma@hotmail?subject=Message"
 enctype="text/plain">
<INPUT type=hidden name="Message">

<FONT FACE="VERDANA, ARIAL"><B>Name&#58;</B></FONT><P>
<INPUT type="text" size=25 name="name" onChange="coffeemsg&#40;&#41;">

<P>
<FONT FACE="VERDANA, ARIAL"><B>Phone&#58;</B><P>
<INPUT type="text" size=25 name="phone" onChange="coffeemsg&#40;&#41;">

<P>
<FONT FACE="VERDANA, ARIAL"><B>Email&#58;</B></FONT><P>
<INPUT type="text" size=25 name="email" onChange="coffeemsg&#40;&#41;">

<P>
<FONT FACE="VERDANA, ARIAL"><B>Subject&#58;</B></FONT><P>
<INPUT type="text" size=25 name="subject" onChange="coffeemsg&#40;&#41;">

<P>
<FONT FACE="VERDANA, ARIAL"><B>Message&#58;</B></FONT><P>
<TEXTAREA rows=5 cols=45 wrap="auto" name=message onChange="coffeemsg&#40;&#41;"></TEXTAREA>

<P>
<CENTER>
<INPUT type=submit value="Send Message" onClick="coffeemsg&#40;&#41;">
</CENTER>
</FORM>
<P>
<!-- End of E-Mail Form JavaScript-->


gia tixon apantiseis euxaristo..

Άβαταρ μέλους
Cha0s
SysAdmin
Δημοσιεύσεις: 10242
Εγγραφή: 28 Ιούλ 2001 03:00

FORMA-EMAIL

Δημοσίευση από Cha0s » 07 Μάιος 2003 00:51

Den poli katalava ti ennoeis me auto "OTAN PATAO SEND MESSAGE MOU BGAZEI NA SIBLIROSO TO KANONIKO EMAIL DILADI DIXNEI TO EMAIL MOU:"

Parolayta pou to dokimasa to script an kai ixera ek ton proteron pos tha leitourgisei i forma to dokimasa na do ti tha allaxei me to javascriptaki pou ebales.

Ayto pou eida kai mallon ayto ennoeis eiani oti otan kanei submit o xristis anoigei ton default e-mail client pou exei rithmisei sto sistima tou kai stelnei to mail.

Esi apoti katalava thes apla na stelnei apeytheias ta comments tou xristi sto mail sou.


Me sketi html kai javascript den mporeis na to petixeis ayto. Tha xreiasteis PHP i kapia alli paromoia glossa opou mporeis na kaneis polla kolpakia me ligo psaximo.

An den exei o server sou ypostirixi php i den gnorizeis pos na tin xrisimopiiseis nomizo yparxoun diafora site pou prosferoun paromoies ypiriesies (px Bravenet an kai den eimai sigouros gia ayto...)

An pali endiaferesai gia ton kodika se php pes na ston grapso..

Απάντηση

Επιστροφή στο “HTML και XHTML”

Μέλη σε σύνδεση

Μέλη σε αυτήν τη Δ. Συζήτηση: Δεν υπάρχουν εγγεγραμμένα μέλη και 0 επισκέπτες