callesson Posted May 7, 2010 Share Posted May 7, 2010 Hello Everyone! I would like some help with php, sql and a text input. Is there a way to get 3 values from one textbox? Like if I have a textbox were i write " .gold 100 Admin " So example : $firstword = gold $sec = 100 $third = Admin and then a sqlupdate ("UPDATE $firstword=$firstword +$sec WHERE user=$third"); And I only want it to be one textbox. Ty in advance! Link to comment https://forums.phpfreaks.com/topic/200976-value-from-text/ Share on other sites More sharing options...
trq Posted May 7, 2010 Share Posted May 7, 2010 $words = explode(' ', $_POST['nameoftextbox']); Link to comment https://forums.phpfreaks.com/topic/200976-value-from-text/#findComment-1054458 Share on other sites More sharing options...
callesson Posted May 7, 2010 Author Share Posted May 7, 2010 Nmv, think i got it Ty m8 ! Link to comment https://forums.phpfreaks.com/topic/200976-value-from-text/#findComment-1054460 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.