Foros del Web » Creando para Internet » HTML »

Ayuda con un formulario

Estas en el tema de Ayuda con un formulario en el foro de HTML en Foros del Web. Hola a todos... necesito ayuda para convertir el formulario que arme en HTML.. que a continuacion dejo el codigo, en uno que trabaje con PHP.. ...
  #1 (permalink)  
Antiguo 31/07/2010, 11:52
Avatar de vec
vec
 
Fecha de Ingreso: junio-2001
Mensajes: 291
Antigüedad: 22 años, 10 meses
Puntos: 8
Ayuda con un formulario

Hola a todos... necesito ayuda para convertir el formulario que arme en HTML.. que a continuacion dejo el codigo, en uno que trabaje con PHP.. y que a su vez pueda conbinarse con algo asi como CJ o CS que es para evitar SPAM... pero no tengo idea de como hacerlo... Este formulario trabjaa perfectamentre pero necesita siempre de un programa de email. Desde ya muchas gracias.

[HTML]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">

</head>

<body link="#000000" vlink="#000000" alink="#000000" background="images/canineback.jpg" >
<form method="POST" enctype="text/plain" action="mailto:[email protected]" name="Test" onSubmit name="Employment" enctype="text/plain">

<div align="center">
<center>

<table border="0" width="80%" cellspacing="0" cellpadding="0">

</center>
<tr>
<td width="100%" valign="bottom">
<p align="center"><b><font face="Arial">APPLICATION FOR EMPLOYMENT</font></b></p>
<p><font face="Arial"><font size="2"><b>PERSONAL INFORMATION&nbsp;</b></font>
<font size="1">&nbsp;&nbsp;</font><b><font size="1">
Date:</font> </b><input type="text" name="Date" size="8"></font></p>
<p><font face="Arial"><font size="1"><b>Name (Last Name First):</b> </font><input type="text" name="Name" size="30">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;
<font size="1"><b>SS#:</b></font> <input type="text" name="Social Security" size="11" value="000-00-0000"></font></p>
<p><font face="Arial"><font size="1"><b>Present Address:</b></font>&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="Address" size="30">&nbsp;&nbsp;<font size="1"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
City: </b></font><input type="text" name="City" size="10">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>< font size="1">&nbsp;&nbsp;
State: </font></b><input type="text" name="State" size="2">&nbsp;&nbsp;&nbsp;
&nbsp;<b><font size="1"> Zip Code:</font></b> <input type="text" name="Zipe code" size="5"></font></p>
<p><font face="Arial"><b><font size="1">Permanent Address: </font></b><input type="text" name="Address" size="30">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font size="1"><b>City: </b></font><input type="text" name="City" size="10">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;
<font size="1"><b>State:</b></font> <input type="text" name="State" size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font size="1"><b>Zip Code: </b></font><input type="text" name="Zipe code" size="5"></font></p>
<p><font face="Arial"><b><font size="1">Phone #:</font></b> <input type="text" name="Phone" size="14" value="(000)-000-0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<b><font size="1">Referred by: </font></b><input type="text" name="Referency" size="30"></font></p>
<p>&nbsp;</p>
<p><font face="Arial" size="2"><b>EMPLOYMENT DESIRED</b></font></p>
<p><font face="Arial"><b><font size="1">Position:</font></b>&nbsp;<select size="1" name="Position">
<option selected>Front Desk</option>
<option>Kennel Help Needed</option>
</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><font size="1">Date
you can start: </font></b><input type="text" name="Date1" size="8">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;
<font size="1"><b>Hourly/Salary Wages Desired: </b></font><input type="text" name="Salary" size="5"></font></p>
<p align="center"><font face="Arial" size="1"><b>Full Time: <input type="radio" value="V1" checked name="Full Time">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;
Part Time: <input type="radio" value="V1" name="Part Time">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;
Either: <input type="radio" value="V1" name="Either"></b></font></p>
<p><font face="Arial"><b><font size="1">Are you employed?:</font></b> <select size="1" name="Employed">
<option selected>Yes</option>
<option>No</option>
</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;
&nbsp;<b><font size="1"> If so, may we inquire of your present
employer?</font></b> <select size="1" name="Employer">
<option selected>Yes</option>
<option>No</option>
</select></font></p>
<p><font face="Arial"><b><font size="1">Ever applied to this company
before?: </font></b><select size="1" name="Company">
<option>Yes</option>
<option selected>No</option>
</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp; <font size="1"><b>Where?:
</b></font><input type="text" name="Where" size="15">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;
<b><font size="1">When?:</font></b> <input type="text" name="When" size="8"></font></p>
<p>&nbsp;</p>
<p><font face="Arial" size="2"><b>EDUCATION HISTORY</b></font></p>
<div align="center">
<center>
<table border="1" width="99%">
<tr>
<td width="40%" colspan="2" align="center"><font face="Arial" size="1"><b>Name
&amp; Location of School</b></font></td>
<td width="9%" align="center"><font face="Arial" size="1"><b>Years</b></font></td>
<td width="17%" align="center"><font face="Arial" size="1"><b>Did
you Graduate?</b></font></td>
<td width="34%" align="center"><font face="Arial" size="1"><b>Subjects
Studied</b></font></td>
</tr>
<tr>
<td width="20%" align="center"><font face="Arial" size="1"><b>Grammar
School</b></font></td>
<td width="20%" align="center"><font face="Arial"><input type="text" name="Location1" size="15"></font></td>
<td width="9%" align="center"><font face="Arial"><input type="text" name="Years1" size="2"></font></td>
__________________
[email protected]
  #2 (permalink)  
Antiguo 31/07/2010, 11:53
Avatar de vec
vec
 
Fecha de Ingreso: junio-2001
Mensajes: 291
Antigüedad: 22 años, 10 meses
Puntos: 8
Respuesta: Ayuda con un formulario

<td width="17%" align="center"><font face="Arial"><select size="1" name="Graduate1">
<option selected>Yes</option>
<option>No</option>
</select></font></td>
<td width="34%" align="center"><font face="Arial"><input type="text" name="Subjects1" size="25"></font></td>
</tr>
<tr>
<td width="20%" align="center"><font face="Arial" size="1"><b>High
School</b></font></td>
<td width="20%" align="center"><font face="Arial"><input type="text" name="Location2" size="15"></font></td>
<td width="9%" align="center"><font face="Arial"><input type="text" name="Years1" size="2"></font></td>
<td width="17%" align="center"><font face="Arial"><select size="1" name="Graduate2">
<option selected>Yes</option>
<option>No</option>
</select></font></td>
<td width="34%" align="center"><font face="Arial"><input type="text" name="Subjects2" size="25"></font></td>
</tr>
<tr>
<td width="20%" align="center"><font face="Arial" size="1"><b>College</b></font></td>
<td width="20%" align="center"><font face="Arial"><input type="text" name="Location3" size="15"></font></td>
<td width="9%" align="center"><font face="Arial"><input type="text" name="Years1" size="2"></font></td>
<td width="17%" align="center"><font face="Arial"><select size="1" name="Graduate3">
<option selected>Yes</option>
<option>No</option>
</select></font></td>
<td width="34%" align="center"><font face="Arial"><input type="text" name="Subjects3" size="25"></font></td>
</tr>
<tr>
<td width="20%" align="center"><font face="Arial" size="1"><b>Trade,
Business or Correspondence School</b></font></td>
<td width="20%" align="center"><font face="Arial"><input type="text" name="Location4" size="15"></font></td>
<td width="9%" align="center"><font face="Arial"><input type="text" name="Years1" size="2"></font></td>
<td width="17%" align="center"><font face="Arial"><select size="1" name="Graduate4">
<option selected>Yes</option>
<option>No</option>
</select></font></td>
<td width="34%" align="center"><font face="Arial"><input type="text" name="Subjects4" size="25"></font></td>
</tr>
</table>
</center>
</div>
<p>&nbsp;</p>
<p><b><font face="Arial" size="2">GENERAL INFORMATION</font></b></p>
<p><font face="Arial" size="1"><b>Subjects of&nbsp; special
study/research work or special training.</b></font></p>
<p><font size="1" face="Arial"><textarea rows="5" name="Skills" cols="111"></textarea></font></p>
<p>&nbsp;</p>
<p><b><font face="Arial" size="2">FORMER EMPLOYERS</font></b></p>
<p><b><font face="Arial" size="1">&nbsp;(List below last four
employers, starting with last one first)</font></b></p>
<div align="center">
<center>
<table border="1" width="96%" height="288">
<tr>
<td width="16%" align="center" height="15"><b><font size="1" face="Arial">Date:
Month and Year</font></b></td>
<td width="24%" align="center" height="15"><b><font size="1" face="Arial">Name,
Address &amp; Phone Number of Employer, Supervisor Name</font></b></td>
<td width="10%" align="center" height="15"><b><font size="1" face="Arial">Salary</font></b></td>
<td width="24%" align="center" height="15"><b><font size="1" face="Arial">Position</font></b></td>
<td width="27%" align="center" height="15"><b><font size="1" face="Arial">Reason
for Leaving</font></b></td>
</tr>
<tr>
<td width="16%" height="47">
<p align="left"><b><font size="1" face="Arial">From: <input type="text" name="T1" size="10"></font></b></p>
</td>
<td width="24%" rowspan="2" height="87" align="center"><font size="1" face="Arial"><textarea rows="2" name="S1" cols="20"></textarea></font></td>
<td width="10%" rowspan="2" height="87" align="center">
<p align="center"><font face="Arial"><input type="text" name="Salary1" size="6"></font></p>
</td>
<td width="24%" rowspan="2" height="87" align="center"><font size="1" face="Arial"><textarea rows="2" name="Position1" cols="20"></textarea></font></td>
<td width="27%" rowspan="2" height="87" align="center"><font size="1" face="Arial"><textarea rows="2" name="Reason for Leaving1" cols="20"></textarea></font></td>
</tr>
<tr>
<td width="16%" align="left" height="34">
<p align="left"><b><font size="1" face="Arial">To:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="T1" size="10"></font></b></p>
</td>
</tr>
<tr>
<td width="16%" align="left" height="23">
<p align="left"><b><font size="1" face="Arial">From: <input type="text" name="T1" size="10"></font></b></p>
</td>
<td width="24%" rowspan="2" height="52" align="center">
<p align="center"><font size="1" face="Arial"><textarea rows="2" name="S1" cols="20"></textarea></font></p>
</td>
<td width="10%" rowspan="2" height="52" align="center"><font face="Arial"><input type="text" name="Salary2" size="6"></font></td>
<td width="24%" rowspan="2" height="52" align="center"><font size="1" face="Arial"><textarea rows="2" name="Position2" cols="20"></textarea></font></td>
<td width="27%" rowspan="2" height="52" align="center"><font size="1" face="Arial"><textarea rows="2" name="Reason for Leaving2" cols="20"></textarea></font></td>
</tr>
<tr>
<td width="16%" align="left" height="23">
<p align="left"><b><font size="1" face="Arial">To:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="T1" size="10"></font></b></p>
</td>
</tr>
<tr>
<td width="16%" align="left" height="23">
<p align="left"><b><font size="1" face="Arial">From: <input type="text" name="T1" size="10"></font></b></p>
</td>
<td width="24%" rowspan="2" height="52" align="center"><font size="1" face="Arial"><textarea rows="2" name="S1" cols="20"></textarea></font></td>
<td width="10%" rowspan="2" height="52" align="center"><font
__________________
[email protected]
  #3 (permalink)  
Antiguo 31/07/2010, 11:54
Avatar de vec
vec
 
Fecha de Ingreso: junio-2001
Mensajes: 291
Antigüedad: 22 años, 10 meses
Puntos: 8
Respuesta: Ayuda con un formulario

face="Arial"><input type="text" name="Salary3" size="6"></font></td>
<td width="24%" rowspan="2" height="52" align="center"><font size="1" face="Arial"><textarea rows="2" name="Position3" cols="20"></textarea></font></td>
<td width="27%" rowspan="2" height="52" align="center"><font size="1" face="Arial"><textarea rows="2" name="Reason for Leaving3" cols="20"></textarea></font></td>
</tr>
<tr>
<td width="16%" align="left" height="23">
<p align="left"><b><font size="1" face="Arial">To:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="T1" size="10"></font></b></p>
</td>
</tr>
<tr>
<td width="16%" align="left" height="23">
<p align="left"><b><font size="1" face="Arial">From: <input type="text" name="T1" size="10"></font></b></p>
</td>
<td width="24%" rowspan="2" height="52" align="center"><font size="1" face="Arial"><textarea rows="2" name="S1" cols="20"></textarea></font></td>
<td width="10%" rowspan="2" height="52" align="center"><font face="Arial"><input type="text" name="Salary4" size="6"></font></td>
<td width="24%" rowspan="2" height="52" align="center"><font size="1" face="Arial"><textarea rows="2" name="Position4" cols="20"></textarea></font></td>
<td width="27%" rowspan="2" height="52" align="center"><font size="1" face="Arial"><textarea rows="2" name="Reason for Leaving3" cols="20"></textarea></font></td>
</tr>
<tr>
<td width="16%" align="left" height="23">
<p align="left"><b><font size="1" face="Arial">To:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="T1" size="10"></font></b></p>
</td>
</tr>
</table>
</center>
</div>
<p align="left">&nbsp;</p>
<p align="left"><font face="Arial" size="2"><b>REFERENCES</b></font></p>
<p align="left"><font face="Arial" size="1"><b>Give below the names of
three persons not related to you, whom you have know at least one
year.</b></font></p>
<div align="center">
<center>
<table border="1" width="95%">
<tr>
<td width="27%" align="center"><b><font size="1" face="Arial">Name</font></b></td>
<td width="29%" align="center"><b><font size="1" face="Arial">Address</font></b></td>
<td width="33%" align="center"><b><font size="1" face="Arial">Business</font></b></td>
<td width="12%" align="center"><b><font size="1" face="Arial">Years
Know</font></b></td>
</tr>
<tr>
<td width="27%" align="center"><b><font size="1" face="Arial"><input type="text" name="Reference-name1" size="30"></font></b></td>
<td width="29%" align="center">
<p align="center"><b><font size="1" face="Arial"><input type="text" name="Reference-address1" size="26"></font></b></td>
<td width="33%" align="center"><b><font size="1" face="Arial"><input type="text" name="Reference-business1" size="26"></font></b></td>
<td width="12%" align="center">
<p align="center"><b><font size="1" face="Arial"><input type="text" name="Reference-years1" size="2"></font></b></td>
</tr>
<tr>
<td width="27%" align="center"><b><font size="1" face="Arial"><input type="text" name="Reference-name2" size="30"></font></b></td>
<td width="29%" align="center"><b><font size="1" face="Arial"><input type="text" name="Reference-address2" size="26"></font></b></td>
<td width="33%" align="center"><b><font size="1" face="Arial"><input type="text" name="Reference-business2" size="26"></font></b></td>
<td width="12%" align="center">
<p align="center"><b><font size="1" face="Arial"><input type="text" name="Reference-years2" size="2"></font></b></td>
</tr>
<tr>
<td width="27%" align="center"><b><font size="1" face="Arial"><input type="text" name="Reference-name3" size="30"></font></b></td>
<td width="29%" align="center"><b><font size="1" face="Arial"><input type="text" name="Reference-address3" size="26"></font></b></td>
<td width="33%" align="center"><b><font size="1" face="Arial"><input type="text" name="Reference-business3" size="26"></font></b></td>
<td width="12%" align="center">
<p align="center"><b><font size="1" face="Arial"><input type="text" name="Reference-years3" size="2"></font></b></td>
</tr>
</table>
</center>
</div>
<p align="left"><b><font size="3" face="Arial">Authorization</font></b></p>
<p align="left"><b><font size="1" face="Arial">&quot;I certify that
the facts contained in this application are true and complete to the
best of my knowledge and understand that, if employed, falsified
statements on this application shall be grounds for dismissal.</font></b></p>
<p align="left"><b><font size="1" face="Arial">I authorize
investigation of all statements contained herein and the references
and employers listed above to give you any and all information
concerning my previous employment and any pertinent information they
may have, personal or otherwise, and release the company from all
liability for any damage that may result from utilization of such
information.</font></b></p>
<p align="left"><b><font size="1" face="Arial">I also understand and
agree that no representative of the company has any authority to enter
into any agreement for employment for any specified period of time, or
to make any agreement contrary to the foregoing, unless it is in
writing and signed by an authorized company representative.</font></b></p>
<p align="left"><b><font size="1" face="Arial">This waiver does not
permit the release or use of disability-related or medical information
in a manner prohibited by the Americans with Disabilities Act (ADA)
and other relevant federal and state laws.&quot;</font></b></p>
<p align="left">&nbsp;</p>

<form method="POST" enctype="text/plain" action="mailto:[email protected]" name="Test" onSubmit name="Employment" enctype="text/plain">
<p align="center"><a href="mailto:[email protected]"><input type="submit" value="Send the Application" name="Email"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
<input type="reset" value="Reset" name="B2"></p>
</form>
<p>&nbsp;
</td>
<td width="2%" valign="bottom">
</td>
</tr>
</table>
</div>
[/HTML]
__________________
[email protected]
  #4 (permalink)  
Antiguo 31/07/2010, 16:04
Avatar de emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 9 meses
Puntos: 1567
Respuesta: Ayuda con un formulario

Tu código es demasiado extenso para analizarlo, peor si dices que funciona, vamos a suponer que así es.

Empieaza por leer un tutorial básico de como procesar con php, y luego deberas adaptar tu formulario
tutorial:
http://www.webtaller.com/manual-php/formularios_PHP.php

Saludos

Etiquetas: formulario
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 05:36.