iT邦幫忙

0

html php 響應式網頁轉址變慢

各位大大您好
想請問這段語法,我轉址時用桌機可以正常轉址,但若在手機版網業轉址會先跑出此表單不安全確認要送出嗎?,按確認後,會跑很慢,整個卡住
要按重新整理才會跑,想請問這是甚麼問題呢? 謝謝!
主要是轉以下這行

<input type="hidden" name="reg_failpage"  value=<?php echo '"http://www.xx.xxx.edu.tw/'.$NewString[1].'/Pay/fP.php?para1='.$sno.'&para2=T"'; ?>>

這是完整語法

<form action="https://payment.nsysu.edu.tw/rcvserv/rcv.asp" method="post" name="payment"> 		
<input type="hidden" name="paytype" value="2014">			
<input type="hidden" name="uname"   value=<?php echo '"'.$uname.'"'; ?>>	
<input type="hidden" name="uid"     value=<?php echo '"'.$UID.'"'; ?>>		
<input type="hidden" name="amount"  value=<?php echo '"'.$TotalFee.'"'; ?>>
<input type="hidden" name="currency" value=<?php echo '"'.$tcurrency.'"'; ?>>
<input type="hidden" name="TRPayType" value=<?php echo'"'.$TRPayType.'"'; ?>>
<input type="hidden" name="atm_succpage"  value=<?php echo '"http://www.xx.xxx.edu.tw/'.$NewString[1].'/Pay/as.asp?para1='.$sno.'&para2=A"'; ?>>
<input type="hidden" name="reg_failpage"  value=<?php echo '"http://www.xx.xxx.edu.tw/'.$NewString[1].'/Pay/fP.php?para1='.$sno.'&para2=T"'; ?>>
</form>
看更多先前的討論...收起先前的討論...
柯柯 iT邦新手 3 級 ‧ 2018-09-28 10:38:15 檢舉
其實可以 value="<?=$uname?>" 這樣放

是把網址送過去在處理轉址嗎?
而且這段沒看到RWD 應該是說 手機網頁轉址變慢才對~
mayyola iT邦研究生 2 級 ‧ 2018-09-28 11:09:33 檢舉
value="<?=$uname?>"
好像不行,語法好像怪怪的,圖檔如下
https://ppt.cc/fLVj0x
那想請問這行要怎麼改呢?
<input type="hidden" name="reg_failpage" value=<?php echo '"http://www.xx.xxx.edu.tw/'.$NewString[1].'/Pay/fP.php?para1='.$sno.'&para2=T"'; ?>>
Homura iT邦高手 1 級 ‧ 2018-09-28 11:22:15 檢舉
<?=$uname?> 不行是因為你沒開啟短標記語法設定....
http://php.net/manual/zh/ini.core.php#ini.short-open-tag
柯柯 iT邦新手 3 級 ‧ 2018-09-28 11:33:34 檢舉
<? $reg_url = 'http://www.xx.xxx.edu.tw/'.$NewString[1].'/Pay/fP.php?para1='.$sno.'&para2=T'; ?>
<input type="hidden" name="reg_failpage" value="<?=$reg_url?>">
這樣 HTML 會比較簡潔 有問題 改PHP內變數就可以了

重點是 速度變慢的問題 哈哈哈 我想應該是網速的關係吧...吧!?
mayyola iT邦研究生 2 級 ‧ 2018-09-28 11:55:08 檢舉
謝謝,剛剛查好像是瀏覽器Safari的問題,因為是從https跳到http網頁..會跑出"此表單不安全確認要送出嗎?"按確認後會停滯
這個問題我碰過,大多是ios系統的才會這樣。

其實問題很簡單。只是https跟http的問題。

在https要用表單傳送http連結。會被其系統認定為不安全發送。
變慢則是他們不知道在運行什麼。但的確有時會發生變慢的問題。

我也是曾經有碰過該問題才知道的。
柯柯 iT邦新手 3 級 ‧ 2018-10-01 10:50:57 檢舉
要驗證憑證 所以有要運算憑證那塊才變慢的吧
mayyola iT邦研究生 2 級 ‧ 2018-10-01 12:30:47 檢舉
我是把連結的https拿掉s就可以~但這是偷機取巧的作法@_@
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答