elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Como proteger una cartera - billetera de Bitcoin


+  Foro de elhacker.net
|-+  Programación
| |-+  Desarrollo Web
| | |-+  PHP (Moderador: #!drvy)
| | | |-+  Alinear formulario web
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Alinear formulario web  (Leído 2,641 veces)
.:UND3R:.
Moderador Global
***
Desconectado Desconectado

Mensajes: 3.118


Ingeniería inversa / MASM


Ver Perfil WWW
Alinear formulario web
« en: 5 Marzo 2012, 18:32 pm »

Hola a todos, bueno tengo la siguiente duda, como podría alinear un formulario en base a nombre de la cuenta?, adjunto imagen:



adjunto register.php:

Código
  1. <?
  2.  
  3. $get_config = simplexml_load_file('engine/config_mods/register_settings.xml');
  4. if($get_config->active == '0'){
  5. echo msg('0',text_sorry_feature_disabled);
  6. }else{
  7. $register_method = $get_config->method;
  8.  
  9. $verification_config = simplexml_load_file('engine/config_mods/human_verification.xml');
  10. if($verification_config->human_verification_type == 'reCAPTCHA'){
  11. $is_reCAPTCHA = '1';
  12. require_once('engine/recaptchalib.php');
  13. $privatekey = $verification_config->reCAPTCHA_private_key;
  14. $resp = recaptcha_check_answer ($privatekey,$_SERVER["REMOTE_ADDR"],$_POST["recaptcha_challenge_field"],$_POST["recaptcha_response_field"]);
  15. }
  16.  
  17.  
  18.  
  19. echo '
  20. <script type="text/javascript">    
  21. load_image= new Image(16,16);
  22. load_image.src="template/'.$core['config']['template'].'/images/load.gif";
  23.  
  24. function Ajax(div,id, page, form, append, data){
  25.  
  26.    document.getElementById(div).innerHTML = \'<img src="template/'.$core['config']['template'].'/images/load.gif" width="16" height="16"> Please wait...\';
  27. var veri = \'\';
  28. if( typeof(data) == "string")
  29. veri = data;
  30. else
  31. veri = $(form).serialize();
  32. $.ajax({
  33.   type: "POST",
  34.   url: page,
  35.   data: veri,
  36.   error: function(html)
  37.   {
  38.   alert("falied");
  39.   },
  40.   success: function(html)
  41.   {
  42.     if( typeof(append) == "boolean")
  43. $(id).append(html);
  44. else
  45. $(id).html(html);
  46.   }
  47.  });
  48.  return false;
  49. }
  50. </script>
  51.  
  52. <script type="text/javascript">
  53. function cs_ua_a(){
  54. if (document.sign_up_frm.userid.value.length < 4){
  55. alert(\'User ID, 4-10 characters\n(letters and numbers only)\');
  56. }else{
  57. uss = document.getElementById(\'userid\').value;
  58. url_p = "get.php?aA="+uss;
  59. Ajax(\'c_uss\',\'#c_uss\',url_p, null, \'data=c_uss\');
  60. }
  61.  
  62. }
  63.  
  64. function csm_uam_am(){
  65. if (document.sign_up_frm.email_address.value.length < 2){
  66. alert(\'Please enter an valid mail address \n(e.g: somebody@yahoo.com)\');
  67. }else{
  68. uss = document.getElementById(\'email_address\').value;
  69. url_p = "get.php?aMl="+uss;
  70. Ajax(\'c_mss\',\'#c_mss\',url_p, null, \'data=c_mss\');
  71. }
  72.  
  73. }
  74.  
  75. function parse_inputs(){
  76. if (document.sign_up_frm.userid.value.length < 4){
  77. alert(\'User ID, 4-12 characters\n(letters and numbers only)\');
  78. return false;
  79. }
  80.  
  81. if (document.sign_up_frm.password.value.length < 6){
  82. alert(\'Password, 6-12 characters\n(letters and numbers only, passwords are case-sensitive.)\');
  83. return false;
  84. }
  85.  
  86. if (document.sign_up_frm.confirm_password.value.length < 6){
  87. alert(\'Confirm Password, 6-12 characters\n(letters and numbers only, passwords are case-sensitive.)\');
  88. return false;
  89. }
  90. if (document.sign_up_frm.password.value != document.sign_up_frm.confirm_password.value){
  91. alert(\'Passwords did not match.\');
  92. return false;
  93. }
  94. ';
  95. if($get_config->pers_id_active == '1'){
  96. echo 'if (document.sign_up_frm.pers_id.value.length < '.$get_config->pers_id_length.'){
  97. alert(\'Please enter an valid Personal ID number \n(12 digits, numbers only.)\');
  98. return false;
  99. }';
  100. }
  101.  
  102. echo '
  103. if (document.sign_up_frm.email_address.value.length < 2){
  104. alert(\'Please enter an valid mail address \n(e.g: somebody@gmail.com)\');
  105. return false;
  106. }
  107. if (document.sign_up_frm.country.value ==  \'x\'){
  108. alert(\'Please select country.\');
  109. return false;
  110. }
  111. if ((document.sign_up_frm.gender[0].checked==false)&&(document.sign_up_frm.gender[1].checked==false)){
  112. alert(\'Please select gender.\');
  113. return false;
  114. }
  115. if (document.sign_up_frm.question.value ==  \'x\'){
  116. alert(\'Please select question.\');
  117. return false;
  118. }
  119. if (document.sign_up_frm.answer.value.length < 4){
  120. alert(\'Please enter the answer to your secret question.\n(letters and numbers only)\');
  121. return false;
  122. }';
  123. if($is_reCAPTCHA != '1'){
  124. echo ' if (document.sign_up_frm.verify_int.value.length < 6){
  125. alert(\'Please enter the code from verification image.\');
  126. return false;
  127. }';
  128.  
  129. }
  130.  
  131.  
  132. echo '
  133. if ((document.sign_up_frm.terms.checked==false)){
  134.    alert(\'Please read the Terms of Service.\');
  135.    return false;
  136. }
  137.  
  138. document.sign_up_frm.submit();
  139. }
  140.  
  141. </script>';
  142.  
  143.  
  144. if(isset($_POST['create_account'])){
  145.  
  146.  
  147.  
  148. require("engine/validate.php");
  149. $elems[] = array('name'=>'userid','label'=>text_register_error1, 'type'=>'text','uname'=>'true', 'required'=>true, 'len_min'=>4,'len_max'=>10, 'cont' =>'alpha');
  150.  
  151.  
  152. $elems[] = array('name'=>'password', 'label'=>text_register_error2, 'type'=>'text', 'required'=>true, 'len_min'=>6,'len_max'=>12, 'cont' =>'alpha');
  153. $elems[] = array('name'=>'confirm_password', 'label'=>text_register_error3,'type'=>'text', 'required'=>true, 'len_min'=>6,'len_max'=>12, 'cont' =>'alpha','equal'=> array('password'));
  154.  
  155. if($get_config->pers_id_active == '1'){
  156. $elems[] = array('name'=>'pers_id', 'label'=>str_replace("{pers_id_length}",$get_config->pers_id_length,text_register_error4),'type'=>'text', 'required'=>true, 'len_min'=>$get_config->pers_id_length,'len_max'=>$get_config->pers_id_length, 'cont' =>'digit');
  157. }
  158.  
  159. $elems[] = array('name'=>'email_address', 'label'=>text_register_error5, 'type'=>'text', 'required'=>true, 'len_max'=>50, 'cont' => 'email');
  160.  
  161. $elems[] = array('name'=>'country', 'label'=>text_register_error6,'type'=>'text', 'required'=>true, 'len_max'=>3, 'cont' =>'digit');
  162. $elems[] = array('name'=>'gender', 'label'=>text_register_error7,'type'=>'text', 'required'=>true, 'len_max'=>1, 'cont' =>'digit');
  163. $elems[] = array('name'=>'question', 'label'=>text_register_error8,'type'=>'text', 'required'=>true, 'len_max'=>2, 'cont' =>'digit');
  164.  
  165. $elems[] = array('name'=>'answer', 'label'=>text_register_error9,'type'=>'text', 'required'=>true, 'len_min'=>4,'len_max'=>20, 'cont' =>'alpha');
  166. $f = new FormValidator($elems);
  167. $err = $f->validate($_POST);
  168. if ( $err === true ) {
  169. $valid = $f->getValidElems();
  170. foreach ( $valid as $k => $v ) {
  171. if ( $valid[$k][0][1] == false ) {
  172. if ( empty($valid[$k][0][2]) ) {
  173. $msg_error = msg('0',$valid[$k][0][2]);
  174. }else{
  175. $msg_error = msg('0',$valid[$k][0][2]);
  176. }
  177. }
  178. }
  179. } else {
  180. $userid = safe_input($_POST['userid'],'');
  181. $password = safe_input($_POST['password'],'');
  182. $email = safe_input($_POST['email_address'],'\_\@\.\-');
  183. $country = safe_input($_POST['country'],'');
  184. $gender = safe_input($_POST['gender'],'');
  185. $question = safe_input($_POST['question'],'');
  186. $anaswer = safe_input($_POST['answer'],'');
  187. if($get_config->pers_id_active == '1'){
  188. $pid = safe_input($_POST['pers_id'],'');
  189. }else{
  190. $pid = trim($get_config->pers_id);
  191. }
  192.  
  193.  
  194. if($is_reCAPTCHA == '1'){
  195. if(!$resp->is_valid){
  196. $bot_check = '1';
  197. }
  198. }else{
  199. if($_SESSION['SID_code'] != md5($_POST['verify_int'])){
  200. $bot_check = '1';
  201. }
  202. }
  203.  
  204.  
  205. if($bot_check == '1'){
  206. $msg_error = msg('0',text_register_error10);
  207.  
  208. }else{
  209. if(check_account($userid) === true){
  210. $msg_error =  msg('0',text_register_error11);
  211. }else{
  212. if(check_mail($email) === true){
  213. $msg_error = msg('0',text_register_error12);
  214. }else{
  215. if($register_method == '1'){
  216. $confirmed = '1';
  217. $blocked = '0';
  218. $activation_need = '0';
  219. $activation_id = md5($userid);
  220. }elseif ($register_method == '2'){
  221. $confirmed = '0';
  222. $blocked = '1';
  223. $activation_need = '1';
  224. $activation_id = md5($userid);
  225. }
  226.  
  227. if($core['config']['md5'] == '1'){
  228. $make_me_acc = $core_db2->Execute("INSERT INTO MEMB_INFO (memb___id,memb__pwd,memb_name,sno__numb,bloc_code,ctl1_code,mail_chek,mail_addr,appl_days,modi_days,out__days,true_days,SecretQuestion,SecretAnswer,Country,Gender,confirmed,activation_id) VALUES (?,[dbo].[fn_md5](?,?),?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",array($userid,$password,$userid,'test',$pid,$blocked,'0','1',$email,date('m/d/Y'),date('m/d/Y'),'2005-01-03','2005-01-03',$question,$anaswer,$country,$gender,$confirmed,$activation_id));
  229. }elseif($core['config']['md5'] == '0'){
  230. $make_me_acc = $core_db2->Execute("INSERT INTO MEMB_INFO (memb___id,memb__pwd,memb_name,sno__numb,bloc_code,ctl1_code,mail_chek,mail_addr,appl_days,modi_days,out__days,true_days,SecretQuestion,SecretAnswer,Country,Gender,Confirmed,activation_id) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",array($userid,$password,'test',$pid,$blocked,'0','1',$email,date('m/d/Y'),date('m/d/Y'),'2005-01-03','2005-01-03',$question,$anaswer,$country,$gender,$confirmed,$activation_id));
  231. $make_me_acc_ = 1;
  232. /*
  233. $make_me_acc_ = $core_db2->Execute("INSERT INTO VI_CURR_INFO (ends_days,chek_code,used_time,memb___id,memb_name,memb_guid,sno__numb,Bill_Section,Bill_value,Bill_Hour,Surplus_Point,Surplus_Minute,Increase_Days ) VALUES ('2005','1',1234,?,?,1,'7','6','3','6','6',".date('m/d/Y').",'0' )", array($userid,'test'));
  234. */
  235. }
  236. if($make_me_acc){
  237. if($activation_need == '0'){
  238. $msg_error = msg('1',str_replace("{userid}",$userid,text_register_success1));
  239. $complete = 1;
  240. }elseif ($activation_need == '1'){
  241. /*
  242. require("engine/smtp.php");
  243. $smtp_config = simplexml_load_file('engine/config_mods/smtp_settings.xml');
  244. $mail = new SMTP($smtp_config->smtp_server,$smtp_config->smtp_username,$smtp_config->smtp_password);
  245. $header = $mail->make_header($core['config']['master_mail'],$email,'Account Activation for '.$core['config']['websitetitle'].'');
  246. $header .= "Content-Type: text/html; charset=\"iso-8859-1\" \r\n";
  247. $header .= "Content-Transfer-Encoding: 8bit \r\n";
  248. $header .= "MIME-Version: 1.0 \r\n";
  249. */
  250.  
  251.  
  252. $body = str_replace("{user_id}",$userid,mail_register_t1);
  253. $body = str_replace("{website_title}",$core['config']['websitetitle'],$body);
  254. $body = str_replace("{activation_url}",$core['config']['website_url'].'/'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.REGISTER_CMS_PAGE.'&activation_id='.$activation_id,$body);
  255. /*
  256.  
  257. $body = 'Dear '.$userid.',<br><br>
  258. Thank you for registering at the '.$core['config']['websitetitle'].'. Before we can activate your account one last step must be taken to complete your registration.<br><br>
  259. Please note - you must complete this last step to become a registered member. You will only need to visit this URL once to activate your account.<br>
  260. <br>
  261. To complete your registration, please visit this URL:<br>
  262. <a href="'.$core['config']['website_url'].'/'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.REGISTER_CMS_PAGE.'&activation_id='.$activation_id.'">'.$core['config']['website_url'].'/'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.REGISTER_CMS_PAGE.'&activation_id='.$activation_id.'</a>
  263. <br><br><br>
  264. All the best,<br>
  265. '.$core['config']['websitetitle'].' Team.';
  266. */
  267.  
  268.  
  269. if($core['debug'] == '1'){
  270. define('DISPLAY_XPM4_ERRORS', true);
  271. }else{
  272. define('DISPLAY_XPM4_ERRORS', false);
  273. }
  274.  
  275. $get_config = simplexml_load_file('engine/config_mods/smtp_settings.xml');
  276.  
  277. require("engine/mail.php");
  278. $m = new MAIL;
  279. $m->From($core['config']['master_mail']);
  280. $m->AddTo(trim($email));
  281. $m->Subject('Contact Us - '.$subject_set.'');
  282. $m->Html($body);
  283.  
  284. if($get_config->smtp_connection == 'none'){
  285. $c = $m->Connect(trim($get_config->smtp_server), intval($get_config->smtp_port), trim($get_config->smtp_username), trim($get_config->smtp_password)) or $smtp_connect_fail = '1';
  286. }else {
  287. $c = $m->Connect(trim($get_config->smtp_server), intval($get_config->smtp_port), trim($get_config->smtp_username), trim($get_config->smtp_password), trim($get_config->smtp_connection), 10, 'localhost', null, 'plain') or $smtp_connect_fail = '1';
  288. }
  289. if($smtp_connect_fail != '1'){
  290. if($m->Send($c)){
  291. $msg_error = msg('1',str_replace("{userid}",$userid,text_register_success2));
  292. }else{
  293. echo msg('0',text_register_error13);
  294. }
  295. }else {
  296. echo msg('0',text_register_error14);
  297. }
  298.  
  299.  
  300. }
  301. }else{
  302. $msg_error = msg('0',text_register_error15);
  303. }
  304. }
  305. }
  306. }
  307. }
  308. }
  309.  
  310. if($register_method == '2'){
  311. if(isset($_GET['activation_id'])){
  312. $activate_md5 = '1';
  313. if(empty($_GET['activation_id'])){
  314. header('Location: '.ROOT_INDEX.'');
  315. }else{
  316. $md5_link = safe_input($_GET['activation_id'],'');
  317. $check_link = $core_db2->Execute("Select confirmed,memb___id from MEMB_INFO where activation_id=?",array($md5_link));
  318. if($check_link->EOF){
  319. $msg_error = msg('0',text_register_error16);
  320. }else{
  321. if($check_link->fields[0] == '1'){
  322. $msg_error = msg('0',text_register_error17);
  323. }elseif ($check_link->fields[0] == '0'){
  324. $active_id = $core_db2->Execute("Update MEMB_INFO set bloc_code='0',confirmed='1' where activation_id=?",array($md5_link));
  325. if($active_id){
  326. $msg_error = msg('1',str_replace("{userid}",$check_link->fields[1],text_register_success3));
  327. }else {
  328. $msg_error = msg('0',text_register_error18);
  329. }
  330.  
  331. }
  332. }
  333. }
  334. }
  335.  
  336. echo ' <table  border="0" cellspacing="4" cellpadding="0"  align="center" width="100%" >
  337. <tr>';
  338. if($activate_md5 != 1){
  339. echo '<td align="left" class="curent_step" width="33%">1. '.text_register_complete_form.'</td>';
  340. }else{
  341. echo '<td align="left" class="step" width="33%">1. '.text_register_complete_form.'</td>';
  342. }
  343. if($activate_md5 == '1'){
  344. echo '<td align="left" class="curent_step"  width="33%">2. '.text_register_activate_account.'</td>';
  345. }else {
  346. echo '<td align="left" class="step"  width="33%">2. '.text_register_activate_account.'</td>';
  347. }
  348. echo '
  349. </tr>
  350. </table>';
  351.  
  352.  
  353.  
  354. }
  355. if($msg_error){
  356. echo $msg_error;
  357. }
  358. if($activate_md5 != '1'){
  359.  
  360. if($complete != '1'){
  361. $userid_post = htmlspecialchars($_POST['userid']);
  362. $p_id_post = htmlspecialchars($_POST['pers_id']);
  363. $email_post = htmlspecialchars($_POST['email_address']);
  364. $country_post = htmlspecialchars($_POST['country']);
  365. $question_post = htmlspecialchars($_POST['question']);
  366. $anaswer_post = htmlspecialchars($_POST['answer']);
  367. }
  368. echo '
  369. <form name="sign_up_frm" method="post" action="" id="sign_up_frm">
  370. <div id="a"></div>
  371. <table border="0" cellspacing="10" cellpadding="0" width="100%" style="margin-top: 10px;" align="center">
  372. <tr>
  373. <td colspan="3" align="left" class="iRg_line">'.text_register_t1.':</td>
  374. </tr>
  375. <tr>
  376. <td align="left" class="iRg_text" style="padding-left: 24px;" width="130">'.text_user_id.'</td>
  377. <td align="center" class="iRg_inf"><input class="iRg_input" type="text" name="userid" id="userid" maxlength="10" onclick="document.getElementById(\'c_uss\').innerHTML=\''.text_register_req1.'\'" value="'.$userid_post.'"> <a href="javascript:void(0)" onclick="cs_ua_a();">'.link_check_available.'</a></td>
  378. <td align="left" ><span class="iRg_inf"><div id="c_uss">'.text_register_req1.'</div></span></td>
  379. </tr>
  380. </tr>
  381. <tr>
  382. <td align="left" class="iRg_text"  style="padding-left: 24px;">'.text_password.'</td>
  383. <td align="left"><input class="iRg_input" type="password" name="password" id="password" maxlength="12"></td>
  384. <td align="left"><span class="iRg_inf">'.text_register_req2.'</span></td>
  385. </tr>
  386. <tr>
  387. <td align="left" class="iRg_text"  style="padding-left: 24px;">'.text_cnf_password.'</td>
  388. <td align="left"><input class="iRg_input" type="password" name="confirm_password" id="confirm_password" maxlength="12"> <span class="iRg_inf"></span></td>
  389. <td align="left"><span class="iRg_inf"><em>*'.text_register_req3.'</em></span></td>
  390. </tr>
  391. </tr>';
  392. if($get_config->pers_id_active == '1'){
  393. echo '<tr>
  394. <td colspan="3" align="left" class="iRg_line">'.text_register_t2.':</td>
  395. </tr>
  396. <tr>
  397. <td align="left" class="iRg_text"  style="padding-left: 24px;">'.text_personal_id.'</td>
  398. <td align="left"><input class="iRg_input" type="text" name="pers_id" id="pers_id" maxlength="'.$get_config->pers_id_length.'" value="'.$p_id_post.'"> <span class="iRg_inf"></span></td>
  399. <td align="left"><span class="iRg_inf"><span class="iRg_inf">'.text_register_req4.'</span></td>
  400. </tr>
  401. </tr>
  402. ';
  403. }
  404.  
  405. echo '
  406. <tr>
  407. <td colspan="3" align="left" class="iRg_line">'.text_register_t3.':</td>
  408. </tr>
  409. <tr>
  410. <td align="left" class="iRg_text"  style="padding-left: 24px;">'.text_email_address.'</td>
  411. <td align="center" class="iRg_inf"><input class="iRg_input" maxlength="50" type="text" name="email_address" id="email_address" onclick="document.getElementById(\'c_mss\').innerHTML=\''.text_register_req5.'\'" value="'.$email_post.'"> <a href="javascript:void(0)" onclick="csm_uam_am();">'.link_check_available.'</a></td>
  412. <td align="left"><span class="iRg_inf"><div id="c_mss">'.text_register_req5.'</div></span></td>
  413. </tr>
  414. <tr>
  415. <td colspan="3" align="left" class="iRg_line">'.text_register_t4.':</td>
  416. </tr>
  417. <tr>
  418. <td align="left" class="iRg_text"  style="padding-left: 24px;">'.text_country.'</td>
  419. <td align="left"><select name="country" class="iRg_input" id="country"><option value="x">--'.text_select.'</option>';
  420.  
  421.    $c = getcountry('list');
  422. foreach ($c as $cc => $v) {
  423. if($country_post == $cc){
  424. echo  '<option value="'.$cc.'" selected="selected">'.$v.'</option>';
  425. }else{
  426. echo  '<option value="'.$cc.'">'.$v.'</option>';
  427. }
  428.  
  429. }
  430.  
  431. echo '</select></td>
  432. <td align="left"></td>
  433. </tr>
  434. <tr>
  435. <td align="left" class="iRg_text"  style="padding-left: 24px;">'.text_gender.'</td>
  436. <td align="left" class="iRg_gender"><label><input name="gender" id="gender" type="radio" value="1">'.text_male.'</label>&nbsp;&nbsp;&nbsp;<label><input name="gender" type="radio" value="2" id="gender">'.text_female.'</label></td>
  437. <td align="left"></td>
  438. </tr>
  439. <tr>
  440. <td colspan="3" align="left" class="iRg_line">'.text_register_t5.':</td>
  441. </tr>
  442. <tr>
  443. <td align="left" class="iRg_text"  style="padding-left: 24px;">'.text_register_secret_question.'</td>
  444. <td align="left" colspan="2"><select name="question" id="question"  class="iRg_input"><option value="x">--'.text_select.'</option>
  445. ';
  446.    foreach ($secret_questions as $sq_id => $sq_name){
  447.     if($question_post == $sq_id){
  448.     echo '<option value="'.$sq_id.'" selected="selected">'.$sq_name.'</option>';
  449.     }else{
  450.     echo '<option value="'.$sq_id.'">'.$sq_name.'</option>';
  451.     }
  452.  
  453.  
  454.  
  455. }
  456.   echo '</select></td>
  457. <td align="left"></td>
  458. </tr>
  459. <tr>
  460. <td align="left" class="iRg_text"  style="padding-left: 24px;">'.text_register_answer_question.'</td>
  461. <td align="left" colspan="2"><input class="iRg_input" type="text" name="answer" id="answer" maxlength="20" value="'.$anaswer_post.'">&nbsp;&nbsp;&nbsp;'.text_register_req6.'</td>
  462. </tr>
  463. </tr>
  464. <tr>
  465. <td colspan="3" align="left" class="iRg_line">'.text_register_t6.':</td>
  466. </tr>
  467. <tr>
  468. <td align="left" colspan="3"> ';
  469.   if($is_reCAPTCHA == '1'){
  470.   $publickey = $verification_config->reCAPTCHA_public_key;
  471.   echo '<script type="text/javascript">
  472. var RecaptchaOptions = {
  473. theme : \''.$verification_config->reCAPTCHA_theme.'\'
  474. ,lang : \'en\'
  475. };
  476. </script>
  477. ';
  478.   echo recaptcha_get_html($publickey);
  479.  
  480.   }else{
  481.   echo '
  482. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  483. <tr>
  484. <td align="left"><img src="get.php?aI" border="0"></td>
  485. <td align="left" class="iRg_inf"><div align="left" style="padding-bottom: 4px; ">'.text_register_type_code.'</div><input class="iRg_input" type="text" name="verify_int" id="verify_int"></td>
  486. </tr>
  487. </table>'
  488. ;
  489.   }
  490.  echo '
  491. </td>
  492. </tr>
  493. </table>
  494.  
  495. <table border="0" cellspacing="10" cellpadding="0" width="100%"  align="center">
  496. <tr>
  497. <td align="center" colspan="2" class="iRg_terms_agree"><label><input type="checkbox" name="terms" value="1"> '.text_register_read_terms1.'</label> <a href="'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.TERMSOFSERVICE_CMS_PAGE.'" target="_blank">'.text_register_read_terms2.'</a>.<input type="hidden" name="create_account"></td>
  498. </tr>
  499. <tr>
  500. <td align="right"><input type="image" src="template/'.$core['config']['template'] .'/images/submit_btn.gif" onclick="return parse_inputs()"></td>
  501. <td align="left"><img src="template/'.$core['config']['template'].'/images/cancel_btn.gif" border="0" onclick="location.href=\''.$core['config']['website_url'].'\'"></td>
  502. </table>
  503. </form>';
  504. }
  505. }
  506. ?>

Desconozco php, si puedieran guiarme un poco se los agradecería, he probado con dreamviewer pero no me da resultados, Muchas gracias, saludos


En línea


Solicitudes de crack, keygen, serial solo a través de mensajes privados (PM)
Diabliyo


Desconectado Desconectado

Mensajes: 1.441


shell# _


Ver Perfil WWW
Re: Alinear formulario web
« Respuesta #1 en: 6 Marzo 2012, 17:15 pm »

En primera ese codigo esta larguisimo, nadie lo leera sinceramente....

Por otro lado, eso de usar TABLAS (<table>) ya no se usa mucho, por el exceso de codigo que genera (y peso web), sino que te recomiendo usar CSS. Asi que la primer tarea es hacer el formulario en CSS para que el codigo PHP sea mas facil de ver y poderte ayudar !...

Te dejo algo de código, OJO no es la respuesta, pero si es una muy buena noción de como debes hacerlo:

Código
  1. <html>
  2. <head>
  3. <style type="text/css" rel="stylesheet">
  4. <!--
  5. #formulario{border:solid 1px red;width:500px;overflow:hidden;margin:auto;padding:0px;}
  6. #formulario ul{width:500px;margin:auto;padding:0px;list-style:none;}
  7. #formulario li{margin:auto;padding:0px;float:left;}
  8. #formulario .texto{width:200px;border:solid 1px blue;}
  9. #formulario .input{width:300px;border:solid 1px green;}
  10. #formulario .largo{width:300px;border:solid 1px orange;}
  11. #formulario textarea {width:220px;}
  12. #formulario input {width:220px;}
  13. #formulario .boton {padding:3px 5px 3px 5px;}
  14. //-->
  15. </style>
  16. </head>
  17.  
  18. <body>
  19. <div id="formulario">
  20. <ul>
  21. <li class="texto">Nombre:</li>
  22. <li class="inputs"><input type="text" name="nombre"></li>
  23.  
  24. <li class="largo"><input type="submit" value="Enviar" class="boton"></li>
  25. </ul>
  26. </div>
  27. </body>
  28. </html>


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
alinear datos en un list box
Programación Visual Basic
melielectra 1 1,258 Último mensaje 11 Octubre 2006, 16:59 pm
por CeLaYa
Alinear botones con gtk
Programación C/C++
soez 1 1,754 Último mensaje 26 Mayo 2010, 00:50 am
por nicolas_cof
alinear capas
Desarrollo Web
jorgebeltranfuentes 4 2,134 Último mensaje 2 Noviembre 2011, 22:44 pm
por jorgebeltranfuentes
alinear texto
Programación C/C++
m@o_614 8 6,544 Último mensaje 10 Febrero 2013, 20:20 pm
por do-while
No consigo alinear y centrar bien los divs!
Desarrollo Web
kasail 4 1,898 Último mensaje 17 Enero 2014, 07:28 am
por kasail
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines