Dreamweaver - dreamweaver

 
Vista:

dreamweaver

Publicado por carlos (3 intervenciones) el 15/07/2009 16:09:29
gracias compadre por responder..mi correo por si acaso es el siguiente: [B][email protected][/B]

--el problema es el siguiente: :'(:'(:'(tengo 3 formularios, de los cuales 2 de ellos al correrlo por separado presionando F12 (me abre firefox con el formulario que estoy viendo en dreamweaver cs3), me guarda la informacion perfectamente en la base de datos.:-):-)

En mi Index tengo 2 enlaces o botones flash para abrir los 2 formularios mensionado anteriormente, y resulta q cuando utilizo los links ninguno de los formularios me guarda informacion y me sale el mensaje:

Firefox no puede encontrar el archivo en /C:/wamp/www/educacion/<?php echo $editFormAction; ?>.:'(:'(

--el único que no me guarda la info al correrlo por separado (sin hacer links desde Index) en la base de datos es el formulario al cual les dejo el codigo siguiente, que ya he comparado con los otros dos y no encuentro ningun fallo::'(:'(:'(

<?[B]php require_once('Connections/MiConex.php'); ?>[/B]
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO taller (codigo, actividad, nombre, responsable, horas_academicas, lugar, dirigido_a, fecha_inicio, fecha_termino) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['codigo'], "text"),
GetSQLValueString($_POST['actividad'], "text"),
GetSQLValueString($_POST['nombre'], "text"),
GetSQLValueString($_POST['responsable'], "text"),
GetSQLValueString($_POST['horas_academicas'], "int"),
GetSQLValueString($_POST['lugar'], "text"),
GetSQLValueString($_POST['dirigido_a'], "text"),
GetSQLValueString($_POST['fecha_inicio'], "date"),
GetSQLValueString($_POST['fecha_termino'], "date"));

[B]mysql_select_db($database_MiConex, $MiConex);
$Result1 = mysql_query($insertSQL, $MiConex) or die(mysql_error());
}[/B]
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es" dir="ltr">
<head>
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
<title>phpMyAdmin</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="./css/phpmyadmin.css.php?token=91d868f770c15fc6bb9306c5b2799ba2&js_frame=right&nocache=1247081705" />
<link rel="stylesheet" type="text/css" href="./css/print.css?token=91d868f770c15fc6bb9306c5b2799ba2" media="print" />
<script type="text/javascript" language="JavaScript">
// <![CDATA[
// Updates the title of the frameset if possible (ns4 does not allow this)
if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown'
&& typeof(parent.document.title) == 'string') {
parent.document.title =[B] 'localhost / localhost / educacion / taller | phpMyAdmin 2.10.1';[/B]
}

// js form validation stuff
var errorMsg0 = '¡Falta un valor en el formulario!';
var errorMsg1 = '¡Ésto no es un número!';
var noDropDbMsg = '';
var confirmMsg = 'Realmente desea ';
var confirmMsgDropDB = '¡Está a punto de DESTRUIR una base de datos completa!';
// ]]>
</script>
<script src="./js/functions.js" type="text/javascript" language="JavaScript"></script>

<script src="./js/tooltip.js" type="text/javascript"
language="JavaScript"></script>
<meta name="OBGZip" content="false" />
<!--[if IE 6]>
<style type="text/css">
/* <![CDATA[ */
html {
overflow-y: scroll;
}
/* ]]> */
</style>
<![endif]-->
<style type="text/css">
<!--
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

continuacion codigo formulario

Publicado por carlos (3 intervenciones) el 15/07/2009 16:10:26
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body>
<div id="apDiv27">
<form action="<?php echo $editFormAction; ?>" id="form1" name="form1" method="POST">
<div id="apDiv1"><img src="Images/PCpeq1.jpg" alt="PC" width="140" height="140" /></div>
<div id="apDiv28"><span class="Estilo4">
<label><strong>Codigo</strong></label>
</span></div>
<p> </p>
<div id="apDiv29">
<label for="codigo"></label>
<input type="text" name="codigo" id="codigo" />
</div>
<p> </p>
<div id="apDiv33">
<label for="nombre"></label>
<input type="text" name="nombre" id="nombre" />
</div>
<p> </p>
<div id="apDiv30"><span class="Estilo4">
<label><strong>Actividad</strong></label>
</span></div>
<div id="apDiv31">
<label for="actividad"></label>
<input type="text" name="actividad" id="actividad" />
</div>
<div id="apDiv32"><span class="Estilo4">
<label><strong>Nombre</strong></label>
</span></div>
<div id="apDiv34"><span class="Estilo4">
<label><strong>Responsable</strong></label>
</span></div>
<p> </p>
<div id="apDiv22">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','width','133','height','50','src','button28','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','button28' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="133" height="50">
<param name="BGCOLOR" value="" />
<param name="movie" value="button28.swf" />
<param name="quality" value="high" />
<embed src="button28.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="133" height="50" ></embed>
</object>
</noscript>
</div>
<div id="apDiv36">
<label for="responsable"></label>
<input type="text" name="responsable" id="responsable" />
</div>
<div id="apDiv37"><span class="Estilo4">
<label><strong>Horas Academicas</strong></label>
</span></div>
<div id="apDiv38">
<label for="horas_academicas"></label>
<input type="text" name="horas_academicas" id="horas_academicas" />
</div>
<div id="apDiv40">
<label for="lugar"></label>
<input type="text" name="lugar" id="lugar" />
</div>
<p> </p>
<div id="apDiv23">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','width','133','height','50','src','button29','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','button29' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="133" height="50">
<param name="movie" value="button29.swf" />
<param name="quality" value="high" />
<embed src="button29.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="133" height="50" ></embed>
</object>
</noscript>
</div>
<div id="apDiv39"><label><span class="Estilo6">Lugar</span></label>
</div>
<div id="apDiv41"><span class="Estilo4">
<label><strong>Dirigido a</strong></label>
</span>
</div>
<div id="apDiv42">
<label for="dirigido_a"></label>
<input type="text" name="dirigido_a" id="dirigido_a" />
</div>
<p> </p>
<p> </p>
<div id="apDiv24">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','width','110','height','30','src','button30','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','button30' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="110" height="30">
<param name="movie" value="button30.swf" />
<param name="quality" value="high" />
<embed src="button30.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="110" height="30" ></embed>
</object>
</noscript>
</div>
<div id="apDiv43"><span class="Estilo4">
<label><strong>Fecha Inicio</strong></label>
</span>
</div>
<div id="apDiv45">
<label for="fecha_inicio"></label>
<input type="text" name="fecha_inicio" id="fecha_inicio" />
</div>
<div id="apDiv46"><span class="Estilo4">
<label><strong>Fecha Termino</strong></label>
</span>
</div>
<div id="apDiv47">
<label for="fecha_termino"></label>
<input type="text" name="fecha_termino" id="fecha_termino" />
</div>
<div id="apDiv49">
<label for="restablecer"></label>
<input type="reset" name="restablecer" id="restablecer" value="Restablecer" />
</div>
<p> </p>
<div id="apDiv25">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','width','110','height','30','src','button31','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgcolor','','movie','button31' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="110" height="30">
<param name="BGCOLOR" value="" />
<param name="movie" value="button31.swf" />
<param name="quality" value="high" />
<embed src="button31.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="110" height="30" ></embed>
</object>
</noscript>
</div>
<div id="apDiv48">
<label for="insertar registro"></label>
<input type="submit" name="insertar registro" id="insertar registro" value="Insertar Registro" />
</div>
<p> </p>
<p>
<input type="hidden" name="MM_insert" value="form1" />
</p>
</form>
</div>
</body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar