|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Java form redirection.
I've produced a standard form within dreamweaver and using the PHP Mail() command, got this to send the contents to my inbox.
Sorted. The problem comes in trying to code it in such a way that it redirects to a thankyou page after the form is submitted. Ive tried using PHP to no success, so im turing to Java Script to try and help out. I'm using the folowing to redirec. Its a bit of HTML with a cut and pasted onblur = "doVerify()" bit. The java script then calls the command. <BR /> <INPUT TYPE = "submit" onblur = "doVerify()" NAME = "submit" VALUE = "Submit Form"/> <BR /> <script language="JavaScript"> function doVerify() { location.href = "http://www.turkeybrain.co.uk/thanks.htm" } </script> Now this script works fine on my Apple Mac running OSX 10.3, but refuses to work on my PC running XP. Not having a clue about javascript im a little unsure where the error lies and how it runs on each different platform. Any assistance would be greatly appreciated. |
|
#2
|
||||
|
||||
|
What have you done in the PHP code? What's the error?
|
|
#3
|
|||
|
|||
|
Java redirection
The PHP/HTML code is all as my other post under the PHP forum which you have kindly replied to.
The Java Script is just another attempt at trying to get it to work. |
|
#4
|
|||
|
|||
|
Moving to the appropriate forums... Please note, Java and JavaScript are not the same.
Thanks! |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Java form redirection. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|