Jump to content
php.lv forumi

Gļuks ar IE..Web page has expired uz submit procesa


Cibiņš

Recommended Posts

Tātad lieta ada ka uz Firefoksha kā jau vienmēr viss ir ok, bet nau saprotams gļuks kapēc IE izmet erroru "Webpage has expired"..

 

forma.php

 

<form method="post" id="formaaaaaaaa" name="" action="?pg=contact&op=sendrequest#contacts">
         	        <table width="100%" border="0" cellspacing="0" cellpadding="0">
         	          <tr>
         	            <td><label>Jūsu e-pasts
         	                <input name="email" type="text" id="askEmail" />
      	                </label></td>
      	              </tr>
         	          <tr>
         	            <td><label>Jūsu ziņojums vai jautājums
         	                <textarea name="request" id="ask" cols="" rows=""></textarea>
         	            </label></td>
      	              </tr>
         	          <tr>
         	            <td align="center"><label>
         	              <input type="submit" name="button" id="buttonAsk" value="Submit" />
      	                </label></td>
      	              </tr>
      	            </table>
      	          </form>

 

processor.php

 

if ($op == 'sendrequest'){
	if(!$sendermail || !$senderrequest){ 
			echo '<script type="text/javascript">$.prompt("Nav aizpildīti visi lauki!",{ buttons: { Ok: true } })</script>';
			include 'forma.php';}
			else {echo '<script type="text/javascript">$.prompt("Super, malacis!",{ buttons: { Ok: true } })</script>';
			include 'forma.php';}} 
			else { 
include 'forma.php';
}

Edited by Cibiņš
Link to comment
Share on other sites

kurā brīdī izmet to "erroru"? pirmo reizi ieraksti browserī adresi, ver vaļā formu un uzreiz expired?

 

Nope. Nododot formu apstrādei ar Submit pogu. Pof vai atstāj tukšu to formu vai nē. Šā vai tā - tas expired, nu kā internet explorer izmet to erroru savā dizainā, lapā utt.

Edited by Cibiņš
Link to comment
Share on other sites

Es tā sapratu taga ka vaina ir kkur šeit jquerijaa:

 

<script type="text/javascript">$.prompt("Nav aizpildīti visi lauki!",{ buttons: { Ok: true } })</script>';

 

vai arii otrajaa, jo ja liek $errormessage = 'blabla'; ta viss notiek..tik velns zin kur tajā impromptu fīčā ir jāmaina lai strādā arī uz ie..

Edited by Cibiņš
Link to comment
Share on other sites

vai tad bez tā js tas session expired pazūd?

 

Jap. Kad palaiž ar $errormessage jquery vietā ta tas gļuks nau un viss nostrādā. Kad ieliek to sūdu ta akal tas gļuks. Uz Firefokša viss super uz IE nee.. :(

Edited by Cibiņš
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...