Jump to content

HensterRSA

Members
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

1 Neutral

About HensterRSA

  • Rank
    Newbie
  1. hi I used to be abel to add a sub topic inside the list.... been searching on the net but i cannot find itcan some one help me <select> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option></select>
  2. found it thanks <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <body><script> function alertTotal() { var aSelect = document.getElementById('a'); var bSelect = document.getElementById('b'); var cSelect = document.getElementById('c'); var aValue = aSelect.options[aSelect.selectedIndex].value; var bValue = bSelect.options[bSelect.selectedIndex].value; var cValue = cSelect.options[cSelect.selectedIndex].value; //alert(parseIn
  3. <div>Price: R<span id="currentTotal"></span></div> added this as welll aslo not showing the price
  4. } onchange="alertTotal()" ;}</script>i added this and it's not updating
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <body><script> function alertTotal() { var aSelect = document.getElementById('a'); var bSelect = document.getElementById('b'); var cSelect = document.getElementById('c'); var aValue = aSelect.options[aSelect.selectedIndex].value; var bValue = bSelect.options[bSelect.selectedIndex].value; var cValue = cSelect.options[cSelect.selectedIndex].value; alert(parseInt(aValue) + parseInt(bValue)
  6. ok i have done this in html <td><input type="checkbox" name="series" id="series[]" value="blue" /> </td><td><input type="checkbox" name="series" id="series[]" value="red" /> </td> in my submit.php on top $var = $_POST['series']; foreach($_POST['check'] as $value) {$check_msg .= "Checked: $value\n";} in my submit.php below $msg='Name: '.$_POST['name'].'<br />Email: '.$_POST['email'].'<br />IP: '.$_SERVER['REMOTE_ADDR'].'<br /><br />Series Selected : '.$_POST['series'].'<br /> Message:<br /><br />
  7. fom a previus post .. im also lost kinldy give me the correct coding .. basically i have multible check boxes and only want the selected ones to send to email everything ells works
  8. <input type="checkbox" name="series" id="series" value="series ” /><?=$_POST['value'][0]?>and<input type="checkbox" name="blue" value="blue"><?=$_POST['value'][0]?>
  9. hi can you please write it out for me .. kinda a bit lost...
  10. ok this is wrong i should change this : if($_POST['consultancy']==1) { $msg.='Consultancy: '.$_POST['consultancy']; }
  11. yippy i selected series and i got it on my mail ... Here is the big one question I need to add about 640 check boxes with diffrent values , how am i going to do that ?
  12. hi im a big noob ,,, lol maybe one day i will get this ok i placed this in my codey on the index.php <tr> <td><label for="series">series</label></td> <td><input type="checkbox" name="series" id="series" value="series ” /><?=$_POST['value'][0]?> </td> <td valign="top"> </td> <tr> <td> <label FOR="blue">blue</label></td> <td> <input type="checkbox" name="check[]" value="blue"><?=$_POST['value'][0]?> </td></tr>and this in my send.php$msg='Name: '.$_PO
  13. i went wrong here Series Selected : '.$_POST['value'].'<br /> but have no clue how to fix it
  14. please help I know it's something silly , i cannot get the selecter checkboxes to send to the mail index.php <?phpsession_name("fancyform");session_start();$_SESSION['n1'] = rand(1,20);$_SESSION['n2'] = rand(1,20);$_SESSION['expect'] = $_SESSION['n1']+$_SESSION['n2'];$str='';if($_SESSION['errStr']){ $str='<div class="error">'.$_SESSION['errStr'].'</div>'; unset($_SESSION['errStr']);}$success='';if($_SESSION['sent']){ $success='<h1>Thank you!</h1>'; $css='<style type="text/css">#contact-form{display:none;}</style>'; unset($_SESSION['
×
×
  • Create New...