Jump to content

leeh14

Members
  • Posts

    40
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

leeh14's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi, Can anyone point me in the right direction please? I want to have a drop down box which when a user clicks on a category the results on the page have changed to show only the data which is relative to the category chosen by the user. I also need a way so that when they click view all they are able to see all the results again. Not really sure what to look for or even how hard this might be. Lee
  2. Hi, Right when a form is submit the data in the form is added to the database basically I need to know how I can check one of the inputs to see if 'http://' has been add along with an URL, if it has not I need to add it in front of the string. How can this be done? Regards Lee
  3. well i have php processing pages in there, in otherwise i have inclusde files in there and page which run functions!
  4. Hi, Was woudering if someone could help? I would like to stop people accessing a folder (web directory) on my domain using the .htaccess. However the folder contains scripts in it that i use thererfore a redirect away from that folder does not work. can you help?
  5. Hi, I wouder if someone can help me with this issue? I want a user to click submit on a form which posts the data of to a processing page! but i only want a user to be taken to the processing page if the data in the fields passes some vailation. If the data does not pass the validation error message appear! What way could this be done?
  6. Hi, Cheers i will give that a try! Just seems annoying all i want to do is hit submit run php that check if there are errors and if there are errors display them. And if there are no errors run anouther php to add all the field to the database then redirect back to the form page. Seems simple but is not! Regards
  7. I am not quite sure what you mean by that, could you please explain! Soz
  8. OK to stop this from happening i have moved the php to a separate file which is run when submitted, which works fine for submitting to the database. But I have some validation in there and the user might need to amend fields. So how can I post any error message back to the form along with what the user typed in?
  9. That's brill has saved my project! One more thing before I set this thread to solved! Once the functions have run if you refresh the page a message comes up and says do you want to run the functions again! if you click yes it adds the data to the database again! How can i stop this from happening?
  10. Hi, I am building a website and need all the fields to be sanitized and validated. When running a filter over a standard string I have a count function to detect when the function was successfull and if all feilds are successful the page can move on. However i hit issues when i reach a e-mail function. Basically i can't get the count to run only if the e-mail is vaild? so basically where can the count be placed to run only if the string is valid and after it has been sanitized? Function: if ($_POST['email'] != "") { $email = filter_var($_POST['email'], FILTER_SANITIZE_EMAIL); if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $errors .= "$email is <strong>NOT</strong> a valid email address.<br/><br/>"; } } else { $errors .= 'Please enter your email address.<br/>'; } Count: $count ++ any help on this matter would be great! Lee
  11. The session idea seems pretty cool! however will it still work if i have anouther session running! as i have a session running to detect how long a user has been loged in and also which user is loged in?
  12. Hi, Well that seems cool will give it a go! Also you make it sound as if two people running the code at the same time as not a bad thing, but if there orders got mixed it would be!
  13. Cheers, that seems easy enough and shouldwork fine. The last thing i would like to know is what would happen if say two people where using the site at the same time. Small chance but still worth thinking about? Like will there be a queue as the collect ID is in the same function already being run.
  14. Sweet, well that is pretty much all I needed to hear! I have not yet experimented with this yet, but I can imagine that the thing which will be the hardest is getting hold of the 'ID' field and then sending that off to PayPal, as the ID field is created with auto increment as the data is inserted to the database. Does anyone have a quick idea for how I would be able to get hold of this field before going into PayPal??
  15. Hi, I am about to incorporate some PayPal functions to my site and am just asking for some advice before I start. Basically a user is going to enter some data into a form and then be passed to PayPal to pay an X amount, once the payment has been verified I want the information entered in the form (before going to PayPal), to be added to a database. But it seems that PayPal does not allow you to pass multiple (about 13) variables through their system. Is this correct? So what I was going to do is just before the customer goes to the PayPal site, I was going to insert all the data into the database and set a payment status, then once the payment is confirmed re-setting the payment status to paid or non-paid. Is that a good way to do what I want? If not is there a better way? Any help would be great. Lee
×
×
  • 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.