Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3680914
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:37:58+00:00 2026-05-19T03:37:58+00:00

I need to change a form so that instead of reloading the page after

  • 0

I need to change a form so that instead of reloading the page after submitting it, it redirects the user to another page.

This is the form I’m talking about:

<form class="questionform" name="questionform-0" id="questionform-0">

<textarea class="question-box" cols="12" rows="5"  id="question-box-' . $questionformid . '" name="title" type="text" maxlength="200" size="28"></textarea>

<input type="text" class="ubicacion" value="" name="question">

<input  type="button" name="ask" value="Publicar" onclick="askquestion('questionform-0'); window.location.reload(true);">

I want to remove window.location.reload and change it for something that redirects users to the page their comment will appear.

The problem is that it’s not simply a static. So I have no idea how to do it. The URL I want to send users to is:

http://www.chusmix.com/s?=(content of the second field)

How do I do it? Anyway thanks for any info or whatever that points me on the right direction. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T03:37:58+00:00Added an answer on May 19, 2026 at 3:37 am

    There is no need to use javascript for this purpose. You only need to set the action attribute of the form tag. It tells where the form information will be sent. So in your case it will be:

    <form action="http://www.chusmix.com/s">
    

    Also if you want to send the variables through the URL like: http://www.chusmix.com/s?variable=someValue

    You need to set the method attribute as get so it will look like this:

    <form action="http://www.chusmix.com/s" method="get">
    

    If you don’t want the data sent to be visible set the method to post, note that there are different advantages for each method so i recommend you read more about this if this form is an vital part of your webpage.

    The variable names that appear in the url http://domain.com?**variable**= will depend on the inputs name <input type="text" name="**variable**" />

    For more information on how forms work you can go to:

    http://www.w3schools.com/TAGS/tag_form.asp
    http://www.tizag.com/phpT/forms.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to change testAppGUI's (testAppGUI is a form) visible property from another function.
I need change first image in Galleria fullscreen theme ( link ) after Galleria.run().
I need change background of all text that have two spaces from the start
I have this situation: $(#button).toggle(function(){ $(#window).animate({top:'0%'},1000); },function(){ $(#window).animate({top:'-100%'},1000); }); but I need change it
I need to change table name from lowercase to uppercase but using this statement
I have this tiny script for now that checks if any change is made
I've got a user page, where user can change his settings ( users#edit ).
Let's say that I have a form which runs a stored procedure. This stored
i need change color of SystemTray.ProgressIndicator color, how i can do it? I tried
I have database, and in one the tables I need change the values of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.