-
Posts
6,906 -
Joined
-
Last visited
-
Days Won
99
Everything posted by ginerjm
-
mysqli_stmt_bind_param(): error when trying to register
ginerjm replied to ciresuark's topic in PHP Coding Help
Where do declare the object that you created when you connected to the db? Each of these calls needs to be attached to something. RT(F)M. You should be showing the connection call as well as the prepare call. -
Then maybe you need to find a forum that pertains to that product. I never heard of it much less no how to program around it.
-
Plus - your script is confused as to where it is. You begin by outputting your form (with problems) and then you ask if the POST has been created. Obviously it has not so you won't see any echo there. The PHP code should always be at the beginning of your scripts and your html at the end after all of your logic has had a chance to execute. In your case if no POST has been received yet then you need to send out the blank form and exit. If it has, that's when you check what has been sent back and send out your echos or whatever results you generate and then exit.
-
I don't know what "runner_mail" is, but the code itself seems pretty ok. Be sure that your "from" email is using your domain name so that your mail doesn't look like spam
-
Don't know what code you are referring to. Would be nice if you posted that block so we all know what you are looking at.
-
The better way to "style HTML tags" (not php ones) is to use formal css code placed into the HTML <style> tag section of your html code. That way you don't have to place attributes into multiple places in your html. You can style similar things by defining CSS code for a tag name (ie, td, tr, p, span, whatever) and then referencing that css id name like this: in the head tag section add <style type='text/css'> #style1 { padding: 4px 6px; margin:1%; } and then in the html: <div id='style1'>
-
Build the message while looping thru your query results. THEN fill out the email and send it. Simple, huh?
-
HTH!
-
How about "echo $obj2"; ??
-
IF you are not planning on having the server do the work for you and then re-displaying the page, then you definitely will be using JS.
-
I am telling you the solution. Use prepared queries. What? You are going to give your friend a half-solution because you don't want to make some changes? Whether he is handicapped or not is the problem. You have told us the problem. I do think we are telling you how to solve it.
-
And that is one great reason for using prepared queries. Look it up in the manual and change your 'save' queries to use prepared statements. That will solve half your problems. You will then have to handle the output features
-
You have a function that does not much but call another function which apparently returns this link of yours. What a waste of two functions. Why not just write the link in your code and remove those two functions? Or Show Us This 'L' function's code? (what a horrible name for a function!)
-
so does that mean you aren't going to share your problem code with us? Clicking on links is not something that everyone likes to do, that's why we have the handy link (<>) to place pasted code into here. And again - only that portion that you can't figure out, not the whole thing.
-
Are you really trying to code using your phone? Seems like you are adding an extra degree of difficulty to your already-difficult situation.
-
ARe you using a POST or GET in your form? Whichever it is, change all of your references from $_REQUEST to the PROPER one. That will be a good start. And then show us some of your code so that we can do your work for you.
-
So - have you added some debugging code to the script to find out what exactly it is accomplishing? Some echos to track the progress of the script? How far it gets? AND - do you have any error checking turned on and any checks of results of your queries perhaps? This is why people code in error checking so they can see right away where a script is going wrong. Obviously you haven't done this or you would be seeing some of your messages. BTW - usually people post code here. Not all of it, but the parts that seem to be the trouble areas.
-
Contact form working, but email not sending or being received
ginerjm replied to mike3075's topic in PHP Coding Help
HTH! And - switching to phpmailer is a very smart move. The old PHP mail() function didn't really give you a good result when there were errors. PHPmailer is much better and much easier to use when you want to do different things with emails like adding attachments. -
Contact form working, but email not sending or being received
ginerjm replied to mike3075's topic in PHP Coding Help
If the 'from' address from the same domain as your site is running on? IIRC you can't use a 'foreign' from address outside of your domain. -
can I use the full file URL in an include() function?
ginerjm replied to ajetrumpet's topic in PHP Coding Help
As long as you code that strange path in a single place that is reachable from every script that needs it. You wouldn't want to have to go looking for all occurrences of it if it needed to be altered. And if your string "relative path pointer" is simply a substitute for whatever path you are going to place there. If not, it needs a $ sign -
How do I submit a single form from multiple forms on the same page.
ginerjm replied to imgrooot's topic in PHP Coding Help
As Kicken says..... Just remember that any modifications you make to fields in form A will be lost if the user submits form B. Those inputs (from the A form) will not be sent to the server as part of the submit normally. Nor should they be. Of course - each of your multiple forms should have the very same field 'names' so that your logic will handle each form properly. -
And are his mocks the kind of tests that a hacker would be doing? Black box testing is something that everyone does just to ensure that the algorithm is correct and that the code is doing what the designer wanted it to be doing. A basic necessity of writing code. What your expert is doing is the hard work of protecting your site/files/dbs/etc. from truly malicious happenings and I understand how it could seem different to you, but it is a true necessity.
-
can I use the full file URL in an include() function?
ginerjm replied to ajetrumpet's topic in PHP Coding Help
So you are saying that all of your 'files-to-be-included' exist elsewhere and not on the domain server that you are running on? An odd situation it seems to me. -
Where is $person_web_twitter coming from? I don't see it getting any value here. Plus - you probably don't want to burden your class methods with direct output like your echo of a message. You should design the method to return a value and then use a different method to do your insert.