Jump to content

flemingmike

Members
  • Posts

    472
  • Joined

  • Last visited

Posts posted by flemingmike

  1. hello all, when i submit a radio button, it isnt passing through.  here is my radio code:

     

    <td>
    										<input type="radio" value="monthly" name="po">Monthly
    										<font size="2">(10 Payments)</font><br>
    										<input type="radio" name="po" value="bimonthly">Bi-Monthly
    										<font size="2">(5 Payments)</font></td>

     

     

    here is my php email code:

     

     

    $po = $_POST['po'];
    
    $mailbody .= "Payment Type - $po\n";
    $mailbody .= "Notes - $notes\n";
    
    
    mail($mailto, $mailsubj, $mailbody, $mailhead);

     

     

    it passes through all other fields, and emails, just not the radio buttons.

     

     

    any help is appreciated.

     

    thanks

  2. radar, i saw your other postings on the add cc to email, so im trying that.  here is my alternate code:

     

    <?php
    
    $email = $_POST['Email1'];
    $name = $_POST['FirstName1'] $_POST['LastName1'];
    $mailto = 'mike@*****.ca';
    $mailsubj = "Email From Website";
    $mailhead .= "FROM: ".$name;
    $mailhead .= "Reply-To: ".$email;
    $mailhead .= "CC: ".$email;
    
    
    $mailbody = "Values submitted from LOI:\n";
    while (list($key, $val) = each ($HTTP_POST_VARS)) {
    $mailbody .= "$key : $val\n";
    
    }
    
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    
    
    
    ?>

     

     

     

    im getting this error:

     

    Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in E:\Website\dance\registration.php on line 18
    

     

    any ideas?

  3. here is my current code:

     

    <?php
    $to      = '****@rogers.com';
    $subject = 'Email From Website';
    $message = 'hello';
    $headers = 'From: mike@****.ca\r\n'
    $headers .= 'Reply-To: mike@****.ca\r\n'
    $headers .= 'X-Mailer: PHP/' . phpversion().'\r\n';
    
    
    
    mail($to, $subject, $message, $headers);
    ?> 

  4. ok, so im starting with this, and im getting error on line 9.

     

    <?php
    $to      = 'email@rogers.com';
    $subject = 'Email From Website';
    $message = 'hello';
    $headers = 'From: mike@email.ca' . "\r\n" .
        'Reply-To: mike@email.ca' . "\r\n" .
        'X-Mailer: PHP/' . phpversion();
    
    mail($to, $subject, $message, $headers);
    ?> 

     

    any ideas?

  5. hello all,

     

    does anyone know of any simple tutorial, or simple script that i can learn to submit my html form to a php mailer?  the stuff im finding in google isnt formatted so it can be easily read.

     

    thanks!

  6. error is on line

     

        <form action="<?=$_SERVER['PHP_SELF']?>" method="POST">

     

    code below

     

    <?php
    
    
    //If we submitted the form
    if(isset($_POST['submitMe']))
    {
    
    
    
    echo '<div id="musicinfo" align="center">		
    
    <table border="1" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    	<td align="center">
        <form action="<?=$_SERVER['PHP_SELF']?>" method="POST">
        <center>
        <input type="text" name="name"size="24">
        <input type="submit" value="Search" name="submitMe">
        </form>
    	</td>
    </tr>
    
    </table>
       
    </div>';
    
    
    
    $hmm = simplexml_load_file('http://www.durhamit.ca:8181/1.0/?method=database.search&searcharg='.$_POST['name'] .'');
    
    foreach($hmm->tracks->track as $tracks) {
    
        $artist = $tracks->artist;
        $title = $tracks->title;
        $album = $tracks->album; 
        $id = $tracks->id; 
    
    echo '<table border="1" width="60%" align="center">';
    echo '<tr>';
    	echo '<td width="25%">'.$artist.'</td>';
    	echo '<td width="25%">'.$title.'</td>';
    	echo '<td width="25%">'.$album.'</td>';
    	echo '<td width="25%"><a href="http://www.durhamit.ca:8181/1.0/?method=player.playDatabaseItem&id='.$id.'">Play</a></td>';
    echo '</tr>';
    echo '</table>';
    
    }
    
    
    
    
    
    
    }
    
    
    //If we haven't submitted the form
    else
    {
    ?>
    
    
    
        <form action="<?=$_SERVER['PHP_SELF']?>" method="POST">
        <center>
        <input type="text" name="name"size="24">
        <input type="submit" value="Search" name="submitMe">
        </form>
    
    
    
    
    <?
    }
    
    ?>
    

  7. hi all,  im getting this error:

     

    PHP has encountered an Access Violation at 01B7ACB2

     

     

    with this code:

     

    <?php
    
    include("style.php");
    
    $hmm = simplexml_load_file('http://www.durhamit.ca:8181/1.0/?method=database.search&searcharg=a');
    
    
    //If we submitted the form
    if(isset($_POST['submitMe']))
    {
         foreach($hmm->tracks->track as $tracks) {
    
        $artist = $tracks->artist;
        $title = $tracks->title;
        $album = $tracks->album; 
        $id = $tracks->id; 
    
    echo '<table border="1" width="60%" align="center">';
    echo '<tr>';
    	echo '<td width="25%">'.$artist.'</td>';
    	echo '<td width="25%">'.$title.'</td>';
    	echo '<td width="25%">'.$album.'</td>';
    	echo '<td width="25%"><a 
    
    href="http://www.durhamit.ca:8181/1.0/?method=player.playDatabaseItem&id='.$id.'">Play</a></td>';
    echo '</tr>';
    echo '</table>';
    
    }
    }
    //If we haven't submitted the form
    else
    {
    ?>
        <form action="<?=$_SERVER['PHP_SELF']?>" method="POST">
        <input type="text" name="name"><br>
        <input type="submit" value="submit" name="submitMe">
        </form>
    <?
    }
    ?> 
    
    
    
    
    
    
    
    
    ?>
    

     

    any ideas?

  8. hello, how can i make a search button that when clicked, it takes the info from a text box and makes it a variable?  im trying to make a search function that can return this page:

     

    <?php
    
    include("style.php");
    
    $hmm = simplexml_load_file('http://www.durhamit.ca:8181/1.0/?method=database.search&searcharg=**TEXT BOX INFO HERE**');
    
    foreach($hmm->tracks->track as $tracks) {
    
        $artist = $tracks->artist;
        $title = $tracks->title;
        $album = $tracks->album; 
        $id = $tracks->id; 
    
    echo '<table border="1" width="60%" align="center">';
    echo '<tr>';
    	echo '<td width="25%">'.$artist.'</td>';
    	echo '<td width="25%">'.$title.'</td>';
    	echo '<td width="25%">'.$album.'</td>';
    	echo '<td width="25%"><a 
    
    href="http://www.durhamit.ca:8181/1.0/?method=player.playDatabaseItem&id='.$id.'">Play</a></td>';
    echo '</tr>';
    echo '</table>';
    
    }
    
    ?>
    

  9. the server doesnt accept it as a getvolume&volume= , it hjas to passed at setvolume&volume=.

     

    and ya, this is a one off project, and just for my own personal use.  i do alot of php stuff, but very very basic and just for my own stuff.

  10. for the xml send i have to make a url like http://ww......./method=player.setvolume&volume=(*a number between 1 and 255*)

     

    but in order to get the current volume, i need to parse the xml from http://ww....../method=player.getvolume  and it is in the value portion. 

     

    so i have it so that $vol = the value of value in the player.getvolume xml output.

     

    so when i click $volup, which is a calculation of $vol +/- 20, i then need the $vol value to update accordingly.

  11. here are my options, so im not sure if i can do what you suggest

     

     

    "Method"                "Parameter"  "Response"    "Description"

    player.getVolume    None              Default 

    player.setVolume    volume            Default            Volume is set with a value between 0 (silent) and 255 (max).

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.