Passing form data thru masked URL? *SOLVED*

Post your Click counter digestion problems here
Post Reply
damienwc
Posts: 7
Joined: Mon Jun 05, 2006 2:53 am

Passing form data thru masked URL? *SOLVED*

Post 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?
Last edited by damienwc on Tue Jun 06, 2006 9:40 am, edited 1 time in total.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Nope, CCount will not pass any data entered in forms so you can't use it for forms.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
damienwc
Posts: 7
Joined: Mon Jun 05, 2006 2:53 am

Post 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.
Post Reply