s.o.s forma me minimata

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

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

Απάντηση
Άβαταρ μέλους
wwf
Δημοσιεύσεις: 593
Εγγραφή: 16 Οκτ 2005 15:13
Τοποθεσία: THESS
Επικοινωνία:

s.o.s forma me minimata

Δημοσίευση από wwf » 10 Οκτ 2008 22:38

γεια σας εχω κανει καποια φορμα αλλα θελω να κανει καποια πραγματα

1: καθως παταει στο Submit να πειγενει στο e-mail αμεσως και οχι στο outlook
2: θελω στο e-mail να βγαζει ενα μηνυμα "Submission failed!
Please fill in all required fields and try again..."

και στο κουμπι αντι για "ok"
Click here
for the previous page

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

<tr>
											<td valign="top" class="text">
											<form action="mailto&#58;info@start.edu.gr?subject=Abstract Submission" method="post" name="contactform" onSubmit="return formCheck&#40;&#41;;" enctype="text/plain">
												<table border="0" cellpadding="1" cellspacing="5" width="100%" height="100%">
													<tr>
														<td class="text" valign="top" width="147">Abstract title&#58; </td>
														<td colspan="2"><textarea name="Abstracttitle" cols="50" rows="3" class="comments"></textarea></td>
													</tr>
													<tr>
														<td colspan="3"><br></td>
													</tr>
													<tr>
														<td class="text" width="147">Contact author&#58;</td>
														<td class="text" width="113">Title</td>
														<td width="418" class="text">Prof&nbsp;
													  <input type="radio" name="title" value="Prof">&nbsp;Dr&nbsp;<input type="radio" name="title" value="Dr">&nbsp;Mr<input type="radio" name="title" value="MR">&nbsp;Mrs&nbsp;<input type="radio" name="title"  value="Mrs">&nbsp;Ms<input type="radio" name="title" value="Ms"></td>
													</tr>
													<tr>
														<td></td>
														<td class="text"  width="113">Last name *</td>
														<td><input type="text" name="lastname" class="field_abs"></td>
													</tr>
													<tr>
														<td></td>
														<td class="text"  width="113">First name *</td>
														<td><input type="text" name="firstname" class="field_abs"></td>
													</tr>
													<tr>
														<td></td>
														<td class="text"  width="113">Institution/<br>
													  affiliation</td>
														<td><input type="text" name="institution" class="field_abs"></td>
													</tr>
													<tr>
														<td></td>
														<td class="text"  width="113">Address</td>
														<td><input type="text" name="address" class="field_abs"></td>
													</tr>
													<tr>
														<td></td>
														<td class="text"  width="113">Postcode </td>
														<td class="text"><input type="text" name="postcode" class="field_abs_small"> City<input type="text" name="city" class="field_abs_small"></td>
													</tr>
													<tr>
														<td></td>
														<td class="text"  width="113">Country </td>
														<td><input type="text" name="country" class="field_abs"></td>
													</tr>
													<tr>
														<td></td>
														<td class="text"  width="113">Telephone </td>
														<td class="text"><input type="text" name="telephone" class="field_abs_small"> Fax <input type="text" name="fax" class="field_abs_small"></td>
													</tr>
													<tr>
														<td></td>
														<td colspan="2" class="text"><small><i>&#40;Country code/area code/tel. number&#41;</i></small></td>
													</tr>
													<tr>
														<td></td>
														<td class="text"  width="113">E-mail <em> Required field</em> * </td>
														<td><input type="text" name="mail" class="field_abs"></td>
													</tr>
													<tr>
														<td class="text">Type of presentation&#58;</td>
														<td class="text" colspan="2">Oral   <input type="radio" name="Type of presentation" value="oral">Poster   <input type="radio" name="Type of presentation" value="Poster"></td>
													</tr>
													<tr>
														<td class="text">Technical equipment <br>required&#58; </td>
														<td class="text"  colspan="2">Power Point <input type="radio" name="Technicalequipmentrequired" value="oral">Other   <input type="radio" name="Technicalequipmentrequired" value="other"><input type="text" name="Other" class="field_abs_small"></td>
													</tr>
													<tr>
														<td class="text">Summary&#58;</td>
														<td colspan="2"><textarea name="summury"  cols="50" rows="5"></textarea></td>
													</tr>
													<tr>
														<td colspan="3" align="center"><input type="submit" name="Submit" value="Submit"></td>
													</tr>
												</table>
												<br><br>
												<table border="0" cellpadding="3" cellspacing="2" align="center">
													<tr>
														<td class="text" align="center" colspan="2" bgcolor="#666666"><strong>ABSTRACT GUIDELINES</strong></td>
													</tr>
													<tr>
														<td class="text" valign="top"  bgcolor="#666666">Title&#58;</td>
														<td class="text_abs"  bgcolor="#666666">&#40;Times New Roman 11pt, Upper Case, bold, left alignment, single-spacing&#41;</td>
													</tr>
													<tr>
														<td class="text" valign="top"  bgcolor="#666666">Authors&#58;</td>
														<td class="text_abs"  bgcolor="#666666">&#40;Times New Roman 11pt, bold, alignment left, single-spacing&#41; <br>
														Please <u>underline</u> the <u>presenting author</u><br>
														Order &#91;for each name&#93;&#58; Last Name First Name Initial&#40;s&#41;<Br>
														Order &#91;of names&#93;&#58; First Author, Co-authors
														</td>
													</tr>
													<tr>
														<td class="text" valign="top"  bgcolor="#666666">Authors' institution/Profession&#58;</td>
														<td class="text_abs"  bgcolor="#666666">&#40;Times New Roman 10pt, alignment left, single-spacing&#41;<br>
														Order&#58; Institution, Department, Section, City and Country <br>
														&#91;Each institution referring to the corresponding author by an indicating  number and using one single line, if possible&#93;
														</td>
													</tr>
													<tr>
														<td class="text" valign="top"  bgcolor="#666666">Text&#58;</td>
														<td class="text_abs"  bgcolor="#666666">&#40;Times New Roman 10pt, justified, single-spacing&#41; maximum 250-300 words
														</td>
													</tr>
												</table>												
											 </form>
											</td>
										</tr>
kai auto einai to script

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

<script>
var nFontSize=16;
function setFontSize&#40;nAmmount&#41;
&#123;
	if &#40;&#40;nFontSize>9 || nAmmount>0&#41; && &#40;nFontSize<18 || nAmmount<0&#41;&#41; &#123;
	nFontSize=nFontSize + nAmmount;
	document.all.arttext.style.fontSize=nFontSize;
	&#125;
&#125;
</script>
<SCRIPT LANGUAGE="JavaScript">
  function formCheck&#40;&#41;&#123;
 
   flag = true
  flag1 = true
  flag2 = true
  flag3 = true
  flag4 = true
 
  errstr = ""
 

   if &#40;document.contactform.lastname.value == ""&#41;        &#123;
   alert &#40;"Please fill in your  last name."&#41;;
   document.contactform.lastname.focus&#40;&#41;;
   return false;        &#125;
 
   if &#40;document.contactform.firstname.value == ""&#41;        &#123;
   alert &#40;"Please fill in your  first name."&#41;;
   document.contactform.firstname.focus&#40;&#41;;
   return false;        &#125;
 
 
   if &#40;document.contactform.mail.value == ""&#41; &#123;
     alert&#40;"Submission failed! Please fill in all required fields and try again..."&#41;;
     document.contactform.mail.focus&#40;&#41;;
     return &#40;false&#41;;
   &#125;
 
 
 
   if &#40;document.contactform.mail.value == ''&#41; &#123;
   errstr = errstr + "\n\nPlease fill in your  e-mail."
   flag = false
  &#125; else &#123;
   flag1 = false
   flag2 = false
   electmail = document.contactform.mail.value
   StrLn = electmail.length - 1
   if &#40;electmail.charAt&#40;0&#41; == "@"&#41; &#123;
   // errstr = errstr + "\n\nΠαρακαλώ γράψτε ένα έγκυρο e-mail."
    flag1=false
   &#125; else &#123;
    for &#40;var i=0; i <= StrLn; i++&#41; &#123;
     if &#40;electmail.charAt&#40;i&#41; == "@"&#41;&#123;
      flag1 = true
      if &#40; i == StrLn &#41; &#123;
       flag1 = false
      &#125; else &#123;
       if &#40; electmail.charAt&#40;i + 1&#41; == "." &#41; &#123;
        flag1 = false
       &#125;
      &#125;
     &#125;
     if &#40;electmail.charAt&#40;i&#41; == "."&#41; &#123;
      flag2 = true
      if &#40; i == StrLn &#41; &#123;
       flag2 = false
      &#125;
     &#125;
    &#125;
   &#125;
   if &#40;&#40;!flag1&#41; || &#40;!flag2&#41;&#41; &#123;
    errstr = errstr + "\n\nPlease give a valid e-mail."
   &#125;
  &#125;
 
  if &#40;flag && flag1 && flag2 && flag3&#41; &#123;
   return true;
  &#125; else &#123;
   alert&#40;errstr&#41;
   return false;
  &#125;
 
  return &#40;true&#41;;
   &#125;
 
 //-->
 </SCRIPT>
[/code]

Απάντηση

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

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

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