-
Posts
1,216 -
Joined
-
Last visited
Everything posted by WebStyles
-
check your logs, you're probably getting something like: Call to undefined function file_get_html()
-
if all you need are the hidden values, just go to https://www.facebook.com/login.php right-click on page and select 'view source' and then search for whatever's inside <form.....
-
you can do a script to select everything, trim() each filed and update database.
-
as far as I know cpt is NOT a reserved word. I know you said you did, but because nobody can confirm it here, are you SURE you have that value in that field? (sorry for asking) Check if field has a space before or after 9921X or try something: $query2 = "select * from sheet2 where cpt like '%9921X%' "; Hope this helps
-
How do I stop encrypted PHP scripts calling home?
WebStyles replied to OM2's topic in PHP Coding Help
you can always use the old redirection trick: figure out what domain it's calling and ad it to your hosts file pointing to 127.0.0.1 -
CSV files are comma seperated, so you can have spaces too: Jim Brown,32 Dave Dmith,25 Bob Roberts,19 would be perfectly valid
-
what setup do you have? (i.e. linux, windows ?) probably smtp not set up correctly.
-
or combine both: if( !fwrite($fp, $page) && $fp != '' ) // send email
-
this: fwrite($fp, $page); if(!fwrite($fp, $page)) will make fwrite execute twice. you might want to include something like: if($fp != '') // send email;
-
carrying form variables through to a third script
WebStyles replied to ikkyopaul's topic in PHP Coding Help
as simple as this: $_SESSION['call_it_what_you_want'] = "GIVE IT SOME VALUE"; (same as any variables but will be available on all your pages) (keep in mind what Muddy_Funster said. you MUST have session_start() on every page you wish to set or get $_SESSION variables. <?php session_start(); $_SESSION['example'] = 'Oh Dear.'; echo $_SESSION['example']; ?> -
is your timestamp the number of seconds since Jan 1, 1970 (php style) or a mysql timestamp similar to this: 2007-12-15 23:50:26 ?
-
I'll have a beer please.
-
you must close them all. They are nested inside of each other, so when you type </div> you're closing the last <div> you opened. <div id="1"> <div id="2"> <div id="3"> </div> // CLOSE DIV 3 </div> // CLOSE DIV 2 </div> //CLOSE DIV 1
-
MYSQL, SELECT id WHERE id DOES NOT EQUAL MULTIPLE VALUES
WebStyles replied to sloth456's topic in MySQL Help
try playing around with something like this: SELECT DISTINCT table1.id FROM table1 WHERE table1.id NOT IN ( SELECT table2.id FROM table2); -
MYSQL, SELECT id WHERE id DOES NOT EQUAL MULTIPLE VALUES
WebStyles replied to sloth456's topic in MySQL Help
are those 3,000+ invalid ids also stored in a table? -
what is in $files? can you post an example please (from here I can only guess)
-
does $_SESSION['MM_Username'] exist and have a value that exists in the database? Your entire script will do exatly the same as this: $username = $_SESSION['MM_Username'];
-
Basically what you're saying is that the id in $files is wrong in the second case but correct in the first ??? You can just add the new id to it with a different name. Something like: $files .= "&id2=".$id;
-
since you tried (and almost had it) here's a similar way to do it: <?php $vowels = array('a','e','i','o','u'); $string = 'An example string'; // split string into array, make all lowercase (or I would have to add uppercase vowels to $vowels) $parts = str_split(strtolower($string)); $count = 0; foreach ($parts as $letter) { if (in_array($letter, $vowels)) $count++; } echo 'There are (' . $count . ') vowels in the sentence (' . $string . ').'; ?>
-
bloodling, that's the 3rd time you've been asked you to echo (or print) your variables. Help us help you (please)
-
What were you attempting to do with this? $_POST['Name'] = $_SESSION['Name']; $_POST['Email'] = $_SESSION['Email']; $_POST['Message'] = $_SESSION['Message']; $_POST['Email_Subject'] = $_SESSION['Email_Subject']; also, the mail() function takes in the following parameters, in this order: mail(destinationEmail, Subject, Message, Headers); you're using: mail($to,$Name,$Email,$Message); and... this: echo $to; echo $Name; echo $Email; echo $Message; echo $headers; echo "Mail Sent."; is just going to print out a string without any line breaks or spaces between values, and also throw an undefined error (since $headers doesn't exist in your script)
-
the <a href>'s should work fine, but you need to add the variables to the url string. imagine you link points to 'page2.php', you will have to ad whatever variables and values you want, so instead of something like this <a href="page2.php">bla bla bla</a> you'll have: <a href="page2.php?var1=hello&var2=world">bla bla bla</a> then, to grab the variables, instead of $_POST, use $_GET (Mind you, sending variables like this through the url string, when they will affect your database values is quite insecure and can lead to problems. It would be fine if on the next page you were just SELECT(ing) stuff from the database, but you're also changing it with an UPDATE statement.)
-
carrying form variables through to a third script
WebStyles replied to ikkyopaul's topic in PHP Coding Help
I don't wanna start confusing things before you get it working, but this may actually help debugging too. You may want to check the variables just to be sure they were sent and received correctly, with something like this: (that checks if the variable exists and if it's value is not empty) if(isset($_GET["classDate"]) && $_GET["classDate"] != ""){ // do your stuff }else{ echo 'Variable classDate never reached this page'; } -
yeah man, just store in a $_SESSION variable and before the part that pulls them out of the database, check if that var already exists or not.
-
@teynon: lol. The funny thing is, ferlicia has another post on the forum that actually has the form properly done.