Jump to content
php.lv forumi

Nestrada FORM action=post


Martiny

Recommended Posts

Sveicinaati!

Liidz shim viss straadaaja teicami, bet nesen saskaaros ar sekojoshu probleemu.

Vairs nestraadaa vienkaarsha HTML Forma.

Te neliels programmas paraugs, kursh teicami straadaaja, bet tagadinj vairs nee, kamdeelj? Nospiezhot pogu "Nosuutiit" adreses laucinjaa paraadaas shaads links _>

http://kef/registrets.php?theTime=12%3A2%3...mit=Nos%FBt%EEt

, bet lapa paliek taa pati registrets.php

*********** Fails registrets.php ************************

 

<?php

include ("head.php");

?>

<TABLE ALIGN=center BORDER=0 WIDTH=600>

<FORM ACTION="registrets_parbauda.php" METHOD="Post">

<TR><TD ALIGN=left COLSPAN=2><A HREF="index.php">ATPAKAĻ</A></TD></TR>

<TR> <TD ALIGN=left COLSPAN=2><B>Ievadiet Jūsu vārdu:</B></TD></TR>

<TR> <TD ALIGN=left COLSPAN=2>

<INPUT NAME="vards" TYPE="text" SIZE=16 MAXLENGTH=26></TD></TR>

<TR> <TD ALIGN=left COLSPAN=2><B>un uzvārdu:</B></TD></TR>

<TR> <TD ALIGN=left COLSPAN=2>

<INPUT NAME="uzvards" TYPE="text" SIZE=16 MAXLENGTH=26></TD></TR>

<TR> <TD ALIGN=left>

<TR><TD></TD><TD ALIGN=center><INPUT NAME="submit" TYPE="submit" VALUE="Nosūtīt"></TD>

</TR>

</FORM>

</TABLE>

<?php

include ("bottom.php");

?>

 

************* end of file ******************

Vai kaads var paskaidrot, kas peekshnji izmainijies un noticis?

Paldies jau ieprieksh. Martiny

Link to comment
Share on other sites

Esmu, bet pats neesu uz tu ar JavaScript. Izmantoju kaadu esoshu, internetaa izvietotu scriptu.

Iespeejams, ka tur ir taa probleema?

********** head.php ****************

<HTML>

<HEAD>

<TITLE>SIA "KEF" mājas lapa</TITLE>

</HEAD>

<script language="JavaScript">

 

<!--

// please keep these lines on when you copy the source

// made by: Nicolas - http://www.javascript-page.com

 

var clockID = 0;

 

function UpdateClock() {

if(clockID) {

clearTimeout(clockID);

clockID = 0;

}

 

var tDate = new Date();

 

document.theClock.theTime.value = ""

+ tDate.getHours() + ":"

+ tDate.getMinutes() + ":"

+ tDate.getSeconds();

 

clockID = setTimeout("UpdateClock()", 1000);

}

function StartClock() {

clockID = setTimeout("UpdateClock()", 500);

}

 

function KillClock() {

if(clockID) {

clearTimeout(clockID);

clockID = 0;

}

}

 

//-->

 

</script>

<body text="#330099" link="#330099" vlink="#330099" alink="#330099" onload="StartClock()" onunload="KillClock()">

 

<TABLE ALIGN=center BORDER=0 WIDTH=1000>

<TR ALIGN=center><TD ALIGN=left><IMG SRC="images/logo2.jpg"

alt="SIA KEF logo" border="0"></TD>

<td ALIGN=left><font face="arial" size="2" color="#800000"><B><center><form name="theClock">

<input type=text name="theTime" size=8>

<form></center></B></font></td></TR>

<TR height=3 BGCOLOR="#000080"><td bgcolor="#000080" COLSPAN=2></TD></TR>

</TABLE>

****end of file *********************

 

Buushu pateiciigs par info.

Martiny

Link to comment
Share on other sites

Sveiks, Bubu.

Vai tad savaadaak arii var sho rindu rakstiit?

<form name="theClock">

<input type=text name="theTime" size=8>

<form>

Tas ir kopeets no neta kopaa ar to scriptu, ko piemineeju ieprieksh.

Martiny

Jābūt:

<form name="theClock">

<input type=text name="theTime" size=8>

</form>

Link to comment
Share on other sites

×
×
  • Create New...