system — 2011-01-11T20:04:51-05:00 — #1
I basically have a form that adds the submission to Google groups but instead of the default google groups page I want it to redirect back to my site.
Here is a sample of my code:
<form id="info" method="post" onSubmit="window.location='http://mysite.com'" action="http://groups.google.com/group/mygroup/boxsubscribe">
<input type="hidden" name="hl" value="en">
<input id="uremail" type="text" value="email" name="email" size="29"/>
<input type="submit" id="usent" name="submit" value="Send" />
I've also tried adding this:
<input type="hidden" name="redirect" value="www.mysite.com">
thanks in advance for any help.
paul_wilkins — 2011-01-11T20:22:39-05:00 — #2
Do you still want the form to be submitted to google groups, as well as having the person being redirected back to your site?
system — 2011-01-11T20:24:48-05:00 — #3
Yes, basically it adds a member to the google group but I don't want to see the ugly google pages..
paul_wilkins — 2011-01-11T20:33:22-05:00 — #4
One way is to use the onsubmit event to open a new window to your web site. That's normally the best way because then the person can still go back and find out about the group they were subscribed to.
If you want to hide things further than that, you're going to be forced to do things asynchronously, by using some AJAX techniques to submit the form, and on a successful submission to then navigate to a different page.