HighDots Forums  

Redirect to URL after Submit

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss Redirect to URL after Submit in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Camile
 
Posts: n/a

Default Redirect to URL after Submit - 12-22-2005 , 10:59 AM






I'm trying to redirect a pop form's URL after the Submit.

Does anyone know where to find any examples?

Thanks all.



Reply With Quote
  #2  
Old   
phpSmurf
 
Posts: n/a

Default Re: Redirect to URL after Submit - 12-24-2005 , 02:23 AM






Put this where the submition is done.

<script language="javascript">
document.location.href='page.html';
</script>

I hope it helps.


Reply With Quote
  #3  
Old   
phpSmurf
 
Posts: n/a

Default Re: Redirect to URL after Submit - 12-26-2005 , 07:37 PM



In test.php place this as the last line in your code where your
parameters are being processed:

print "<script
language=\"javascript\">document.location.href='pa ge.html';</script>";

Like this you can use your javascript in PHP. It should do the job
because im using it for my database update,insert and delete in my CMS.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.