Page 1 of 1

Passing form data thru masked URL? *SOLVED*

Posted: Mon Jun 05, 2006 3:10 am
by damienwc
Script URL: http://www.arkansas-underground.com/
Version of script: newest online
Version of PHP: 4
Hosting company: www.ixwebhosting.com
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try:

Write your message below:

I am trying to count clicks on a form submit button that passes the form data to a URL at MySpace.com that creates a bulletin ready for posting. When I use the CCount masked url in place of the original URL for the Form ACTION the data is not passed thru and there is no subject or body in the bulletin?

Posted: Mon Jun 05, 2006 2:39 pm
by Klemen
Nope, CCount will not pass any data entered in forms so you can't use it for forms.

Posted: Tue Jun 06, 2006 9:54 am
by damienwc
Just wanted to let everyone know I found a solution to my problem just in case someone else was having a similar issue.

After a long day of intense brainstorming on how I could make this work, I quit being so complicated and started thinking simple! Instead of having a button that submitted the form data, I completely removed the form and linked the button to a static HTML page which included my form. And then I used

Code: Select all

<body onLoad="document.formname.submit()">
to submit the form automatically as soon as the page is done loading. And then used

Code: Select all

<meta http-equiv="refresh" content="0;URL=http://www.yourhost.com/redirectpage.html">
to redirect to the page where the button is located. So the viewer it appears as though they have never left that page.