By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,274 Members | 2,229 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,274 IT Pros & Developers. It's quick & easy.

Submit Buttons using php

P: n/a
Hello, I'm new to using php coding. I need help with the following:
1. There is a submit button on the form and is saves information to
my database. After clicking on "Save Measurement" it redirects me to
another page in my site.

What I would like to do is change what page directs it to. Currently
the submit button redirects me to page /measure/men_measure. I would
like to be able to change this.
Please see below my page below:
<?php
include("../lib/BaseFile.php");
misc_navigation('measure/take_measure.php');
misc_auth('User_Measuring');

$query = "select * from ".DB_TABLE_PREFIX."_mes_men where user_id = ".
$_SESSION['auth']['user_id'];
$result = mysql_query($query) or die ("could not send query3");
$row = mysql_fetch_assoc($result);

foreach($row as $key =$value) {
$info[$key][$value] = " checked ";
}

if (!empty($_POST)) {
$query = "update ".DB_TABLE_PREFIX."_mes_men set ";
$first = true;
foreach($_POST as $key =$value)
{
$keys = explode('_',$key);
unset($keys[0]);
$key = implode('_',$keys);
if (!$first)
{
$query .=",".$key."='".$value."'";
}
else
{
$query .=$key."='".$value."'";
$first = false;
}

}
$query.=', filled6=1 where user_id='.$_SESSION['auth']['user_id'];
mysql_query($query) or die(mysql_error());

// update profile
$sql = "UPDATE " . DB_TABLE_PREFIX . "_user SET other=1 WHERE
user_id = " . $_SESSION['auth']['user_id'];
mysql_query($sql) or die(mysql_error());

header('Location: men_measure.php');
exit;
}

$doc_title = misc_title("Take measurement");
include("../html/private_header.php");
?>

<!-- ### Check required fields ### -->
<script type="text/javascript">
function check_null() {

frm = document.Form1;

if(radioSelected(frm.cn01_shoulders) == null) {
alert('Please select the appropriate "Shoulders"');
return false;
}

if(radioSelected(frm.cn01_sleeves) == null) {
alert('Please select the appropriate "Sleeves Length"');
return false;
}

if(radioSelected(frm.cn01_arm_silh) == null) {
alert('Please select the appropriate "Arm Silhouette"');
return false;
}

if(radioSelected(frm.cn01_chest_silh) == null) {
alert('Please select the appropriate "Front Chest Silhouette"');
return false;
}

if(radioSelected(frm.cn01_stomach_silh) == null) {
alert('Please select the appropriate "Stomach Silhouette"');
return false;
}

if(radioSelected(frm.cn01_back_silh) == null) {
alert('Please select the appropriate "Back Silhouette"');
return false;
}

if(radioSelected(frm.cn01_stand_stance) == null) {
alert('Please select the appropriate "Standing Stance"');
return false;
}

if(radioSelected(frm.cn01_neck_stance) == null) {
alert('Please select the appropriate "Neck Stance"');
return false;
}

if(radioSelected(frm.cn01_neck_height) == null) {
alert('Please select the appropriate "Neck Height"');
return false;
}

if(radioSelected(frm.cn01_leg_stance) == null) {
alert('Please select the appropriate "Leg Stance"');
return false;
}

if(radioSelected(frm.cn01_thigh_stance) == null) {
alert('Please select the appropriate "Thigh Stance"');
return false;
}

if(radioSelected(frm.cn01_seat_stance) == null) {
alert('Please select the appropriate "Seat Stance"');
return false;
}

if(radioSelected(frm.cn01_waist_stance) == null) {
alert('Please select the appropriate "Waist Stance"');
return false;
}
}

function radioSelected(radGroup) {
if (typeof(radGroup)=="undefined") {
return null;
}

for (var i = 0; i < radGroup.length; i++) {
if (radGroup[i].checked){
return i;
}
}
return null; //no checked buttons in group or empty group.
}
</script>

<form name="Form1" method="POST" action="measure/silh.php"
onsubmit="return check_null();">

<A NAME="shoulders"></A><center><h4>Shoulders</h4><br /></center>

<table class="measTable" border="0" cellpadding="2" cellspacing="2"
width="600" align="center">

<tr>

<td align="center" valign="middle">

<img src="files/mes_women/101squareshoulder.gif" /><br />

<input type="radio" name="cn01_shoulders" value="Square Shoulders" <?
php echo $info['shoulders']['Square Shoulders']; ?/><br />

Square Shoulders

</td>

<td align="center" valign="middle">

<img src="files/mes_women/102normalshoulder.gif" /><br />

<input type="radio" name="cn01_shoulders" value="Normal Shoulders" <?
php echo $info['shoulders']['Normal Shoulders']; ?/><br />

Normal Shoulders

</td>

<td align="center" valign="middle">

<img src="files/mes_women/103bothveryslopingshoulder.gif" /><br />

<input type="radio" name="cn01_shoulders" value="Both Very Sloped" <?
php echo $info['shoulders']['Both Very Sloped']; ?/><br />

Both Very Sloped

</td>

<td align="center" valign="middle">

<img src="files/mes_women/104bothslightlyslopingshoulder.gif" /><br /
>
<input type="radio" name="cn01_shoulders" value="Both Slightly
Sloped" <?php echo $info['shoulders']['Both Slightly Sloped']; ?/
><br />
Both Slightly Sloped

</td>

</tr>

<tr>

<td align="center" valign="middle">

<img src="files/mes_women/105rightnormalleftslopeshoulder.gif" /
><br />
<input type="radio" name="cn01_shoulders" value="Right Normal Left
Sloped" <?php echo $info['shoulders']['Right Normal Left Sloped']; ?/
><br />
Right Normal Left Sloped

</td>

<td align="center" valign="middle">

<img src="files/mes_women/106leftnormalrightslopeshoulder.gif" /
><br />
<input type="radio" name="cn01_shoulders" value="Left Normal Right
Sloped" <?php echo $info['shoulders']['Left Normal Right Sloped']; ?/
><br />
Left Normal Right Sloped

</td>

<td align="center" valign="middle">

<img src="files/mes_women/
107rightslightlyslopeleftveryslopeshoulder.gif" /><br />

<input type="radio" name="cn01_shoulders" value="Right Slightly
Sloped Left Very Sloped" <?php echo $info['shoulders']['Right Slightly
Sloped Left Very Sloped']; ?/><br />

Right Slightly Sloped Left Very Sloped

</td>

<td align="center" valign="middle">

<img src="files/mes_women/
108leftslightlysloperightveryslopeshoulder.gif" /><br />

<input type="radio" name="cn01_shoulders" value="Left Slightly
Sloped Right Very Sloped" <?php echo $info['shoulders']['Left Slightly
Sloped Right Very Sloped']; ?/><br />

Left Slightly Sloped Right Very Sloped

</td>

</tr>

</table>

<A NAME="sleeves"></A><center><h4>Sleeves Length</h4></center><br />

<table class="measTable" border="0" cellpadding="2" cellspacing="2"
width="600" align="center">
<tr>
<td align="center" valign="middle">

<img src="files/mes_women/01_bothequallength.gif" /><br />

<input type="radio" name="cn01_sleeves" value="Both Equal Length" <?
php echo $info['sleeves']['Both Equal Length']; ?/><br />

Both Equal Length

</td>

<td align="center" valign="middle">

<img src="files/mes_women/02_rightlongerthanleft.gif" /><br />

<input type="radio" name="cn01_sleeves" value="Right Longer Than
Left" <?php echo $info['sleeves']['Right Longer Than Left']; ?/><br /
>
Right Longer Than Left

</td>

<td align="center" valign="middle">

<img src="files/mes_women/03_leftlongerthanright.gif" /><br />

<input type="radio" name="cn01_sleeves" value="Left Longer Than
Right" <?php echo $info['sleeves']['Left Longer Than Right']; ?/
><br />
Left Longer Than Right

</td>

</tr>

</table>

<A NAME="arm_silh"></A><center><h4>Arm Silhouette</h4><br /></center>

<table class="measTable" border="0" cellpadding="2" cellspacing="2"
width="600" align="center">

<tr>

<td align="center" valign="middle">

<img src="files/mes_women/301normal-arm.gif" /><br />

<input type="radio" name="cn01_arm_silh" value="Normal Arm" <?php
echo $info['arm_silh']['Normal Arm']; ?/><br />

Normal Arm

</td>

<td align="center" valign="middle">

<img src="files/mes_women/302arm-coming-forward.gif" /><br />

<input type="radio" name="cn01_arm_silh" value="Arm Coming Forward"
<?php echo $info['arm_silh']['Arm Coming Forward']; ?/><br />

Arm Coming Forward

</td>

<td align="center" valign="middle">

<img src="files/mes_women/303arm-going-backward.gif" /><br />

<input type="radio" name="cn01_arm_silh" value="Arm Going Backward"
<?php echo $info['arm_silh']['Arm Going Backward']; ?/><br />

Arm Going Backward

</td>

</tr>

</table>
<A NAME="chest_silh"></A><center><h4>Front Chest Silhouette</h4><br /
></center>


<table class="measTable" border="0" cellpadding="2" cellspacing="2"
width="600" align="center">

<tr>

<td align="center" valign="middle">

<img src="files/mes_women/010normalchest.gif" /><br />

<input type="radio" name="cn01_chest_silh" value="Normal Chest" <?
php echo $info['chest_silh']['Normal Chest']; ?/><br />

Normal Chest

</td>

<td align="center" valign="middle">

<img src="files/mes_women/020verybulging.gif" /><br />

<input type="radio" name="cn01_chest_silh" value="Very Bulging
(Muscular)" <?php echo $info['chest_silh']['Very Bulging
(Muscular)']; ?/><br />

Very Bulging (Muscular)

</td>

<td align="center" valign="middle">

<img src="files/mes_women/030cavinginchest.gif" /><br />

<input type="radio" name="cn01_chest_silh" value="Caving in" <?php
echo $info['chest_silh']['Caving in']; ?/><br />

Caving in

</td>

<td align="center" valign="middle">

<img src="files/mes_women/040slightlyprotruding.gif" /><br />

<input type="radio" name="cn01_chest_silh" value="Slightly
Protruding" <?php echo $info['chest_silh']['Slightly Protruding']; ?/
><br />
Slightly Protruding

</td>

<td align="center" valign="middle">

<img src="files/mes_women/050wellpaddingchest.gif" /><br />

<input type="radio" name="cn01_chest_silh" value="Well Padded Chest
(Not Muscular)" <?php echo $info['chest_silh']['Well Padded Chest (Not
Muscular)']; ?/><br />

Well Padded Chest (Not Muscular)

</td>

</tr>

</table>
<A NAME="stomach_silh"></A><center><h4>Stomach Silhouette</h4><br /></
center>

<table class="measTable" border="0" cellpadding="2" cellspacing="2"
width="600" align="center">

<tr>

<td align="center" valign="middle">

<img src="files/mes_women/01-normal.gif" /><br />

<input type="radio" name="cn01_stomach_silh" value="Normal" <?php
echo $info['stomach_silh']['Normal']; ?/><br />

Normal

</td>

<td align="center" valign="middle">

<img src="files/mes_women/02-washboard.gif" /><br />

<input type="radio" name="cn01_stomach_silh" value="Wash Board" <?
php echo $info['stomach_silh']['Wash Board']; ?/><br />

Wash Board

</td>

<td align="center" valign="middle">

<img src="files/mes_women/03-slightlybulging.gif" /><br />

<input type="radio" name="cn01_stomach_silh" value="Slight" <?php
echo $info['stomach_silh']['Slight']; ?/><br />

Slight

</td>

<td align="center" valign="middle">

<img src="files/mes_women/04-bulging.gif" /><br />

<input type="radio" name="cn01_stomach_silh" value="Bulging" <?php
echo $info['stomach_silh']['Bulging']; ?/><br />

Bulging

</td>

<td align="center" valign="middle">

<img src="files/mes_women/05-potbelly.gif" /><br />

<input type="radio" name="cn01_stomach_silh" value="Pot Belly" <?php
echo $info['stomach_silh']['Pot Belly']; ?/><br />

Pot Belly

</td>

<td align="center" valign="middle">

<img src="files/mes_women/06-beebelly.gif" /><br />

<input type="radio" name="cn01_stomach_silh" value="Beer Belly" <?
php echo $info['stomach_silh']['Beer Belly']; ?/><br />

Beer Belly

</td>

</tr>

</table>

<A NAME="back_silh"></A><center><h4>Back Silhouette</h4><br /></
center>

<table class="measTable" border="0" cellpadding="2" cellspacing="2"
width="600" align="center">

<tr>

<td align="center" valign="middle">

<img src="files/mes_women/01-upperbackcurve.gif" /><br />

<input type="radio" name="cn01_back_silh" value="Upper Back Curve" <?
php echo $info['back_silh']['Upper Back Curve']; ?/><br />

Upper Back Curve

</td>

<td align="center" valign="middle">

<img src="files/mes_women/02-curvedback.gif" /><br />

<input type="radio" name="cn01_back_silh" value="Curved Back" <?php
echo $info['back_silh']['Curved Back']; ?/><br />

Curved Back

</td>

<td align="center" valign="middle">

<img src="files/mes_women/03-humpback.gif" /><br />

<input type="radio" name="cn01_back_silh" value="Hump Back" <?php
echo $info['back_silh']['Hump Back']; ?/><br />

Hump Back

</td>

<td align="center" valign="middle">

<img src="files/mes_women/04-upperbackcurvedshortforwardneck.gif" /
><br />
<input type="radio" name="cn01_back_silh" value="Upper Back Curve
Short Forward Neck" <?php echo $info['back_silh']['Upper Back Curve
Short Forward Neck']; ?/><br />

Upper Back Curve Short Forward Neck

</td>

<td align="center" valign="middle">

<img src="files/mes_women/05-normalback.gif" /><br />

<input type="radio" name="cn01_back_silh" value="Normal Back" <?php
echo $info['back_silh']['Normal Back']; ?/><br />

Normal Back

</td>

</tr>

</table>

<A NAME="stand_stance"></A><center><h4>Standing Stance</h4><br /></
center>

<table class="measTable" border="0" cellpadding="2" cellspacing="2"
width="600" align="center">

<tr>

<td align="center" valign="middle">

<img src="files/mes_women/011-normal.gif" /><br />

<input type="radio" name="cn01_stand_stance" value="Normal" <?php
echo $info['stand_stance']['Normal']; ?/><br />

Normal

</td>

<td align="center" valign="middle">

<img src="files/mes_women/022-slightlyforward.gif" /><br />

<input type="radio" name="cn01_stand_stance" value="Slightly
Forward" <?php echo $info['stand_stance']['Slightly Forward']; ?/
><br />
Slightly Forward

</td>

<td align="center" valign="middle">

<img src="files/mes_women/033-verybenforward.gif" /><br />

<input type="radio" name="cn01_stand_stance" value="Very Bent
Forward" <?php echo $info['stand_stance']['Very Bent Forward']; ?/
><br />
Very Bent Forward

</td>

<td align="center" valign="middle">

<img src="files/mes_women/044-backwarderect.gif" /><br />

<input type="radio" name="cn01_stand_stance" value="Backward Erect"
<?php echo $info['stand_stance']['Backward Erect']; ?/><br />

Backward Erect

</td>

</tr>

</table>
<A NAME="neck_stance"></A><center><h4>Neck Stance</h4><br /></center>

<table class="measTable" border="0" cellpadding="2" cellspacing="2"
width="600" align="center">

<tr>

<td align="center" valign="middle">

<img src="files/mes_women/01-neckbackwardss.gif" /><br />

<input type="radio" name="cn01_neck_stance" value="Head Backward" <?
php echo $info['neck_stance']['Head Backward']; ?/><br />

Head Backward

</td>

<td align="center" valign="middle">

<img src="files/mes_women/01-normals.gif" /><br />

<input type="radio" name="cn01_neck_stance" value="Normal" <?php
echo $info['neck_stance']['Normal']; ?/><br />

Normal

</td>

<td align="center" valign="middle">

<img src="files/mes_women/03-neckbackwards.gif" /><br />

<input type="radio" name="cn01_neck_stance" value="Neck Forward" <?
php echo $info['neck_stance']['Neck Forward']; ?/><br />

Neck Forward

</td>

</tr>

</table>

<A NAME="neck_height"></A><center><h4>Neck Height</h4><br /></center>

<table class="measTable" border="0" cellpadding="2" cellspacing="2"
width="600" align="center">

<tr>

<td align="center" valign="middle">

<img src="files/mes_women/01normals.gif" /><br />

<input type="radio" name="cn01_neck_height" value="Normal" <?php
echo $info['neck_height']['Normal']; ?/><br />

Normal

</td>

<td align="center" valign="middle">

<img src="files/mes_women/02veryshortnecks.gif" /><br />

<input type="radio" name="cn01_neck_height" value="Very Short" <?php
echo $info['neck_height']['Very Short']; ?/><br />

Very Short

</td>

<td align="center" valign="middle">

<img src="files/mes_women/03verylongnecks.gif" /><br />

<input type="radio" name="cn01_neck_height" value="Very Long" <?php
echo $info['neck_height']['Very Long']; ?/><br />

Very Long

</td>

</tr>

</table>

<A NAME="leg_stance"></A><center><h4>Leg Stance</h4><br /></center>

<table class="measTable" border="0" cellpadding="2" cellspacing="2"
width="600" align="center">

<tr>

<td align="center" valign="middle">

<img src="files/mes_women/010-normal.gif" /><br />

<input type="radio" name="cn01_leg_stance" value="Normal" <?php echo
$info['leg_stance']['Normal']; ?/><br />

Normal

</td>

<td align="center" valign="middle">

<img src="files/mes_women/002-bentinwards.gif" /><br />

<input type="radio" name="cn01_leg_stance" value="Bent Inward" <?php
echo $info['leg_stance']['Bent Inward']; ?/><br />

Bent Inward

</td>

<td align="center" valign="middle">

<img src="files/mes_women/003-slightlyoutwardbent.gif" /><br />

<input type="radio" name="cn01_leg_stance" value="Slightly Outward"
<?php echo $info['leg_stance']['Slightly Outward']; ?/><br />

Slightly Outward

</td>

<td align="center" valign="middle">

<img src="files/mes_women/004-bowlegs.gif" /><br />

<input type="radio" name="cn01_leg_stance" value="Bow Legged" <?php
echo $info['leg_stance']['Bow Legged']; ?/><br />

Bow Legged

</td>

<td align="center" valign="middle">

<img src="files/mes_women/005-veryerectprominentcalves.gif" /><br />

<input type="radio" name="cn01_leg_stance" value="Very Erect
Prominent Calves" <?php echo $info['leg_stance']['Very Erect Prominent
Calves']; ?/><br />

Very Erect Prominent Calves

</td>

</tr>

</table>

<A NAME="thigh_stance"></A><center><h4>Thigh Stance</h4><br /></
center>

<table class="measTable" border="0" cellpadding="2" cellspacing="2"
width="600" align="center">

<tr>

<td align="center" valign="middle">

<img src="files/mes_women/01thin_legs.gif" /><br />

<input type="radio" name="cn01_thigh_stance" value="Thin Thighs" <?
php echo $info['thigh_stance']['Thin Thighs']; ?/><br />

Thin Thighs

</td>

<td align="center" valign="middle">

<img src="files/mes_women/02heavy_thighs.gif" /><br />

<input type="radio" name="cn01_thigh_stance" value="Heavy Thighs" <?
php echo $info['thigh_stance']['Heavy Thighs']; ?/><br />

Heavy Thighs

</td>

<td align="center" valign="middle">

<img src="files/mes_women/03large_muscular_thighs.gif" /><br />

<input type="radio" name="cn01_thigh_stance" value="Large Muscular
Thighs" <?php echo $info['thigh_stance']['Large Muscular Thighs']; ?/
><br />
Large Muscular Thighs

</td>

<td align="center" valign="middle">

<img src="files/mes_women/04thick_thighs.gif" /><br />

<input type="radio" name="cn01_thigh_stance" value="Thick Thighs" <?
php echo $info['thigh_stance']['Thick Thighs']; ?/><br />

Thick Thighs

</td>

</tr>

</table>

<A NAME="seat_stance"></A><center><h4>Seat Stance</h4><br /></center>

<table class="measTable" border="0" cellpadding="2" cellspacing="2"
width="600" align="center">

<tr>

<td align="center" valign="middle">

<img src="files/mes_women/0110normalseat.gif" /><br />

<input type="radio" name="cn01_seat_stance" value="Normal" <?php
echo $info['seat_stance']['Normal']; ?/><br />

Normal

</td>

<td align="center" valign="middle">

<img src="files/mes_women/0210heavyseat.gif" /><br />

<input type="radio" name="cn01_seat_stance" value="Heavy Seat" <?php
echo $info['seat_stance']['Heavy Seat']; ?/><br />

Heavy Seat

</td>

<td align="center" valign="middle">

<img src="files/mes_women/0310prominentseat.gif" /><br />

<input type="radio" name="cn01_seat_stance" value="Prominent Seat" <?
php echo $info['seat_stance']['Prominent Seat']; ?/><br />

Prominent Seat

</td>

<td align="center" valign="middle">

<img src="files/mes_women/0410verybulgingseat.gif" /><br />

<input type="radio" name="cn01_seat_stance" value="Very Bulging
Seat" <?php echo $info['seat_stance']['Very Bulging Seat']; ?/><br /
>
Very Bulging Seat

</td>

<td align="center" valign="middle">

<img src="files/mes_women/0510flatseat.gif" /><br />

<input type="radio" name="cn01_seat_stance" value="Flat Seat" <?php
echo $info['seat_stance']['Flat Seat']; ?/><br />

Flat Seat

</td>

<td align="center" valign="middle">

<img src="files/mes_women/0610noseatslightlyinwardcurve.gif" /><br /
>
<input type="radio" name="cn01_seat_stance" value="No seat Slightly
Inwards Curve" <?php echo $info['seat_stance']['No seat Slightly
Inwards Curve']; ?/><br />

No seat Slightly Inwards Curve

</td>

</tr>

</table>

<A NAME="waist_stance"></A><center><h4>Waist Stance</h4><br /></
center>

<table class="measTable" border="0" cellpadding="2" cellspacing="2"
width="600" align="center">

<tr>

<td align="center" valign="middle">

<img src="files/mes_women/01verylowonhips.gif" /><br />

<input type="radio" name="cn01_waist_stance" value="Very Low On Hips
(Hipster Style)" <?php echo $info['waist_stance']['Very Low On Hips
(Hipster Style)']; ?/><br />

Very Low On Hips (Hipster Style)

</td>

<td align="center" valign="middle">

<img src="files/mes_women/03normal.gif" /><br />

<input type="radio" name="cn01_waist_stance" value="Low Waist" <?php
echo $info['waist_stance']['Low Waist']; ?/><br />

Low Waist

</td>

<td align="center" valign="middle">

<img src="files/mes_women/02lowwaist.gif" /><br />

<input type="radio" name="cn01_waist_stance" value="Normal (Slightly
Below Navel)" <?php echo $info['waist_stance']['Normal (Slightly Below
Navel)']; ?/><br />

Normal (Slightly Below Navel)

</td>

<td align="center" valign="middle">

<img src="files/mes_women/04onnavel.gif" /><br />

<input type="radio" name="cn01_waist_stance" value="On Navel" <?php
echo $info['waist_stance']['On Navel']; ?/><br />

On Navel

</td>

<td align="center" valign="middle">

<img src="files/mes_women/05slightlyhighwaist.gif" /><br />

<input type="radio" name="cn01_waist_stance" value="Slightly High
Waist" <?php echo $info['waist_stance']['Slightly High Waist']; ?/
><br />
Slightly High Waist

</td>

<td align="center" valign="middle">

<img src="files/mes_women/06highwaist.gif" /><br />

<input type="radio" name="cn01_waist_stance" value="High Waist" <?
php echo $info['waist_stance']['High Waist']; ?/><br />

High Waist

</td>

<td align="center" valign="middle">

<img src="files/mes_women/07highwaistslightlybulgingstomach.gif" /
><br />
<input type="radio" name="cn01_waist_stance" value="High Waist Very
Bulging Stomach" <?php echo $info['waist_stance']['High Waist Very
Bulging Stomach']; ?/><br />

High Waist Very Bulging Stomach

</td>

</tr>

<tr>

<td align="center" valign="middle">

<img src="files/mes_women/08highwaistverybulgingstomach.gif" /><br /
>
<input type="radio" name="cn01_waist_stance" value="High Waist
Slightly Bulging Stomach" <?php echo $info['waist_stance']['High Waist
Slightly Bulging Stomach']; ?/><br />

High Waist Slightly Bulging Stomach

</td>

<td align="center" valign="middle">

<img src="files/mes_women/09lowinfrontbulgingstomach.gif" /><br />

<input type="radio" name="cn01_waist_stance" value="Low In Front
Bulging Stomach" <?php echo $info['waist_stance']['Low In Front
Bulging Stomach']; ?/><br />

Low In Front Bulging Stomach

</td>

<td align="center" valign="middle">

<img src="files/mes_women/10verylowinfrontbulgingstomach.gif" /><br /
>
<input type="radio" name="cn01_waist_stance" value="Very Low In
Front Bulging Stomach" <?php echo $info['waist_stance']['Very Low In
Front Bulging Stomach']; ?/><br />

Very Low In Front Bulging Stomach

</td>

<td align="center" valign="middle">

<img src="files/mes_women/
11lowinfrontlargebellyslightlygighatback.gif" /><br />

<input type="radio" name="cn01_waist_stance" value="Low In Front
Large Belly Slightly High At Back" <?php echo $info['waist_stance']
['Low In Front Large Belly Slightly High At Back']; ?/><br />

Low In Front Large Belly Slightly High At Back

</td>

<td align="center" valign="middle">

<img src="files/mes_women/
12undethbellyprotrudingverytummyaback.gif" /><br />

<input type="radio" name="cn01_waist_stance" value="Under The Belly
Very Protruding Tummy High At The Back" <?php echo
$info['waist_stance']['Under The Belly Very Protruding Tummy High At
The Back']; ?/><br />

Under The Belly Very Protruding Tummy High At The Back

</td>

<td align="center" valign="middle">

<img src="files/mes_women/13verylowunderbellyhighatback.gif" /><br /
>
<input type="radio" name="cn01_waist_stance" value="Very Low Under
Belly High At Back" <?php echo $info['waist_stance']['Very Low Under
Belly High At Back']; ?/><br />

Very Low Under Belly High At Back

</td>

<td align="center" valign="middle">

<img src="files/mes_women/
14straightacrossundethebellywithbeerbelly.gif" /><br />

<input type="radio" name="cn01_waist_stance" value="Straight Across
Under The Belly With Large Beer Belly (Low On Waist Bone Low At Back)"
<?php echo $info['waist_stance']['Straight Across Under The Belly With
Large Beer Belly (Low On Waist Bone Low At Back)']; ?/><br />

Straight Across Under The Belly With Large Beer Belly (Low On Waist
Bone Low At Back)

</td>

</tr>

</table>
<center><br /><br />
<input class="button" type="submit" value="Save Measurements" />
</center>
</form>
<?php
include("../html/private_footer.php");
?>

Feb 5 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Sun, 04 Feb 2007 20:29:59 -0800, ansc1 <wd******@gmail.comwrote:
Hello, I'm new to using php coding. I need help with the following:
1. There is a submit button on the form and is saves information to
my database. After clicking on "Save Measurement" it redirects me to
another page in my site.

What I would like to do is change what page directs it to. Currently
the submit button redirects me to page /measure/men_measure. I would
like to be able to change this.
Please see below my page below:
<snip>
You've posted quite a lot of unnecessary code (no need to see your
JavaScript, for example) there, and it's hard to want to look through it
all. You can change where the form submits by simply pointing to whatever
script you want in the action attribute in the form tag. If you want to
redirect in your PHP script, you need to use the header() function (see
<http://php.net/header>). You should also only use the header function
before any output is sent, which includes any whitespace before "<?php"
and after "?>". If you need to, you could use output buffering to mitigate
said requirement.

--
Curtis, http://dyersweb.com
Feb 5 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.