hi ya'll,
trying clean bulky php pages. can take quick peek @ code , tell me if i've made work? far, submit form data (which load correctly on initial page load, per-form.php) there 'if' statements don't seem working right.
go ahead, brutal
peace,
sean
code:<?php session_start(); if(isset($_session['perdata'])) { $perdata = $_session['perdata']; include('include/forms/per-edit.php');} else { if(isset($_post['submit'])){ include('include/forms/per-array.php'); $_session['perdata'] = $perdata; echo "<meta http-equiv='refresh' content='0; url=start_per_conf.php'>";} else { include('include/forms/per-form.php');}} ?>
well, conditions correct, goes wrong? it's hard tell that. if there no session variable first 'if' won't execute, , second 1 won't execute if button hasn't been pressed.
maybe reverse something? second if executed if session var doesn't exist. , if include third page while trying second 'if', never reach (since new page loaded). said, can't tell piece of code.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk PHP Data Processing / Sloppy Code
Ubuntu
Comments
Post a Comment