• Hello,

    He is my competitor, and i want to make same like funtion, when user put information in input, and click on submit button, it will redirect to new page with short required data, how it will possible?

    we can create 301 funtion like making alot of targeted pages and redirect there, i want auto generated page with my short data.

    Share sources or code please!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • For which form do you want to add a custom redirect?

    On the page you shared, there is a “Track” button, but you want to track the “Submit” button.

    Here is the general answer on your query:

    Choose a WordPress Plugin:

    WPCargo: Consider this plugin specifically designed for cargo tracking features. It offers built-in form functionality and redirection options tailored for tracking purposes.
    https://www.ads-software.com/plugins/wpcargo/

    Contact Form 7: Popular, free, but requires manual setup.

    Use a plugin like “Contact Form 7 Redirection
    www.ads-software.com/plugins/wpcf7-redirect/
    contactform7.com/redirecting-to-another-url-after-submissions/

    Thread Starter picktracking

    (@picktracking)

    Hi milesweb

    I dont want detailed funtion, i just want when someone enter any number or word in form, new page open with new content, like in link i send above

    Moderator bcworkz

    (@bcworkz)

    You can generate dynamic content based on form input. There are two very general approaches. One is to do it client side with JavaScript or its relations like jQuery. The other is to do it server side with PHP.

    It likely doesn’t matter much from a feasibility standpoint which way you choose, use whichever approach your’re most comfortable with. But if your client side script needs data from the server, you may end up needing some PHP code as well. Unless the needed data can be gotten from the REST API, which is very likely the case.

    The form and the generated page could actually be the same page. If no form data had been submitted, the page might only be a blank form. If form data is submitted to the same page, use the data to generate dynamic content.

    Thread Starter picktracking

    (@picktracking)

    Hi bcworkz,

    I got you little bit, i want easy and fast way via chat gpt 4 help, explain please, i just want when someone search anything in form, new page open with my limited article i will share in codes, and remains header and footer.

    can you help please.

    You can access the chat via gpt here – https://chat.openai.com/share/c6bb4471-6b7d-4c07-a0c2-bd6cb53b7236. I have copy paste the issue here and the ChatGPT has gave us a quick solution with form and redirect if that is what you are looking for.

    Moderator bcworkz

    (@bcworkz)

    ChatGPT is sort of correct, but there is no need to redirect and exit. It can all be done on the same page.

    It also doesn’t address how you would make the necessary custom template for a specific page. The answer here partly depends on whether you use a classic theme or a block theme. The template must be named a particular way according to template hierarchy (scroll down to page hierarchy after the jump).

    The ChatGPT code merely echoes what was input in the form. That’s a start, but you likely want to do something more with the input and generate dynamic content based on it. You’ve not said what this is, but maybe you can manage that on your own once you have the basics working.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Need help to make simple form funtion’ is closed to new replies.