Skip to main content
Known Participant
July 10, 2009
Answered

SUBMIT and reset url's

  • July 10, 2009
  • 1 reply
  • 629 views

Hi

I have a submit buton which refeshes my page.

However when I click it my url string stays the same and doesn't revert back to start - what is my setting for this?

<form action="" method="post" target="_self" >

blah blah

<input  name="submit" value="submit" type="submit" />
</form>

If my url is index.php?name=Sam when I click Submit it remains index.php?name=Samand my recordset picks it back up again.

I need it to go back to

index.php when I click Submit button.

Any ideas please?

S

This topic has been closed for replies.
Correct answer DwFAQ

If my url is index.php?name=Sam when I click Submit it remains index.php?name=Sam and my recordset picks it back up again.

I need it to go back to

index.php when I click Submit button.

change

action=""

to

action="index.php"

1 reply

DwFAQ
DwFAQCorrect answer
Participating Frequently
July 10, 2009

If my url is index.php?name=Sam when I click Submit it remains index.php?name=Sam and my recordset picks it back up again.

I need it to go back to

index.php when I click Submit button.

change

action=""

to

action="index.php"
w424637Author
Known Participant
July 10, 2009

thanks for the rapid response

DwFAQ
Participating Frequently
July 10, 2009

also remove the target attribute. There's an extra space after the closing form chevron.

It should be

<form action="index.php" method="post">