-
Posts
2,965 -
Joined
-
Last visited
Everything posted by mikesta707
-
do you have session_start() at the top of the page? also please put your code in code or php tags
-
post the whole echo string
-
[SOLVED] Warning: session_start() [function.session-start]:
mikesta707 replied to Calmypal's topic in PHP Coding Help
there is a topic solved button on the bottom of the page -
judging by whats posted, I would say King Phillip is correct
-
there error tells you were the output is already sent. its on line 1 on email.php. if you have any output at all, even white space, than you must delete it
-
that will give an error. if you want to do that you have to escape the second ' echo '<option value="men's health">Test</option>'; notice the incorrect syntax highlighting echo '<option value="men\'s health">Test</option>';
-
can you post the line before and after. unexpected t_string errors usually come from missing a closing " or ' character
-
if your topic is solved, there is a topic solved button at the bottom of the page
-
Is there a way to prevent automatic URL creation in mail client?
mikesta707 replied to SpankMarvin's topic in PHP Coding Help
is your email set as a plain text email? If so I think that it probably has something to do with the email client itself. try opening the email in different email clients and see if you have the same problem -
try echo "<option value=\"men's health\">Test</option>";
-
Is there a way to prevent automatic URL creation in mail client?
mikesta707 replied to SpankMarvin's topic in PHP Coding Help
I'm not sure, but I think that depends on the email client, rather than the script itself. but is your email a plain text email or an html email? setting it as plain text might fix the problem -
phpnewb's example will only work if AND ONLY IF the format of the page is exactly the same of your example. What if there are strong tags before the points value? what if there are <b> tags? madtechies is better, but it also assumes that there is <strong>points</strong> are you sure that the format for the page(s) will have <strong>points</strong>. could it be different? if not i suggest using madtechies example, but if so, then more info is needed
-
if statment for the scenario variable is undefined
mikesta707 replied to greenheart's topic in PHP Coding Help
post the code that comes before and after that if statement. I can't tell you whats wrong with so little information -
[SOLVED] Warning: session_start() [function.session-start]:
mikesta707 replied to Calmypal's topic in PHP Coding Help
session_start() has to be at the very top of the page, before any output -
[SOLVED] problem with my first basic editor !!
mikesta707 replied to yami007's topic in PHP Coding Help
$text = str_replace('<', '<', $text); $text = str_replace('>', '>', $text); doing this is pointless, as htmlentities does this, and more -
So I have to learn Python for my job as a tutor at my college. I know all the basic stuff, and the syntax that goes along with it, and the more advanced stuff I can figure out pretty easily (just have to learn the syntactical rules for it) Does anyone have any ideas for interesting, medium level projects I can do? Or a website with some cool projects? I've always been bad at coming up with ideas... I was thinking of making a chat program, but I want to do a simpler project before I get into a chat program. I will be using the Tkinter module for a gui, if that makes a difference
-
that doesn't make any sense. isset returns a boolean value, so its only of use in a control statement (if, while, for, etc.) what are you trying to do with that snippet?
-
it unsets whatever variable you haveit unset, and no more. have you tried it
-
you would need to pass the variables from PHP to javascript, and you could use the HTML DOM that javascript has built in to dynamically do it. something like //javscript document.getElementById('t1').style.backgroundColor=#CCCCCC
-
you can't do when a button is clicked with pure PHP. you will need javascript. but for when the page loads you can do echo' <input type="text" ID="t1" style='background-Color:$tbox1' name="tbox1" size="29" value=""><p> <input type="text" ID="t2" style='background-Color:$tbox2' name="tbox2" size="29" value=""><p> <input type="text" ID="t3" style='background-Color:$tbox3' name="tbox3" size="29" value=""><p>'; this assumes the hex codes also include the pound(#) sign, IE look like #CCCCCC
-
[SOLVED] Help Getting input from page? --forms?? idk!
mikesta707 replied to physaux's topic in PHP Coding Help
um.. myFunction($_POST['personal']['name']); ? -
do a print_r on resources. you may be trying to access it with the incorrect key
-
if statment for the scenario variable is undefined
mikesta707 replied to greenheart's topic in PHP Coding Help
if (!isset($work) || empty($work)){ //whatever } -
can you give a sample of what $id is supposed to look like?