Form Please Help - urgent

P

PRZEMO

Hi

I got a problem witch form

<form name="name">
<input type="text" name="name2">
<input type=""text" name="name1"
</form>

Is this possible:

- input name2 is no visability form www
or
- when I send form to asp file I set that value of name2 = add (every time
when I send him)

Best Regards
Przemo

P.S Sory but my english is not good.
 
S

Steve Pugh

PRZEMO said:
I got a problem witch form

<form name="name">

The action attribute is required.
<input type="text" name="name2">
<input type=""text" name="name1"

Should be type="text" not type=""text".
And you're missing the closing > at the end.
</form>

Is this possible:

- input name2 is no visability form www

I can't see anything wrong with name2.
name1 may not display because of the errors mentioned above.
or
- when I send form to asp file I set that value of name2 = add (every time
when I send him)

Sorry, I don't understand what you mean.

As ever a URL helps.

Steve
 
K

Kris

PRZEMO said:
I got a problem witch form

<form name="name">
<input type="text" name="name2">
<input type=""text" name="name1"
</form>

Is this possible:

- input name2 is no visability form www
or
- when I send form to asp file I set that value of name2 = add (every time
when I send him)

<form action="handler.asp" method="get">

<label for="name1">Your name:</label>
<input type="text" name="name1" id="name1">

<input type="hidden" name="name2" value="add">

</form>

I suggest you take a fresh dive into form subelements.
<http://www.w3.org/TR/html4/interact/forms.html>

Please mind the correctness of your code when pasting to Usenet. Rather,
supply a URL where the working code can be found. You can check the
syntatical correctness of your HTML at <http://validator.w3.org/>.
 
P

PRZEMO

<form name="ilosc" method="get" action="sklep.asp" target="L2" >
<input type="text" name="action" value="dodaj" size="1" readonly>
<input type="text" name="pozycja" value="<%= Rekord("tw_idTowaru")%>"
readonly size="1">
<input type="text" name="ilosc" id="ilosc" value="ovdje upisite kolicinu"
maxlength="5">
<input type="submit" value="PRIHVATITE" onclick="history.go(-1)"></form>

That is html code of my form. I would like to send something like that
sklep.asp?action=dodaj&pozycja=tw_idTowaru&ilosc=.....

Every thing in this form working ok. But When I open form.html I see 3 input
text. I would like to see only one - name "ilosc". Sorry my earlier post was
not complete.

Best regards
Przemo
 
C

chris

PRZEMO said:
Hi

I got a problem witch form

<form name="name">
<input type="text" name="name2">
<input type=""text" name="name1"
</form>

Is this possible:

- input name2 is no visability form www
or
- when I send form to asp file I set that value of name2 = add (every time
when I send him)

Best Regards
Przemo

If I understand you right you want the name2 field not appearing in the form
but want the variable passing forward?
Then you should use <input type="hidden" name="name2"> Of course name2 must
be set to something before.

chris
 
S

Steve Pugh

PRZEMO said:
<form name="ilosc" method="get" action="sklep.asp" target="L2" >
<input type="text" name="action" value="dodaj" size="1" readonly>
<input type="text" name="pozycja" value="<%= Rekord("tw_idTowaru")%>"
readonly size="1">
<input type="text" name="ilosc" id="ilosc" value="ovdje upisite kolicinu"
maxlength="5">
<input type="submit" value="PRIHVATITE" onclick="history.go(-1)"></form>

That is html code of my form. I would like to send something like that
sklep.asp?action=dodaj&pozycja=tw_idTowaru&ilosc=.....

Every thing in this form working ok. But When I open form.html I see 3 input
text. I would like to see only one - name "ilosc". Sorry my earlier post was
not complete.

For the inputs you don't want to appear on the screen, change
type="text" to type="hidden".

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top