Hi thanks for looking,
i am being 100% genuine i will pay £10(via paypal) to the first person who can help me solve my problem, as i am very sure it is simple)
i brought an auction script however it has problems.
i am new to php and even html really.
i am trying to create a check box sounds simple (not for me)
i have a page where as it lists the type of shipping
here is the list. value is the value number given in the database
royalmail (value 1)
DPD (value 2)
DHL (value 3)
royal-mail-2nd-class (value 4)
Fedex (value 5)
parcel-force-24 (value 6)
parcel-force-48 (value 7)
case-collection (value
other-postages (value 9)
pickup-only (value 10)
I would like the checked boxes to display the checked boxes on another page (being the page that shows the auction)
i'm sure some one who knows what they are doing could do this in a matter of minutes.
The database values are as so
postage_service
Field - Type - Collation - Null - Extra Action
service_id - bigint(20) No auto_increment
service_name - varchar(50) latin1_general_ci No
if the database needs editing i will not a problem at all.
Thanks for your help in advance
£10 for the first person to help me sort my problem
Moderator: General Moderators
-
shauns2007
- Forum Commoner
- Posts: 27
- Joined: Wed Feb 02, 2011 11:34 am
Re: £10 for the first person to help me sort my problem
Do you mean you have say page 1 containing those check boxes and if you click to go to page 2 you want those check boxes to appear there to?
-
ayazhaider
- Forum Newbie
- Posts: 5
- Joined: Fri Apr 22, 2011 11:18 am
Re: £10 for the first person to help me sort my problem
This is an example how to get checked , check box in multi steps form.
Step One ( an html form)
<html>
<body>
<form method="POST" action="step_2.php">
<input type="checkbox" name="c1" value="ON">Royal Mail <br>
<input type="checkbox" name="c2" value="ON"> DPD<br>
<input type="checkbox" name="c3" value="ON"> DHL<br>
<input type="checkbox" name="c4" value="ON"> Fedex<br>
<input type="submit" value="Next" name="B1"><input type="reset" value="Reset" name="B2"><br>
</form>
</body>
</html>
/// make an php file for Second Step (step_2.php)
<?php
$c1=@$_POST['c1'];
$c2=@$_POST['c2'];
$c3=@$_POST['c3'];
$c4=@$_POST['c4'];
if ($c1 != NULL) ($c1c='checked');
if ($c2 != NULL) ($c2c='checked');
if ($c3 != NULL) ($c3c='checked');
if ($c4 != NULL) ($c4c='checked');
echo '<form method="POST" action="step_2.php" >
<input type="checkbox" name="C1" value="ON" '.@$c1c.' >Royal Mail <br>
<input type="checkbox" name="C2" value="ON" '.@$c2c.'> DPD<br>
<input type="checkbox" name="C3" value="ON" '.@$c3c.'> DHL<br>
<input type="checkbox" name="C4" value="ON" '.@$c4c.'> Fedex<br>
Your Further Detail
</form>
';
?>
Step One ( an html form)
<html>
<body>
<form method="POST" action="step_2.php">
<input type="checkbox" name="c1" value="ON">Royal Mail <br>
<input type="checkbox" name="c2" value="ON"> DPD<br>
<input type="checkbox" name="c3" value="ON"> DHL<br>
<input type="checkbox" name="c4" value="ON"> Fedex<br>
<input type="submit" value="Next" name="B1"><input type="reset" value="Reset" name="B2"><br>
</form>
</body>
</html>
/// make an php file for Second Step (step_2.php)
<?php
$c1=@$_POST['c1'];
$c2=@$_POST['c2'];
$c3=@$_POST['c3'];
$c4=@$_POST['c4'];
if ($c1 != NULL) ($c1c='checked');
if ($c2 != NULL) ($c2c='checked');
if ($c3 != NULL) ($c3c='checked');
if ($c4 != NULL) ($c4c='checked');
echo '<form method="POST" action="step_2.php" >
<input type="checkbox" name="C1" value="ON" '.@$c1c.' >Royal Mail <br>
<input type="checkbox" name="C2" value="ON" '.@$c2c.'> DPD<br>
<input type="checkbox" name="C3" value="ON" '.@$c3c.'> DHL<br>
<input type="checkbox" name="C4" value="ON" '.@$c4c.'> Fedex<br>
Your Further Detail
</form>
';
?>