Form handling

This is a discussion on "Form handling" within the PHP Forum section. This forum, and the thread "Form handling are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 28th, 2005, 02:59
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 25
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tim356
Form handling

ok, basic form:
Code: Select all
<Table><TR><TD>
<FORM action="AddNewLink.php" name="NewLink" method=post></TD></TR>
<TR><TD>Link Title:</TD></TR><TR><TD>
<INPUT name=txtTitle type="text" class="cssborder"></TD></TR>
<TR><TD>URL:</TD></TR><TR><TD>
<INPUT name=txtUrl type="text" class="cssborder" value="http://localhost/"></TD></TR>
<TR><TD>Description:</TD></TR><TR><TD>
<TEXTAREA name=txtLinkDesc rows=3 cols=50  class="cssborder"></TEXTAREA></TD></TR>
<TR><TD>
<INPUT type="submit"></TD></TR>
</FORM>
</TABLE>
calls AddNewLink.php page..
now what?

I guess I just want to know how I can use the info from the form - assign it to variables, then I can use them for what I want. I'm learning...

  #2 (permalink)  
Old Feb 28th, 2005, 10:14
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
You can grab form vars in PHP using:

Code: Select all
$txtTitle = $HTTP_POST_VARS['txtTitle];
And then use it however you see fit.
  #3 (permalink)  
Old Feb 28th, 2005, 23:55
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 25
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Tim356
Thanks Sirkent.
Closed Thread

Tags
form, handling

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling cookies in JavaScript. globalguideline JavaScript Forum 1 Mar 13th, 2008 21:03
Php Image handling Accurax PHP Forum 10 Feb 27th, 2007 23:06
handling xml errors grobar Other Programming Languages 0 Sep 4th, 2006 16:36
Character Encoding Handling spinal007 Classic ASP 0 Jun 13th, 2006 11:21
Form handling Process in ASP? sazhagianambi Classic ASP 4 May 27th, 2004 12:59


All times are GMT. The time now is 18:31.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43