Lapeth
November 17th, 2005, 05:16 PM
Hello there.
This problem is not necessarily connected to ubuntu, rather to php and/or apache2.
I'm developing a site in php, with everything in one file, and the user then progresses by "submitting" a form which gives php information on how to redraw the page. Like this:
<?
switch ($currentStep) {
case 1:
do something
case 2:
do something else
}
?>
<input name="currentStep" type="hidden" value="">
<input type="submit" value="Next" onClick="currentStep.value='<? echo $currentStep+1; ?>'">
This may seem like a peculiar way to do it, but it's perfect for the needed application, and works just great on my university webserver.
However, on my local machine, the page stays the same, ie. clicking the submit button reloads the page, keeping $currentStep at 1.
The code has been proven to work on another webserver, so I'm pretty sure it's my own newly installed webserver, running with Apache2 and PHP4.
The problem is rather urgent, as we're on a deadline here.
If you're interested in seeing the code, it is here (http://www.control.auc.dk/~lpth03/userGUI/userGUI.tar.gz), and the processed output here (http://www.control.auc.dk/~lpth03/userGUI/index.php).
This problem is not necessarily connected to ubuntu, rather to php and/or apache2.
I'm developing a site in php, with everything in one file, and the user then progresses by "submitting" a form which gives php information on how to redraw the page. Like this:
<?
switch ($currentStep) {
case 1:
do something
case 2:
do something else
}
?>
<input name="currentStep" type="hidden" value="">
<input type="submit" value="Next" onClick="currentStep.value='<? echo $currentStep+1; ?>'">
This may seem like a peculiar way to do it, but it's perfect for the needed application, and works just great on my university webserver.
However, on my local machine, the page stays the same, ie. clicking the submit button reloads the page, keeping $currentStep at 1.
The code has been proven to work on another webserver, so I'm pretty sure it's my own newly installed webserver, running with Apache2 and PHP4.
The problem is rather urgent, as we're on a deadline here.
If you're interested in seeing the code, it is here (http://www.control.auc.dk/~lpth03/userGUI/userGUI.tar.gz), and the processed output here (http://www.control.auc.dk/~lpth03/userGUI/index.php).