Bonkerz Posted October 8, 2009 Share Posted October 8, 2009 Hi, I'm in need of a somewhat simple application. I am making a page on a wiki with a bunch of like coding. The only difference is a couple numbers and names, that are repeated multiple times in each section. To put in easier terms, I am making code where each entry looks like this: | [[X]] || {{formatnum:{{Exchange:X|View=price}} }} || Y || {{#expr: Y-{{Exchange:X|View=price}}-{{Exchange:Nature rune|View=price}} }} |- I am making 6000 different entries like this. In each entry, X is the same and Y is the same, even though they are repeated. X is words, while Y is an integer. In each different entry, X and Y will be different than the entry before it. To expedite the process, I want to make a small application. I want to have a form where I can enter what I want for X and Y, and it outputs the entry that I want, like the one above. I would prefer it on the same page. It would be something like this: X: Y: Output: |Submit| If I have not made myself clear, it I were to enter "Pizza" for X and "22" for Y, the output would be: | [[Pizza]] || {{formatnum:{{Exchange:Pizza|View=price}} }} || 22 || {{#expr: 22-{{Exchange:Pizza|View=price}}-{{Exchange:Nature rune|View=price}} }} |- The problem is, I have absolutely NO idea where to start. If someone could show me how to input something into a form and have an output that includes the input, that would be most helpful. If someone wants to go out on a limb and be my best friend forever and make such a form like the one I described, for me, well, I'd be in your debt. If there is anything that is unclear, please don't hesitate to ask. Thank you, Bonkerz Link to comment https://forums.phpfreaks.com/topic/176902-some-simple-php/ Share on other sites More sharing options...
sKunKbad Posted October 8, 2009 Share Posted October 8, 2009 You should look into learning how to use the $_POST array and the $_GET array. It will probably be quite obvious how to make your form submission / results display after learning about $_POST and $_GET. Link to comment https://forums.phpfreaks.com/topic/176902-some-simple-php/#findComment-932781 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.