-
Posts
1,216 -
Joined
-
Last visited
Everything posted by WebStyles
-
that is just a list... What exactly are you trying to do, a menu that slides down, or a list view that expands (like in windows explorer) ? (in either case you're going to need javascript if you don't want to refresh the page every time something is clicked)
-
before you make us read through 118 lines of code, what are the errors you're getting (and on what line numbers)? this is wrong: VALUES ('$data[first_name]','$usr_email','$sha1pass','$data[last_name]','$data[web]',now(),'$user_ip','$activ_code','$data[country]','$user_name')"; try echo(ing) out those variables beforehand, and you'll soon find the problem.
-
You can either post the code you already have, or you can use this: $file = file_get_contents('myHomework.txt'); createMySlideDownMenuForFree($file);
-
ferlicia, I feel you need to learn how to do a simple echo. I've seen several of your posts and you make great confusions out of little things, if you start echo(ing) out your variables, you'll find it much easier to figure out where the problems are. In this particular case, your subject is: "I cannot post anything to the next page.", so even though your code has many other problems, I'm going to focus on that specific question. Down in your code, you have this: $criteria = $_POST['criteria']; $addcri = $_POST['addcri']; (that grabs the values posted to the page) In your form, you actually have elements with these names (<input name="criteria" type="text"> and <input name="addcri" type="text">) and your form method is "post", that means everything is fine!!! so if you echo out the variables, you'll see they ARE being posted (unless you're posting to the wrong file). echo $criteria .'<br>'.$addcri;
-
hmmm.. you have no <form>. You added action="doSelectCriteria.php" method="post" to your <select> element, you also managed to put the submit button inside the select element... you need something like: <form action="doSelectCriteria.php" method="post"> <select name="blablabla"> <option value="1">Option 1</option> <option value="2">Option 2</option> </select> <input type="submit" value="Submit"> </form>
-
teynon's code created a dynamic dropdown list (or combobox, whichever tickles your fancy)
-
Hello, I'm WebStyles and I'm an Addict. :'(
-
& is for referencing variables. what exactly are you truing to do? remove the @ and the domain name from the string? easiest way (to understand) is to use explode: <?php $st="kumar@techsoft.com"; $res=explode("@",$st); echo $res[0]; ?> Explode() breaks up your string where it finds the @ symbol, and returns an array with the parts.
-
can we unset or reset the value of Constant ?
WebStyles replied to kumaraswamy.dapa's topic in PHP Coding Help
did you try to unset or reset it? -
those errors mean $_POST['commentbtn'] and $username are not reaching your script.
-
limit query to x amount per line then execute command
WebStyles replied to remybink's topic in PHP Coding Help
in your mysql query, do "SELECT something FROM somewhere limit 20" // for only 20 results. On the next page you need to pass the last result you got, and the query becomes "LIMIT startingNumber,NumberOfRecords". -
Best way to setup simple form submit / db
WebStyles replied to johnsmith153's topic in PHP Coding Help
well, if you only store 1,2 and 3, then somewhere (another table, a text file, an array) you'll have to have the translation of each number into a color. Not worth it in this case, I would just store the actual colors in the database. Makes it easier if later (say two or 3 years from now) you look at the database and can't remember which number is which color. You will have to go and look it up and it's such a small filed (varchar 10, maybe 15 max?) that there's really no performance impact. -
Don't mind him, he's english.
-
Great work guys, ) after 4 long years, I think this thread is pretty much Solved now.
-
it is kind of addictive. Another song title comes to mind: Hooked on a 'forum'. Given all this, I'll include my next suggestion: phpFreaks should have an official song (maybe even written in php) that is secretly taught to members when they reach 10,000 posts, (or maybe they already have this, and those of you with 10,000+ songs are sitting there, reading this, and silently smiling while humming away the anthem)
-
lol I also 'whois' a lot... and someone called Bill Murray actually registered www.chargoggagoggmanchauggagoggchaubunagungamaugg.com
-
Ah! Chargoggagoggmanchauggagoggchaubunagungamaugg, home of the NIPMUC INDIANS! (yes, I googled it)
-
No one's ever been to any of these places, for a very simple reason: the names do not fit on the Bus's destination board. (Man, I hope gautamphp doesn't have the same email, poor guy.)
-
... and GORSAFAWDDACHAIDRAIGODANHEDDOGLEDDOLONPENRHYNAREURDRAETHCEREDIGION is a town in Wales, but I've never been there.
-
lol. I just realized the original post was back in 2007. Things were different back then. Words may have other meanings.
-
...and you forgot about MAMP where M = Macintosh
-
premiso, he sent it to me in a personal message (don't know why) here it is: <html> <head> <script type="text/javascript"> function showUser(str) { if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","test.php?q="+str,true); xmlhttp.send(); } </script> </head> <body> <form> <select name="users"> <option value="">Select ID:</option> <option value="1">1</option> <option value="2">2</option> </select> <input name="test" type="button" value="submit" onClick="showUser(this.value)"> <input name="test" type="text" id="txthint" size="50"> </form> <br /> <div id="txtHint"><b>Age info will be listed here.</b></div> </body> </html>
-
Just a note: to avoid such things, it's better to always copy/paste your code instead of typing it again, otherwise we're looking at things that don't really exist in your original code.
-
why do you have : after = in form elements?
-
relative to the personal message you sent me with your code: at a (very) quick glance, your form does not have an action or method. instead of just <form> use something like: <form action="pageThatProcessesForm.php" method="get"> method can also be "post".