How to read URI querry / HTML URL parameter just with Java Script without any PHP? And how to attach the result to a new link with Java Script?
Hi. As PHP is not supported maybe you can help me on this...
I want to integrate a very specific webshop app into my website. At one page of my site there is a little search-box-form (integrated via iframe) which sends the values via URL parameters to a search-result-site at my website. At this search-result-site there again I have to call an iframe from the webshop. The iframe-source-link of this webshop-site should include the search querries submitted from little search-box-form as URI-querry / URL-parameter.
With PHP my search-result-site looks like the following code. (This code works with PHP). But in my specific case I can´t use PHP. I have to do it with Java Script and plain HTML.
How can I do this with Java Script / without PHP? Is it possible? How to read the URI querry and attach it to the new iframe source link?
- <html>
- <body>
- <?
- $params="";
- foreach($_POST as $name=>$value)
- {
- //we propagate all parameters to the search results except the controller page parameter
- if ($name!="controllerPage")
- {
- $params=$params.$name."=".$value."&";
- }
- }
- ?>
- <h1>This is a result page</h1>
- <iframe name=""
- src="http://www.fakewebshop.com/result.html?<? echo $params; ?>"
- width="600" height="1070" scrolling="auto" align="top" frameborder="0">
- </iframe>
- </body>
- </html>
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Sticky Posts
Unveiling Zoho Sites 2.0 - A new dimension in website building
Dear Zoho Sites Users, We are thrilled to announce the launch of Zoho Sites 2.0 today! This refresh represents a significant step forward in the capabilities of Zoho Sites and is crucial for creating a lasting and positive impact on our customers' businesses.
Website Accessibility
I have two sites created in Zoho Sites which are both live. Some questions: 1. Are any of the template themes WCAG 2.1 AA compliant? 2. How do I change the format of a sub-heading in the header section? 3. Is there any way to add focus indication for
Visual Editor Webinar
Join our FREE live webinar to learn how to use the Zoho Sites Visual Editor to easily design your website. Our product specialist will demonstrate how this tool will help you customize your website to suit your requirements. Register here: https://www.zoho.com/sites/webinars/
SEO for your Zoho Sites Website
Join our live webinar to learn how to use Zoho Sites' SEO tools to boost your website's ranking. Our product specialist will demonstrate everything you need to know about optimizing your web pages to make them search engine friendly. Register here for free: https://www.zoho.com/sites/webinars/
Zoho Sites Webinar | Integrations
Join our FREE live webinar to learn how to integrate both Zoho and third-party products with your Zoho Sites website. Our product expert will demonstrate how to use these integrations to grow, manage, and retain the customers you bring in. Learn how to take your business forward and build stunningly robust and efficient websites. Register here: https://www.zoho.com/sites/webinars/
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.