flemingmike
-
Posts
472 -
Joined
-
Last visited
Posts posted by flemingmike
-
-
i asked in php help.... it got moved here.
maybe u just overlooked that when u got too excited to be a smart ass!
-
hello,
is there an easy way to make my table that has a coloured background have rounded corners, so it doesnt look so square?
thanks
-
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?
-
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); ?>
-
i tried what you said radar, i get this error:
Parse error: syntax error, unexpected T_VARIABLE in E:\Website\dance\registration.php on line 6
-
my iis server has exchange running on it.
-
specific error is
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for *****@rogers.com in E:\Website\dance\registration.php on line 9
-
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?
-
lol... cant believe i never checked php.net. one of those days!
-
thanks radar. do you have a link? ive been trying to find this info, but i keep finding crap unlegible scripts.
-
i found a tool called PHP Form Wizard
i tried it out, it created me a php script, but when i tested, it said successfully sent, but nothing recieved in email.
-
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!
-
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> <? } ?>
-
i figured it out... stupid me.
thanks neways
-
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?
-
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>'; } ?>
-
nothing
-
hello all, was wondering if i can do this:
function do_your_thing(){ alert('Help!'); } <a onclick='do_your_thing()'>click me</a>
-
p.s. im calling it now... Leafs are going to sign Ilya Kovalchuk soon.
-
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.
-
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.
-
ok, so i see how that is working now. i just dont get how to take that and make it a variable? if that is making any sense.?!?
-
well, thanks for the help. this is just too much over my head. im going to just make a few different buttons, and each button will have a predefined volume amount. (much easier for me)
thanks for the help though.
-
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).
php mail
in PHP Coding Help
Posted
hello all, when i submit a radio button, it isnt passing through. here is my radio code:
here is my php email code:
it passes through all other fields, and emails, just not the radio buttons.
any help is appreciated.
thanks