Voodoo Jai Posted September 6, 2008 Share Posted September 6, 2008 I have a form that passes a value to the next page, but I also want to add this value into a URL variable as well. How would I do this. Manythanks VoodooJai Quote Link to comment https://forums.phpfreaks.com/topic/123056-solved-form-value-into-a-url-variable/ Share on other sites More sharing options...
kenrbnsn Posted September 6, 2008 Share Posted September 6, 2008 Why? Ken Quote Link to comment https://forums.phpfreaks.com/topic/123056-solved-form-value-into-a-url-variable/#findComment-635463 Share on other sites More sharing options...
Voodoo Jai Posted September 6, 2008 Author Share Posted September 6, 2008 I have a stats page that show the URL passed from page to page. this would just give me more details without having to investigate further. VoodooJai Quote Link to comment https://forums.phpfreaks.com/topic/123056-solved-form-value-into-a-url-variable/#findComment-635486 Share on other sites More sharing options...
nuttycoder Posted September 7, 2008 Share Posted September 7, 2008 you could post your form via get that would post the contents of the form into the address bar so it might not be the best approach, if you just need the page they came from i guess you could use $page = $_SERVER['HTTP_REFERER']; then $page should contain the page they came from. You might have to strip it a bit as it may contain directories as well depending on where is came from. Quote Link to comment https://forums.phpfreaks.com/topic/123056-solved-form-value-into-a-url-variable/#findComment-635586 Share on other sites More sharing options...
Voodoo Jai Posted September 7, 2008 Author Share Posted September 7, 2008 Thats great thank you very much. VoodooJai Quote Link to comment https://forums.phpfreaks.com/topic/123056-solved-form-value-into-a-url-variable/#findComment-635715 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.