Ver Mensaje Individual
  #5 (permalink)  
Antiguo 07/07/2004, 07:04
Banto
 
Fecha de Ingreso: junio-2002
Ubicación: Monterrey
Mensajes: 37
Antigüedad: 21 años, 10 meses
Puntos: 0
Pregunta Les mando los scripts

si te entiedo pero el problema es que yo no controlo la validacion del usuario es una compañia aparte y el site de nosotros es nadamas un front para el sistema y en el servidor con el que contamos soporta solo tecnologia php por ello queremos resolverlo por ahi... creo que no es muy complejo lamentablemente apenas estoy aprendiendo de php por ello mis dudas

la entrada es asi page1.html --> loginreseler.php --> page2.asp(fuera de nuestro servidor)

aqui va el formulario de la page 1 html:

Código:
<html>
<head>
<title>entrando al sitio</title>
</head>
<body>

				<form action="loginreseller.php" method="post" name="envio" target="_blank">
			<table width="180"  border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="37" align="right" valign="middle"><img src="data/usuario.jpg" width="37" height="15"><img src="data/punto.gif" width="37" height="2"><img src="data/clave.jpg" width="37" height="15"></td>
                <td align="center">
				<input name="userid" type="text" id="userid" size="10">
				<input name="password" type="password" id="password" size="10">
				</td>
                <td width="52" valign="middle"><input type="image" value="submit" src="data/aceptbt.jpg" width=52 height=15 border="0"><img src="data/punto.gif" width="37" height="2"><input type="image" value="recet" src="data/cancelbt.jpg" width=52 height=15 border="0"></td>
              </tr>
            </table>
				</form>
</body>
</html>






aqui el del php

Código:
<html>
<head>
<title>Interactive Center Login</title>
<?php 
echo '<script language="JavaScript" type="text/JavaScript">'
echo 'function redirect()'
echo '{'
echo 'document.login.UserID.value = ' $_POST('userid')
echo 'document.login.Password.value = ' $_POST('password')
echo 'document.login.submit()'
echo '}'
echo '</script>'
?> 
</head>
<body onload="javascript:redirect();">
<!-- BODY TEXT -->
<table width="500" border="0" cellpadding="0" align="left">
	<tr>
		<td width="100"> </td>
		<td align="left" valign="top">
			<FONT FACE="arial, helvetica" SIZE="-1"><br>
			<font size="+1">&nbsp;&nbsp;Interactive Center Login</font><br><br>
			
			&nbsp;&nbsp;Please enter your member details below:<br>
			<form name="login" action="http://www.icallhere.com/reseller_ic/eng/index.asp?InterfaceAID=3&TimeDiff=&AID=3&APPID=1" method="POST">
				<table border="0" cellspacing="0" cellpadding="3" align="left">
					<tr>
						<td width="10">&nbsp;</td>
						<table border="0" cellspacing="0" cellpadding="3" align="left"><tr><td align='left'><FONT FACE='arial, helvetica' SIZE='-1'>&nbsp;&nbsp;<b>UserID:&nbsp;</b></FONT></td><td align='left'><input type='text' name='UserID' size='12' maxlength='15' value=''></td></tr><tr><td align=left'><FONT FACE='arial, helvetica' SIZE='-1'>&nbsp;&nbsp;<b>Password:&nbsp;</b></FONT></td><td align='left'><input type='password' name='Password' size='6' maxlength='4'></td></tr>
</table>
					</tr>
					<tr>
						<td width="10">&nbsp;</td>
						<td align="center">
							<br>
							&nbsp;&nbsp;<input type="image" src="/reseller_ic/pix/go-myinfo.gif" width=58 height=30 border="0">
							<br>
						</td>
					</tr>
				</table>
				<input type=hidden name="Allow" value="">
			</form>
		</td>
	</tr>
</table>
</body>
</html>


me esta marcando un error en la linea 6 no se realmente que sea no se si este bien escrito el codigo ya que ese lo baje de otra page

Código:
Parse error: parse error, expecting `','' or `';'' in /home/axtionta/public_html/loginreseller.php on line 6
gracias por la atencion

Última edición por Banto; 07/07/2004 a las 07:58 Razón: agregar un dato