This Message Forum is no longer in use

Please use the new Bravenet Help Forums FOUND HERE

General Forum
This Forum is Locked
Author
Comment
View Entire Thread
Re: can someone please give information on how to do this?

If you have mutliple forms, or multiple scripts, on a page it is essential that you do not duplicate the names of elements between the two. As long as every single field and variable on the page has a unique name you will be OK.

Re: can someone please give information on how to do this?

Repeating the names of elements is okay, but each form should have a unique name. Each id on a page needs to be unique, but sometimes names need to be duplicated, such as using radio button or checkbox groups.

As far as the example I posted goes, in a live situation I would be having the forms both sumbit to the same page and having the name of the button tell the script which action to take so I may use different names to make the script easier to follow, or I may make them the same so I can reduce the amount of code.

Browser: Mozilla Firefox 3.6.*

OS: Windows 7

Re: can someone please give information on how to do this?

one more question how do i make code appear as text on a website?

Browser: IE7

Re: can someone please give information on how to do this?

There's several ways. Using PHP you should look into the htmlspecialchars() and htmlentities() functions.

Using plain html your best bet is probably the textarea. You can use style="border: none;" and other css to make it fit in better with the page.

Hope this helps
-Scut

Browser: Mozilla Firefox 3.6.*

OS: Windows 7