Current location: Hot Scripts Forums » Programming Languages » PHP » Forms and php?


Forms and php?

Reply
  #1 (permalink)  
Old 04-01-04, 03:50 PM
move3rd move3rd is offline
Newbie Coder
 
Join Date: Mar 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Forms and php?

I would like to use a form to pass variables to a php script.


<form name="form1" method="post" action="post.php">
<input name="DB_TBLName" type="text" value="audio_interface">
<input type="submit" name="post" value="post">
</form>

Should $DB_TBLName automatically be available in post.php when the form is submitted?

If so why isn’t it working?

Thanks
Reply With Quote
  #2 (permalink)  
Old 04-01-04, 06:33 PM
mdhall's Avatar
mdhall mdhall is offline
Aspiring Coder
 
Join Date: Oct 2003
Posts: 510
Thanks: 1
Thanked 1 Time in 1 Post
post.php

PHP Code:

 
$DB_TBLName
=$_POST['DB_TBLName'];
 
echo 
"$DB_TBLName"
Reply With Quote
  #3 (permalink)  
Old 04-01-04, 06:38 PM
move3rd move3rd is offline
Newbie Coder
 
Join Date: Mar 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
thanks.....
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php help :-) eliXe PHP 3 03-26-04 08:52 AM
question about updating a page or database for an, php and mysql updating mikewooten PHP 1 02-12-04 12:11 AM
PHP Email Forms Digital Pyro PHP 10 01-04-04 10:27 PM
php nuke opposed to individual scripts babalu PHP 1 12-09-03 12:18 PM
What PHP Scripts Should I Be Using? HELP HELP!! pelican PHP 2 08-20-03 02:06 AM


All times are GMT -5. The time now is 10:22 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.