473,732 Members | 2,205 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Submit Buttons using php

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.ph p');
misc_auth('User _Measuring');

$query = "select * from ".DB_TABLE_PREF IX."_mes_men where user_id = ".
$_SESSION['auth']['user_id'];
$result = mysql_query($qu ery) or die ("could not send query3");
$row = mysql_fetch_ass oc($result);

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

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

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

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

header('Locatio n: men_measure.php ');
exit;
}

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

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

frm = document.Form1;

if(radioSelecte d(frm.cn01_shou lders) == null) {
alert('Please select the appropriate "Shoulders" ');
return false;
}

if(radioSelecte d(frm.cn01_slee ves) == null) {
alert('Please select the appropriate "Sleeves Length"');
return false;
}

if(radioSelecte d(frm.cn01_arm_ silh) == null) {
alert('Please select the appropriate "Arm Silhouette"');
return false;
}

if(radioSelecte d(frm.cn01_ches t_silh) == null) {
alert('Please select the appropriate "Front Chest Silhouette"');
return false;
}

if(radioSelecte d(frm.cn01_stom ach_silh) == null) {
alert('Please select the appropriate "Stomach Silhouette"');
return false;
}

if(radioSelecte d(frm.cn01_back _silh) == null) {
alert('Please select the appropriate "Back Silhouette"');
return false;
}

if(radioSelecte d(frm.cn01_stan d_stance) == null) {
alert('Please select the appropriate "Standing Stance"');
return false;
}

if(radioSelecte d(frm.cn01_neck _stance) == null) {
alert('Please select the appropriate "Neck Stance"');
return false;
}

if(radioSelecte d(frm.cn01_neck _height) == null) {
alert('Please select the appropriate "Neck Height"');
return false;
}

if(radioSelecte d(frm.cn01_leg_ stance) == null) {
alert('Please select the appropriate "Leg Stance"');
return false;
}

if(radioSelecte d(frm.cn01_thig h_stance) == null) {
alert('Please select the appropriate "Thigh Stance"');
return false;
}

if(radioSelecte d(frm.cn01_seat _stance) == null) {
alert('Please select the appropriate "Seat Stance"');
return false;
}

if(radioSelecte d(frm.cn01_wais t_stance) == null) {
alert('Please select the appropriate "Waist Stance"');
return false;
}
}

function radioSelected(r adGroup) {
if (typeof(radGrou p)=="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="retur n check_null();">

<A NAME="shoulders "></A><center><h4>S houlders</h4><br /></center>

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

<tr>

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

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

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

Square Shoulders

</td>

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

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

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

Normal Shoulders

</td>

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

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

<input type="radio" name="cn01_shou lders" 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/104bothslightly slopingshoulder .gif" /><br /
>
<input type="radio" name="cn01_shou lders" 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/105rightnormall eftslopeshoulde r.gif" /
><br />
<input type="radio" name="cn01_shou lders" 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/106leftnormalri ghtslopeshoulde r.gif" /
><br />
<input type="radio" name="cn01_shou lders" 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/
107rightslightl yslopeleftverys lopeshoulder.gi f" /><br />

<input type="radio" name="cn01_shou lders" 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/
108leftslightly sloperightverys lopeshoulder.gi f" /><br />

<input type="radio" name="cn01_shou lders" 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>S leeves Length</h4></center><br />

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

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

<input type="radio" name="cn01_slee ves" 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_rightlongert hanleft.gif" /><br />

<input type="radio" name="cn01_slee ves" 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_leftlongerth anright.gif" /><br />

<input type="radio" name="cn01_slee ves" 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>A rm Silhouette</h4><br /></center>

<table class="measTabl e" 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_sil h"></A><center><h4>F ront Chest Silhouette</h4><br /
></center>


<table class="measTabl e" 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_ches t_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_ches t_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/030cavinginches t.gif" /><br />

<input type="radio" name="cn01_ches t_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/040slightlyprot ruding.gif" /><br />

<input type="radio" name="cn01_ches t_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/050wellpaddingc hest.gif" /><br />

<input type="radio" name="cn01_ches t_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_s ilh"></A><center><h4>S tomach Silhouette</h4><br /></
center>

<table class="measTabl e" 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_stom ach_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_stom ach_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_stom ach_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_stom ach_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_stom ach_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_stom ach_silh" value="Beer Belly" <?
php echo $info['stomach_silh']['Beer Belly']; ?/><br />

Beer Belly

</td>

</tr>

</table>

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

<table class="measTabl e" 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-upperbackcurved shortforwardnec k.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_sta nce"></A><center><h4>S tanding Stance</h4><br /></
center>

<table class="measTabl e" 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_stan d_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_stan d_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_stan d_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.g if" /><br />

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

Backward Erect

</td>

</tr>

</table>
<A NAME="neck_stan ce"></A><center><h4>N eck Stance</h4><br /></center>

<table class="measTabl e" 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.g if" /><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_heig ht"></A><center><h4>N eck Height</h4><br /></center>

<table class="measTabl e" 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/02veryshortneck s.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_stanc e"></A><center><h4>L eg Stance</h4><br /></center>

<table class="measTabl e" 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-slightlyoutward bent.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-veryerectpromin entcalves.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_sta nce"></A><center><h4>T high Stance</h4><br /></
center>

<table class="measTabl e" 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_thig h_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_thig h_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_muscula r_thighs.gif" /><br />

<input type="radio" name="cn01_thig h_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_thig h_stance" value="Thick Thighs" <?
php echo $info['thigh_stance']['Thick Thighs']; ?/><br />

Thick Thighs

</td>

</tr>

</table>

<A NAME="seat_stan ce"></A><center><h4>S eat Stance</h4><br /></center>

<table class="measTabl e" 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.g if" /><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/0310prominentse at.gif" /><br />

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

Prominent Seat

</td>

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

<img src="files/mes_women/0410verybulging seat.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.gi f" /><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/0610noseatsligh tlyinwardcurve. 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_sta nce"></A><center><h4>W aist Stance</h4><br /></
center>

<table class="measTabl e" 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_wais t_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_wais t_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_wais t_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_wais t_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/05slightlyhighw aist.gif" /><br />

<input type="radio" name="cn01_wais t_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_wais t_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/07highwaistslig htlybulgingstom ach.gif" /
><br />
<input type="radio" name="cn01_wais t_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/08highwaistvery bulgingstomach. gif" /><br /
>
<input type="radio" name="cn01_wais t_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/09lowinfrontbul gingstomach.gif " /><br />

<input type="radio" name="cn01_wais t_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/10verylowinfron tbulgingstomach .gif" /><br /
>
<input type="radio" name="cn01_wais t_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/
11lowinfrontlar gebellyslightly gighatback.gif" /><br />

<input type="radio" name="cn01_wais t_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/
12undethbellypr otrudingverytum myaback.gif" /><br />

<input type="radio" name="cn01_wais t_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/13verylowunderb ellyhighatback. gif" /><br /
>
<input type="radio" name="cn01_wais t_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/
14straightacros sundethebellywi thbeerbelly.gif " /><br />

<input type="radio" name="cn01_wais t_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
1 2643
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1889
by: Carlo | last post by:
Hi I have three radio buttons where I need the user to select one of the buttons and its value must be emailed to me using the submit button. I'm using strBody = strBody & "<tr><td>Q1:" & request("Q1") & "</td></tr>" in the emailing portion which is working if I leave out the radio buttons. <tr>
2
9587
by: ivanhoe | last post by:
All articles and tutorials I've seen on subject of forms say that if there's name and value for submit button(input tag with type="submit"), they'll get submitted along with the rest of the form... but I've just noticed (after debugging my perl script for quite a while :/ ) that it is true only when user clicks on submit, and if form is submitted via hitting enter you don't get name=value for submit buttton...
3
1924
by: M | last post by:
i am using submit buttons to send the user to different parts of a wizard. i am using if (if attribute.step1 exists) statements to send them to the appropriate section based on which submit button they pressed. well i would like to change these submit buttons into text links instead. however they do not pass form parameters like the submit button. any simple ways to accomplish this? this is what i have so far:
3
2603
by: Arun K | last post by:
Hi, I am creating a simple .aspx page to add some fields with validation. I have used different .NET validations like REquiredFieldValidator, RegularExpressionValidator and showed the summary in the bulleted list on top. I have 3 text boxes, and two RadioButtonList. and 3 buttons. One for Submit, Reset and Exit. If submit is pressed page should be validated and submit (insert into
3
2561
by: D. Shane Fowlkes | last post by:
Sorry for the length of this post. I have created a rather complex form which has a header/line item (parent and child records) structure. It's for an intranet. A screenshot can be seen here: http://www.drpt.virginia.gov/temp1.gif All the fields on this form have validation controls on them so they can not submit the form unless all fields are completed and some fall within a specified numeric range. When the form first is loaded,...
5
2646
by: | last post by:
Hi all, Has anyone been able to write some custom javascript on the onclick event of submit button to do certain things like disable submit button, only submit form once etc. This was a breeze in 1.1 since I could edit the .js file. Now in 2.0 I can no longer do this. Also, my code would have to be called after all client-side validation was done and was successful. Any ideas? TIA!
9
4002
by: Poker Man | last post by:
Hi, I know how to do Sumbit buttons in Forms, and I know how to do custom buttons in Javascript. What I can't seem to find is how to do custom Submit buttons using Javascript! Anybody out there have any pagesthat might provide a clue?
1
2745
by: Bill_W_Stephens | last post by:
I have a complicated page with several submit buttons. I don't want to create multiple forms because much of the input is shared and the code is getting very ugly. However I would like to determine which values will be submited. Here is a simplified example that may better illustrate my question. Or maybe there is a better approach... <SCRIPT language="JavaScript">
5
2801
by: Steve JORDI | last post by:
Just a question using images as submit buttons and PHP4.4.4. It seems that my code correctly works in FireFox but not in IExplorer. For example, I have a FORM with 2 buttons called "search" and "save". In a second file, the one mentioned in the "action" parameter, I test which button has been clicked in order to decide which action to take. IExplorer doesn't get anything, FireFox correctly works.
4
6673
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all I have the following code: I am trying to use the value of the image button to evaluate what plan the user has chosen, i.e. it request("submit1")="Basic", then the user chose basic plan ... But when I click one of the image button, the thing is different from what I thought. it seems that it has field name like submit1.x=24&submit1.y=10, looks like the form submit swith the image button position values instead of the value
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9447
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9307
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9235
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.