Type: Posts; User:
I had it working like that before with help from the guy above although because the option value is expanded with data in the database, a user could edit the URI to break compatibility. For instance,...
Can anyone help with me POSTing data through java?
Thats great, thank you. It works!
I forgot one important element though which is that I was using the explode function, because in the table some cartridges are compatible with several printers.
BTW $_POST["printer"] is 1/2/3/4/5 etc... just one value.
In the option field I am not seeing any names, just the printer ID.
OOH I get it!
I had to get my mind wrapped around a while script and it clearly influenced what I was trying with foreach. That makes sense though!
OK I have tried this and I am using:
Is that a little clearer? :)
Sorry we're actually talking about two different things. The post data works OK and I can see further information regarding the printer ID selected (with a checkbox), however what I would like to do...
I have a MySQL query that checks a "Compatible" column for a number. For instance "1".
In this table there are 4 rows: Type, Compatible, StockLevel and Cost.
I need to display the...
I'll explain the process and maybe you'll understand clearer.
The first step is to type in a room name. This data is posted back to the page which PHP then deals with.. (?location=..., for example...
Infact I'm a numpty so if you could help that would be perfect.
OK it did work but now it doesn't. What the earth have I done.
Psst I dont know how the JS works but it does! If anyone could explain it I'd be grateful :)
Thank you so much. It didn't work at first but I put the java script BELOW the PHP and it works. Obviously by the laws of PHP loading server side and then Java on the client, I figure this makes...
I have a PHP query that displays a response from my database in a while loop. What I have done is list several checkboxes that then gives additional data when selected and POSTed. The...
Also the JS is inside of a .php file.
To clarify this bit (var room = "<?= $get_location; ?>";) definitely works. I'm not sure about window.location though!
Bump? This must be so simple if I knew JS better :<
This isn't exactly what you were asking for, but I hate to see people go down the path of creating physical links. I find it ugly and unmaintainable once your list of links grows.
I've taken out...
I have made a PHP script that queries a database and uses the reponse to display multiple radio boxes (using a while loop). What I would like to do is have the page URI updated when a...
I've been looking around the universe of Google but can't find anything that is applicable with the "type" of radio boxes I'm using.
I did a little bit of brainstorming and what I came...