Jump to content

Recommended Posts

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 8) 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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.