Pentiums Posted February 29, 2008 Report Share Posted February 29, 2008 <?php echo "<form name='loginform' method='post' action='".FUSION_SELF."'> <input type='text' value='lietotājvārds' name='user_name' class='inp' style='width:100px' "; ?> onfocus="if (this.value == 'lietotājvārds') {this.value = '';};"><br><?php echo "<input type='password' value='parole' name='user_pass' class='inp' style='width:100px' "; ?> onfocus="if (this.value == 'parole') {this.value = '';};"><br> <?php echo "<input type='image' src='".BASEDIR."index_files/header_submit_btn.png' name='login' alt='Iežurnalēties' value='submit'> <img src='".BASEDIR."index_files/header_mid_btn.png'><a href='".BASEDIR."registracija.php'><img src='".BASEDIR."index_files/header_reg_btn.png' border='0'></a> <input type='hidden' name='remember_me' checked='checked' value='y'> </form>"; ?> Kas te par problēmu? uz firefox var ielogoties, bet uz IE nospiežit "Ienākt" pogu viņš itkā uztaisa tikai refresh lapai Link to comment Share on other sites More sharing options...
andrisp Posted February 29, 2008 Report Share Posted February 29, 2008 Ļoti iespējams, ka php kods pārbauda vai eksistē $_POST['login'], bet IE, ja ir <input type="image"...> nesūta šādu parametru līdzi. Labāk izmanto kādu hidden lauku pēc kā atšķirt vai nosūtīta login forma vai arī pārbaudi $_POST['login_x'] (Pārlūki, ja ir nospiests uz <input type="image" ...>, sūta līdzi koordinātas, kur nospiests uz attēla). Link to comment Share on other sites More sharing options...
Pentiums Posted February 29, 2008 Author Report Share Posted February 29, 2008 tikko pārbaidīju, uzliku attēla vietā parasto <input type='submit' name='login' value='Iežurnalēties'> pogu tad viss strādā, kā man dabūt lai strādā ar image? :( Link to comment Share on other sites More sharing options...
andrisp Posted February 29, 2008 Report Share Posted February 29, 2008 Es taču tev tikko pastāstīju! Link to comment Share on other sites More sharing options...
Pentiums Posted February 29, 2008 Author Report Share Posted February 29, 2008 (edited) neesmu tā īsti ņēmies ar hidden forms EDIT: Tomēr sapratu kā :) aiz pogas pieliku <input type='hidden' name='login' value='Iežurnalēties'> un viss sanāca :) Edited February 29, 2008 by Pentiums Link to comment Share on other sites More sharing options...
andrisp Posted February 29, 2008 Report Share Posted February 29, 2008 To value vari norādīt vienkārši 1. Link to comment Share on other sites More sharing options...
Recommended Posts