referencing a text field

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

MinDFreeZ
Forum Commoner
Posts: 58
Joined: Tue Feb 14, 2006 12:28 pm
Location: Lake Mary, FL

Post by MinDFreeZ »

I feel kinda bad doing this.. since I'm basically repeating myself...

update_product.php is handling the newQty variable... when u put in the new quantity into the input field u need a submit button for the field (or even set up one of those fancy hidden submit buttons where u just hit enter :P) ..... j/k

seriously, for this.. if you're just trying to add a variable to the link while on that site, without refreshing.. look into javascript.. im not sure how it can be done, but im sure it can.

all u need to know is $_GET['newQty'];
that will grab newQty from the URL ..... <form method="get" action=""> (with the newQty input field inside it ) </form> will send newQty=(whatever they put) into the url that u are at.....

like.. im still confused at what the actual question is. lol
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Post by aceconcepts »

I have done it.

Thanks for all of your help and certainly your patience.

This is where i was going wrong: I was trying to incorporate 'closing' php tags around html when data was being inserted into the display table.

Finally, i just removed all of the html tags from where i had originally put them and it works fiine.

I was under the impression that forms can only be implemented within html tags!!

Anyhow, thanks once again for your help.

Nick
Post Reply