Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Passing Variables into $_POST
Old 10-04-2007, 09:54 PM Passing Variables into $_POST
Average Talker

Posts: 20
Name: Chris
Trades: 0
I have some code that creates the name="" of an input from mySQL data. I then want to pass this input name into a $_POST. The problem I have is that I don't know what the actual variable will be. I'd like to pass a variable into the post command like this:

$_POST[$forminputname]

but this is not working. Does anyone have any ideas on this? Thanks.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
clexmond is offline
Reply With Quote
View Public Profile Visit clexmond's homepage!
 
 
Register now for full access!
Old 10-04-2007, 10:17 PM Re: Passing Variables into $_POST
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Couldn't you create a variable and set it equal to what you pull from the SQL

$forminputname = results of your SQL data;

and then pass $forminputname as you show in your post.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Passing Variables into $_POST
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24772 seconds with 12 queries