Hello Everybody
I am new to php. I am building a multipage form.
On the second page of the form I have two submit buttons. One for going back to page 1 and the other to proceed to page 3.
The form action will go to a script that will lookup which button was pressed, saves to session and loads the correct page.
I need help with the code for the redirecting.
[php]<?php
$value1 = $_POST[âbutton19â];
$value2 = $_POST[âbutton141â];
if ($value1 or $value2 == âPersonalienâ) {
header(âLocation: http://example.com/Page1.phpâ);
}
if ($value1 or $value2 == âAdressenâ) {
header(âLocation: http://example.com/Page3.phpâ);
}
?>[/php]
Thatâs what I have so far. I assume itâs totally wrong How do I approach this correctly?
Thanks in Advance!