Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
en:entwickler:zuruecknavigieren_mit_vorbelegten_feldern [2015/11/04 20:19] – created thomas-rcv | en:entwickler:zuruecknavigieren_mit_vorbelegten_feldern [2016/12/03 15:03] – codestyle and typos ximex | ||
---|---|---|---|
Line 7: | Line 7: | ||
Based on the maintenance dialog of the announcements the procedure will now be described: | Based on the maintenance dialog of the announcements the procedure will now be described: | ||
- | The first thing you must secure these entries in a session variable at the beginning of // | + | The first thing you must secure these entries in a session variable at the beginning of // |
Now, the contents must be processed in // | Now, the contents must be processed in // | ||
- | If you work here **with** a table class, so there is a very easy way to demonstrate the fields again: <code php> if(isset($_SESSION[' | + | If you work here **with** a table class, so there is a very easy way to demonstrate the fields again: <code php> if (isset($_SESSION[' |
{ | { | ||
- | foreach($_SESSION[' | + | foreach ($_SESSION[' |
{ | { | ||
- | if(strpos($key, | + | if (strpos($key, |
{ | { | ||
$announcement-> | $announcement-> | ||
Line 25: | Line 25: | ||
When working **without** Table access class must be removed the following: | When working **without** Table access class must be removed the following: | ||
- | For this purpose, you should create best practice for each field on the form a variable. If now **$ _ SESSION | + | For this purpose, you should create best practice for each field on the form a variable. If now **$_SESSION |
{ | { | ||
- | $form_values | + | $formValues |
unset($_SESSION[' | unset($_SESSION[' | ||
} | } | ||
else | else | ||
{ | { | ||
- | $form_values[' | + | $formValues[' |
- | $form_values[' | + | $formValues[' |
- | $form_values[' | + | $formValues[' |
- | if ($_GET["ann_id"] != 0) | + | if ($_GET['ann_id'] != 0) |
{ | { | ||
... Reading the id - dataset and preassign the $field variable with the data from the database ... | ... Reading the id - dataset and preassign the $field variable with the data from the database ... |