form in a table cell

blelisa's picture

They have: 31 posts

Joined: Aug 2003

Hi
I have an existing table that I need to put a form in one of the cells for user name and password. I have everything in the cell I need but I do not know where to put in the code to tell the site where to go to check in the visitor input.

If need be I can email with site location, so you can take a look

Thank You
Lisa

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

Welcome to TWF Lisa,

Can you post the URL on here with the page online so we can see what you have so far

blelisa's picture

They have: 31 posts

Joined: Aug 2003

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi blelisa,

what about right after the ''?

<td height="135" valign="top" bgcolor="#EEEEEE">
<form name='somename' action='something' onSubmit='something'>
<font color="#000066">User
      Name</font>
      <input type="text" name="Username" size="16" /><br>
    <font color="#000066">Password </font>
    <input type="password" name="Password" size="16" />
<input type="submit" value="Sign In"></form>
</td>
'

Vinny

Where the world once stood
the blades of grass cut me still

blelisa's picture

They have: 31 posts

Joined: Aug 2003

Hi Vinny,

next to onSubmit what do I put, my ="Chk_login.asp"?
Thanks

Lisa

blelisa's picture

They have: 31 posts

Joined: Aug 2003

I put everything in, but it is now going to a 404 message. I am getting pretty frustrated!! Please help!

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

<form name="loginform" action="chk_login.asp" method="post">
<font color="#000066">User Name</font>
<input type="text" name="Username" size="16" /><br>
<font color="#000066">Password </font>
<input type="password" name="Password" size="16" />
<input type="submit" value="Sign In"></form>
'

I'd highly recommend using a validator to check your code to find simple errors such as these. They help me immensely, so much so that I can often find errors on sight now from exposure to the code.

http://validator.w3.org

blelisa's picture

They have: 31 posts

Joined: Aug 2003

Thanks for the info
I validated and cleaned it all up except for OnSubmit.
What are the accepted values for this? I have been trying to figure that out since this morning!

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

onsubmit would only be used if you're using a JavaScript form checker to ensure the input from the user complies with your requirements. It would take the form of:

onsubmit="functionName()"

However, if you're not checking the form's content using JavaScript, you would not use this attribute at all.

They have: 461 posts

Joined: Jul 2003

on top of that you ONLY need a name for a form when using javascript, AND javascript can be circumventerd. it's better to do the check serverside. it's much more secure

POSIX. because a stable os that doesn't have memory leaks and isn't buggy is always good.

blelisa's picture

They have: 31 posts

Joined: Aug 2003

I got it thank you all for your help

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.