I have a page on a site that I am changing but which I never wrote. It is a page that is the checkout page on a site selling items (checkout.php). The page does many things and posts to itself. What it does, in terms of eyeballing the page and reading from top to bottom is this: Calls another file require: PHP Code: <?php session_start(); require("./UserSQL.inc.php"); which in turn calls another file: PHP Code: <?php require("./DbSql.inc.php"); which in turn calls another f
Articles similar to Can one add form validation to a PHP page without changing other elements in it?:
htaccess rule, redirect https for just one page
Hello,
I wrote a rule in my htaccess file. It appears to do what I want but wanted to make sure this was the proper way of doing it. Basically I have a checkout page, its the only page that needs to use ssl. When they go to the page all the other links to the rest of the site now link with the https, which I dont want. I want everything to link back to normal http. So instead of writing code to have some trigger to put the full http url for all the links I wrote this:
Code:
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !checkout.php
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Is this a ok solution or is there a better more optimized solution?Need Help... AJAX/ Jquery conflict in CS-Cart
I am using CS-Cart 2.1 ...
I need someone who can look over a site I am working on. I am having trouble with a quick cart drop down that I made.
First I used completely different css to make it and it wouldn't refresh because the ajax in checkout.php calls for #cart_status. Everything worked fine, except when you put the items in the cart they wouldn't show up until you refreshed the page. I went back and re did my div tags and changed back to cart_status and switched that css. Now it adds item to cart immediately but my jquery button does not work until the page is refreshed again. I am using jquery toggle command to control the action. Can someone please help, there is a conflict between the shopping cart refresh and the jquery being deactivated.
Need Help to hide Backlinks to Search Engines
Ok I ll try to explain myself,
I need to create 3 back links on my site, this back links will direct customers to the checkout page of the affiliate program I'm working with. I need to find a way to hide this backlinks to the Search engines I do not want crawlers to read their codes or follow them to the checkout page. I could use the <a rel="nofollow,noindex" but is not reliable and I must find a way to get customers to the checkout page hiding links to the Search engines. I also though about sending them to another sites page that contains backlinks to the checkout page but still crawlers will follow both links.
I hope some one understands what I'm trying to do and helps me :)
ThanksASP to Insert to Access and post form to itself
I have a ASP form ( Form1.asp )that inserts data into MsAccess, but it calls another page .
How do I insert the data into MsAccess but still have the form not go to another page.
If onSubmit I can open a DIV on the same page with a confirmation, I'm OK with that.
Sample code would be helpful.
Thanks.Ugh! Regex! #^@! Please help!
Greetings!
Don't know if I'm have some brain fog or what. But I wrote this simple script about a year ago to scrape my youtube playlist and display it on my own personal webpage. I attached the original code (as a text file) to this thread. Here it is --> Attachment 8843
Now .. as I've slowly progressed at this I took a look at this script to see how I could make it work better. And I saw that I had originally read the web page then wrote it to a file then read the file and then formatted the page. When I could just read the page and format as I go along.
The page I'm reading has NOT changed. But it's weird that my regular expression statement isn't working. And my eyeballs are not seeing my mistake!
Failing to pass SESSION value between pages
Hello,
I am trying to have a signup page where the user enters their email address, they then go to the terms and conditions page and continue on to a third page where their information is updated to my database. However I don't think I am passing the SESSIONS correctly. As the insert page is getting the error message query empty. Help would be fantastic.
The code is:
Sign up Page:
Code:
<?php
SESSION_start();
$_SESSION['email']='$_POST[email]';
?>
<head>
</head>
<body>
<label>Email</label>
<input type="text" name="email"><br /><br />
<label>Item</label>mod_rewrite last rule ignored on refresh?
The rewrite rule is simple enough, it's abstracted, and it works.
Code:
RewriteEngine on
RewriteRule \.(css|js)$ - [L]
RewriteRule ^(.*)$ page.php
When I go to any css or javascript file it displays it and doesn't load page.php. I can load it over and over again and it still doesn't load page.php.
But I have a problematic scenario:
- I go to http://www.domain.com/css/master.css and I see my css file. page.php didn't log anything. (good)
- I hit 'return' on the page and see my css file. As expected page.php didn't log anything (good)
- I hit 'refresh' on the page and I see my css file as expected. My page.php logs a hit. (BAD)

