/    Sign up×
Community /Pin to ProfileBookmark

using css rollover image

i am using a css rollover image in my html form. when the image is clicked i want a servlet to be invoked which would do the processing. how can i invoke the servlet so that it is called once the image is used.plz give an eg if possible.

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@deraJan 03.2006 — what you mean by a servlet what type such as a cgi or php to handel it, then in the [code=php]
method="GET/POST" action="/phpexample.php"
then in phpexample.php
<?php
extract($_POST);

print($formvaluenamehere);
//or go to a function
samplefunction();
?>
help?
as for the image to complete the form, you need to do this in javascript, i cant remember off the top of my head the script it would be something with oncick="calltoafunciton()"
function would say that it is a form.submit value.
×

Success!

Help @jyoti spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...