-
Posts
393 -
Joined
-
Last visited
Posts posted by npsari
-
-
If I was in your place, I will use the basic of all
I will use...
if(mail($emaily, $subject, $message, "From: $SITE_EMAIL")){ print"<FONT style=\"font-size:12px\" color=\"#000000\" face=\"Arial\">Sent!</FONT>"; }else{ print"<FONT style=\"font-size:12px\" color=\"#000000\" face=\"Arial\">Not sent!</FONT>"; }
Because the Submit form looks ok to me
I think the handling code may be the problem
Try this simple code which I gave you and see if it works
If it doesnt work, perhaps your server does not send emails, or email companies block the emails coming from your server
You need to keep trying, I had several problems like that before
-
wow man, your answer was correct
I removed all the print and echo bits
Now it works
Thank you for the help
-
Hello there,
I need to redirect to a page, however, I must insert some data into the databse first
The problem is, people tell me that the redirect code must be the first thing on page
<?php header ("Location: $URL"); ?>
How can I insert data then redirect to a page?
-
Hello,
When you say Frame you mean Inline-frame?
Anyway, Not sure about this, but what is you did that...
<?php session_start(); session_destroy(); echo "You have been successfully logged out. <br><br> You will now be returned to the login page. <META HTTP-EQUIV=\"refresh\" target=\"frame_name\" content=\"2; URL=login.php\"> "; ?>
Perhaps it will work, otherwise, I have no ideas to offer
-
Hello there,
I am not sure I can see the upade bit in your code
From what I know, this is the update bit...
mysql_query("UPDATE table_name SET value = '$new_value' WHERE id = '$id' ");
Is this what you are trying to do? Sorry if I am wrong.
-
hmm, what about using an Iframe?
You can use an Iframe (but dont give it borders so people cant see it)
But be careful, because some browsers disable Iframes, so u will propably upset some users
-
wow clowd, u r absolutely right
The images were not professional
I removed them now, instead, I added an image which shows steps
Anymore feedback, please give me
Thank you
-
Thank you guys for the feedback
I fixed few things by now
1. The top scrolling links are gone
2. The bad looking Sign-in & Register buttons are replaced
3. The Information boxes on the left are more clear now
I am still fixing the things you mentioned
Hope you like my site now
-
wow, thank you very much for such quality feedback
I will make time to fix all the things you mentioned
Yes, Your points are all correct in my opinion too
If you like me to give you feedback on your site, let me know
Many thanks
-
I really like your website colors, the dark style you created is interesting
The first different colored letters are also unique
Your site relaxes the eye
Good work dudee
-
Hello there,
I changed the old design to make my current users happier and to make it easier for new visitors
My site offers free advertising services
I really appreciate your honest opinion
Please check my site and tell me the following...
1. What is your first impression?
2. Is it easy to understand?
3. Does it look professional?
4. Does it look trust worthy?
5. What can be fixed?
Thank you in advance
-
You can use a simple DIV box
It will scroll automatically when extra text is added
Try this link: http://www.zortin.com/scripts/show/?id=61 (It is a fully customizable text box)
Simply change with the code values to create something to suit your needs
-
wow, can i ask you something about this little code you showed me
$mysql_query = "SELECT * FROM works WHERE MATCH(Description) AGAINST ('$variable')";
Lets say a user is searching for: very cheap car
And there is a car which has the following keywords good cheap new reliable car very
I want the Query to find as much keywords possible, rather than looking for the exact match
So, if the row Description has loads of keywords, the query will see the most matching keywords in it
Do you know how can this be done, because at the moment i am doing something messed up
-
hmmm, I would say that your email provider treated the emails coming from your sever as spam
This will propably get better as your server's reputation improves as time goes by
-
I never used CONCAT in my site
What i used to do is... I Explode the phrase first, the search for each words separately, then echo all results
I ended up with many results which is annoying
I then done another complicated story which is about 100 lines of code
It works ok, but doesnt feel right
-
Actually, i never thought of sending emails in a Secure Way
I simply use the normal PHP send email function
<?php $Subject="This was sent using PHP"; $Sender="YOUR EMAIL"; $Send_to="RECEIVER EMAIL"; $Message="Lets hope this message arrives, I got this from Zortin"; if(mail($Send_to, $Subject, $Message, "From: $Sender")){ print"<br><br><FONT style=\"font-size:26px\" color=\"#009300\" face=\"Arial\"><B>Sent to: $SendTo ... Sender: $Sender</B></FONT>"; }else{ print"<br><br><FONT style=\"font-size:26px\" color=\"#FF0000\" face=\"Arial\"><B>Did not send to: $SendTo ... Sender: $Sender</B></FONT>"; } ?>
I dont think this is not Secure, How can it be Secure, I am not sure i get it
-
Very inefficiently though.
You are right, I had a problem sometime ago, which was: A slow server
I accused my Scripts and started changing them to become more efficient
My server is now faster actually, so, i guess it was my scripts
Anyway, i am not a programmer, i am a Mechanical Engineer
I am only doing this because i really like having a website
-
And the point of that would be what exactly?
Yes, i just updated my reply, i mentioned that i write codes in a strange way
But the good news are, that they work
-
Hmm, i would do it differently actually...
<? //// First, you create the variables $get_id = {$_POST['id']} ; $get_firstname = {$_POST['firstname']} ; $get_lastname = {$_POST['lastname']} ; /////AND SO ON... //// Second, you update each one on its own mysql_query(" UPDATE moving SET firstname = '$get_firstname' WHERE id = '$get_id' ") ; mysql_query(" UPDATE moving SET lastname = '$get_lastname' WHERE id = '$get_id' ") ; /////AND SO ON... ?>
You see what i mean?
This will work i think, but note that i have a unique way of writing my codes, so, you can wait for another answer which can be easier than mine.
-
Hello there,
I echo from my database the two variables $time1 & $time2
Here is the format of the Time
$time1 = 08:24:02
$time2 = 20:34:47
I want to create an IF funtiocn which will echo the following...
If the time difference is more than 15 minutes: Sorry, the time difference is more than 15 minutes
If the time difference is less than 15 minutes: Your session is still active
But i dont know how to subtract Time
$result = $time2 - $time1 ; If($result > '15') { Echo "Sorry, the time difference is more than 15 minutes"; }else{ Echo "Your session is still active"; }
I think this is wrong... Please show me how...
-
Really, so, is it still printing now while we speak?
What if i close the page completely
-
Actually, if i do this funtion...
<? while (keep_the_echo){ print"Hello"; } ?>
It keeps printing Hello
But when i click stop, it stops
-
Actually, i got an idea...
The links on the left will load two Iframes & not just one
Iframe1: Shows the website
Iframe2: Contains the Textrea of the codes
So, Lets say you are after http://www.example.com
Iframe2 will be: http://www.yoursite.com?open=http://www.example.com
Therefore, the PHP code which is in Iframe2 will read http://www.example.com and display the codes
<? $contents = file_get_contents($open); print"<textarea>"; Echo "$contents"; print"</textarea>"; ?>
-
Ohh, i understand what you mean, you dont want to pay extra for running a script for few days
Actually, you are correct
If i was in your case, i will move to a new hosting company (With the same Shared hosting plan)
And hope that they will not mention anything about the CPU usage
Hopefully their servers are much faster and wont cause no problems
help with search script.
in PHP Coding Help
Posted
Wow, that is one huge script you showed here
My prsonal opinion is to create a search script yourself
I created a search script for one of my sites
The reason is, because I wanted to know exactly what the script consists of
Therefore, you can add and subtract in the future as much as you wish
But ofcourse you can get readu scripts from the net if you dont know how to make them or dont have time