Child pages
  • Chapter 6 - Creation - Remote Online Form

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
foreach ( $resources as $key => $resource ) {
  echo '<tr><th>' . $key . '</th><td>'; 
  echo '<input type="text" name="' . $key . '" value=""/>';
  echo '</td></tr>';
}

Once

...

the

...

data

...

is

...

passed

...

in

...

POST,

...

we

...

combined

...

the

...

data

...

sent

...

with

...

the

...

blank

...

XML

...

file,

...

which

...

is

...

the

...

same

...

technique

...

used

...

for

...

updating

...

data.

Code Block
foreach ( $resources as $nodeKey => $node ) {

...


  $resources->$nodeKey = $_POST[ $nodeKey ];

...


}

Calling the web service is similar to what we have seen previously:

...