getParameter()

From Hack Wars Wiki

Revision as of 20:59, 18 November 2010 by Meiskam (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search


Function information for getParameter()
Function getParameter(string name)
API HTTP
Cost $100
Level 30
CPU Usage 3
Description Gets a variable from a form on your site.

Example

Let's say we have this HTML code:

<form>
<input type="text" name="Woot!">
<input type="submit" name="submit" value="bla">
</form>

In the Submit section of your HTTP script, you can get the value of "Woot!" by using getParameter, as such:

string thewoot=getParameter("Woot!");
Personal tools