Jump to content

sitefever

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sitefever's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Again, thank everyone for their suggestions. Actually, I have been looking into using sessions for this purpose. The bad thing is that I am using punbb forum, and when a member logs in they can go to their profile. Under their profile I have added a link (which they could not get to if they were not logged in obviously). In punbb, the address might look like profile.php?id=4. I got the link to pass that to the other script. When they click on the link, it will take them to script2.php?id=4. GREAT! Now, I need to make sure you can only get to script2.php?id=4 if you came from profile.php?id=4 (simple enough), AND I need to be sure that the user can click on any links on the script2 page without any errors (so there goes my http referer). As far as the sessions go, punbb obviously is already using sessions and I am getting errors when trying to use another one. Maybe Im putting the code in the wrong spot? Thanks!
  2. The "exit" did the trick perfectly! Last question: How secure is something like this? What are the chances someone from another URL could access the page? Thank you.
  3. THANK YOU! That code looks somewhat familiar. Ill try it now... As far as the echo part, if they came from the right page, what do I do, insert the entire page contents within the echo brackets? Of course I don't want to just display a sentence. Thanks again.
  4. I know this is possible because I have seen it in a few scripts before, but I forgot exactly how the language was put. I have a link on a page inside a password protected folder, lets call it domain.com/protected/hide.php. When the user clicks on the hyperlink, they will be redirected to domain.com/folder/page.php I want to write somewhere on page.php to be sure the visitor came from hide.php, otherwise display an error message. How can I do this? Thank you!
  5. Anybody know of a very simple PHP invoice script where you can create an invoice and have the details saved to SQL for future refrence? You should be able to go in day after day and add another item to the invoice until you are ready to send the invoice, then you can email a copy to the recipient along with a PayPal link for payment. Paid or free, doesnt matter. Thanks!
  6. Thanks for the help. Ill see if I can get this to work based on your instructions.... Would anybody be willing to do this for me for a few bucks? To get a better idea of the project, go to www.agentzap.com/agentdemo. All of the info you see on the page, realtor name, company, about me, etc. is all entered in a textbox in the admin area, then displayed on the frontside. I just need to do the same with an image, and I need to resize any uploaded images to a max width/height. My email is jrobinson@sitefever.com Thanks!
  7. Ive done some searching, and some previous topics touched on something similar to this, but I could not find an answer. I have a script where you can login to an admin area, insert information into a textbox and the info will be recorded to an SQL database. Then, from the user side, the data is pulled from the database and displayed. For example, on the user side of the site, I have the following line of code: <?php echo $cgi->htmlEncode ( $arow [ "adminname" ] ); ?> This obviously pulls the record in the database of the "adminname" and displays it on the page. ************** What Im looking to do is have an image upload on the admin page which will be uploaded to the site, recorded in the database and displayed on the user side. I cant seem to figure this out and I know that it is pretty simple because it is done all the time. Any help on this would be greatly appreciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.