script cgi: how to pass a number to the input field into that form? [duplicate]
Possible Duplicate:
Post data and retrieve the response using PHP Curl?
It's a tracking from a delivery carrier...
The target url is the following: Link
Is it possible to directly pass the number to the page, instead of manually insert the tracking number? Thanks
A "low" level solution would be to use a html template library that replaces key words in an .html with values from you cgi application.
take a look at: http://www.algonet.se/~thunberg/template2doc
if that is not what you're looking for check out ajax to query your cgi and return a value - to use in your java script: http://www.w3schools.com/ajax/default.asp
Also , look at the jquery library for more elegant solutions: How can I call a CGI function within a javascript function?
精彩评论