...

View Full Version : Need help auto-selecting values in form



soma56
06-19-2012, 07:09 PM
My Javascript sucks. I'm a PHP programmer. I'm frequently going to this site:

http://www.wontbebeat.ca

It requires that I choose a city and store first before redirecting me. I'm using this site multiple times daily and the form is in javascript. Is there a way to automatically input a the city and store so that I don't have to do it manually every time? Can someone point me in the right direction?

WolfShade
06-19-2012, 07:38 PM
Most modern browsers have the option of remembering this information for you. Otherwise, it's (usually) up to the developer to use something like cookies to remember that information.

soma56
06-19-2012, 07:42 PM
I'm using PHP cURL though - not a browser. I ended using a FF addon to extract my cookies as a text file. I was then able to post the cookies using cURL to get the data. I just have to figure out how to extend the expiry but this is a good temporary solution.



# Netscape HTTP Cookie File
# http://www.netscape.com/newsref/std/cookie_spec.html
# This is a generated file! Do not edit.

www.nofrills.ca FALSE / FALSE 0 JSESSIONID HxsJ4xO9gfveWUfU40SlJw**.node13
www.nofrills.ca FALSE / FALSE 0 ATG_SESSION_ID HxsJ4xO9gfveWUfU40SlJw**.node13
.addthis.com TRUE / FALSE 1403201879 uid 4fe0c257f62b3f1d
.addthis.com TRUE / FALSE 1403201879 uvc 1%7C25
www.wontbebeat.ca FALSE / FALSE 0 _app_session 9c75386884e583326f3fe3246d2ef15a
.wontbebeat.ca TRUE / FALSE 1403201879 __utma 203036695.1366087950.1340129872.1340129872.1340129872.1
.wontbebeat.ca TRUE / FALSE 1340131679 __utmb 203036695.2.10.1340129872
.wontbebeat.ca TRUE / FALSE 0 __utmc 203036695
.wontbebeat.ca TRUE / FALSE 1355897879 __utmz 203036695.1340129872.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
www.wontbebeat.ca FALSE / FALSE 1403201879 __atuvc 1%7C25



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum