How to make a JavaScript or PHP conditionally redirect? -


मूल रूप से पेज यूआरएल के माध्यम से varaibles प्राप्त करता है http://sitename.com?c1=xxx&c2=yyy

यदि मैं c1 से कम 40 से कम है और एक मुख्य लिंक पर जाना चाहता हूं, तो मैं एक लिंक पर पुनः पुनर्निर्देशित करना चाहता हूं।

मैं इस तरह से कुछ कैसे काम कर सकता हूँ?

आप उपयोग php का उपयोग < पूर्व> हैडर ("स्थान: theurltoredirectto.com");

जावास्क्रिप्ट समाधान होगा

  window.location = "http://www.theurltoredirectto.com/"    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

ruby on rails - Convert a Activerecord result with has_one associations into a single hash per record -

javascript - Read complete data from stream from onMessage -