Reply LinkBack Thread Tools Search this Thread
Old 03-04-2008, 16:49   #1 (permalink)
Nic
Registered User
 
Nic's Avatar
 
Join Date: Apr 2008
Posts: 7
I dont understand how this form is supposed to work...help plz.

I have a 'posts' area and a 'subscribe to newsletter' area on this free template i downloaded. (its called "WN_003" on the interspire website)
im not sure how i make these areas work for me, im assuming the 'posts' area shows recent posts and the newsletter is pretty self explanatory but like where do i enter the sendto email address etc?

1, this peice of code looks like a script: " form id="form1" name="form1" method="post" action=""> " what is it for and how do i 'use' it? im assuming something goes in between the 2 " after action....but what?

2, another similar peice of code " input name="textfield" type="text" class="search_inputbox" value="Enter your E-mail" " seems to be for the 'newsletter signup' area on the page but again, how does this work?
Are these parts of a script that i have to add to or do they reference a script im not aware of?

oh, my brain is hurting.

I realize these are probably village idiot questions but i just cant work it out.

thanks in advance for any help you can give me.
  Reply With Quote
Old 03-04-2008, 18:43   #2 (permalink)
womble
Registered User
 
Join Date: Mar 2008
Posts: 16
i think you need to write a basic form of your own and get it to post data to another page - once you can do that - all will become clear.

html can pass values to the server or another page using a form's post array - item on the form such as inputs have a name and are given a value by the user of the form. these name:value pairs are loaded into the array when form is submitted

a form with an <input name="color" value=""/> get used by a user who types in blue
once submitted the color can be extracted from the array by scripts like $myFavColor = $_POST["color"]
  Reply With Quote
Old 04-04-2008, 00:16   #3 (permalink)
Zygote76
Senior Member
 
Zygote76's Avatar
 
Join Date: Oct 2007
Location: Ohio
Posts: 160
Go here

HTML Forms and Input

This will give you basic information about forms and what the tags mean. the have examples there that you can look at. After you have a better understanding of what the tags mean you should look up some tutorials on creating and implementing forms on a site here. Best of Luck
  Reply With Quote
Old 04-04-2008, 08:32   #4 (permalink)
pgo
i'm done, son
 
Join Date: Jan 2005
Posts: 12,262
Quote:
Originally Posted by Nic
Are these parts of a script that i have to add to or do they reference a script im not aware of?
The action attribute usually references a server-side script - PHP, ASP, JSP, and so on. You'll need a script to process the form. As it stands, it's just an HTML form - and HTML forms by themselves don't "do" anything (HTML doesn't "do" anything).
  Reply With Quote
Old 04-04-2008, 08:55   #5 (permalink)
Nic
Registered User
 
Nic's Avatar
 
Join Date: Apr 2008
Posts: 7
Great answers thanks.
  Reply With Quote
Old 04-04-2008, 14:28   #6 (permalink)
Nic
Registered User
 
Nic's Avatar
 
Join Date: Apr 2008
Posts: 7
wow, forms are sweet! I've got it now i think, except....
I looked around for a script to use for my 'news section'...couldn't find anything??

Anyone know where i might find a script that will show 'news' on my pages. I take it this will enable me to edit the news itself in one place and it will show up in all my pages right?

thanks again for any help you lot can give me.
  Reply With Quote
Old 04-04-2008, 16:51   #7 (permalink)
Nic
Registered User
 
Nic's Avatar
 
Join Date: Apr 2008
Posts: 7
would a 'phpinclude' work here? for the news part?
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8