cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Img as submit

From: Thorsten Hamann <thorsten.hamann_at_crt.de>
Date: Tue, 15 Jun 2004 10:37:59 +0200

At 10:11 15.06.2004, you wrote:
>Hi I have an image on a form <input type="image" src="..." width=34
>heigt=11>. It doesnt have a name or anything else.
>What should post for this? Should I post x&y coordinates like x=3&y=5?
>Thanks for your interest

I don't want to sound rude, but you should really get a clue about HTML and
forms before using something as complex as cURL. "Will it POST my
<textarea> just like a normal <input>" is a question you could have figured
out simply by *trying* it, for God's sake.

You might want to read Eric S. Raymond's informative article "How To Ask
Questions The Smart Way" which you can find at
<http://www.catb.org/~esr/faqs/smart-questions.html>. Here is an excerpt:

>Before asking a technical question by email, or in a newsgroup, or on a
>website chat board, do the following:
>
> 1. Try to find an answer by searching the Web.
> 2. Try to find an answer by reading the manual.
> 3. Try to find an answer by reading a FAQ.
> 4. Try to find an answer by inspection or experimentation.
> 5. Try to find an answer by asking a skilled friend.
> 6. If you are a programmer, try to find an answer by reading the
> source code.
>
>When you ask your question, display the fact that you have done these
>things first; this will help establish that you're not being a lazy sponge
>and wasting people's time.

I would not go as far and say doing 1 through 4 is enough, but you don't
even do that.

Concerning your <input type="image"> question, this behaves just like a
submit button. If you want to return the coordinates of the mouse click,
image maps are the answer to your problem. None of this has *anything* to
do with cURL. Google is your friend.

Thorsten

-- 
hackers do it with fewer instructions
Received on 2004-06-15