Jump to content

bgallegos

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by bgallegos

  1. Yeah...I'm completely confused since I never use ASP. Can anyone come up with some helpful connection code. Also, what is the file extension for an asp page? When I save it as .asp, it just displays the content of the file instead of the output code.
  2. Alright, to give you a little more insight about the problem, the DNS is already setup on the database server. I do have admin rights to both servers. I wasn't sure if it could be done with PHP or not, so I'll switch to ASP.What connection string do I use to connect to the other database with ASP (If that is easier...lol)?
  3. I have the website files located on one server, while I have an Access database (.mdb) located on another. I've never dealt with Access databases before so I'm wondering on how to connect to the database so I can run queries.Thanks for any help.
  4. You should check out osCommerce. They have contributions for just about everything. I have messed around with this and you can create some good layouts with the code already there.http://www.oscommerce.com/
  5. Check out this website:http://www.freewebmasterhelp.com/tutorials/phpmysql/1Part 4 and 5 look like they will help you out. If you need any explanation about the code PM me.
  6. bgallegos

    PHP Arrays

    Alright, at first there is one field for the 1st pet's name and one drop down for the 1st pet's type. There are two buttons below this: Add Another Pet, Remove This Pet. When you click Add Another Pet, javascript displays another field for the 2nd pet's name and one drop down for the 2nd pet's type. Remove This Pet simply removes the fields. This is why I need to store the pet names and the pet types into arrays. Based on what you told me though, I should be able to take care of it. Thanks for the help, and if you have any other suggestions I'll keep checking back.
  7. bgallegos

    PHP Arrays

    I might be over thinking this problem but hopefully someone can help me out. I have a form that gets a customer's pet information. The pet information form requires this information:-Pet Name-Pet Type (Dog, Cat, Bird, Horse, Fish) I would like to store the values from these two form fields into two seperate php arrays. The arrays are $petname and $pettype.Every customer must have at least one pet, so the first form will store it's information into the first spot of the arrays.How do I have it store the information into the php array? What code goes under the name of the form field? <select name=" "> <option value="Dog">Dog</option> <option value="Cat">Cat</option> <option value="Horse">Horse</option> <option value="Fish">Fish</option> <option value="Bird">Bird</option></select> Let me know if I need to clarify any information.
  8. What exactly is happening? The only thing I can see is that you put a \ in front of S and P. These aren't special characters, so I don't see why you would need the \.Here is the code without the \ in front of the S and P: //Start Replacement Scripts.//bodyHlder=document.body;imgRepfir='<img src="http://www.planetsmilies.com/smilies/happy/happy0069.gif" />'finRepf=bodyHlder.innerHTML.replace(/\:\)/g,imgRepfir);bodyHlder.innerHTML=finRepf;imgRepsec='<img src="http://www.planetsmilies.com/smilies/confused/confused0069.gif" />'finRepg=bodyHlder.innerHTML.replace(/\:S/g,imgRepsec);bodyHlder.innerHTML=finRepg;bodyHlder=document.body;imgRepthi='<img src="http://www.planetsmilies.com/smilies/sad/sad0119.gif" />'finReph=bodyHlder.innerHTML.replace(/\:\(/g,imgRepthi);bodyHlder.innerHTML=finReph;bodyHlder=document.body;imgRepfo='<img src="http://www.planetsmilies.com/smilies/tongue/tongue0021.gif" />'finRepj=bodyHlder.innerHTML.replace(/\:P/g,imgRepfo);bodyHlder.innerHTML=finRepj;bodyHlder=document.body;imgRepfi='<img src="http://www.planetsmilies.com/smilies/winking/winking0001.gif" />'finRepk=bodyHlder.innerHTML.replace(/\;\)/g,imgRepfi);bodyHlder.innerHTML=finRepk;///End Replacement Scripts/// Let me know if that works.
  9. Try this:lol=x.innerHTML.replace(/:)/g,zoop);If that doesn't work, try going here:http://www.w3schools.com/jsref/jsref_replace.aspYou want to be able to do a global search. (Example 3)Hope this helps.
  10. Hello,I'm creating a pet prescription website that requires account creation by the customers. During the account creation process, the customer needs to be able to put in their pet(s) information along with the veterinarian's information.Currently the form displays an area for the first pet's information. Below this I would like to have a button that says "Add Another Pet." When the user clicks on this button, I would like another area of the form to be created for another pet. I do not want the page to refresh, but to add the next part of the form right below the previous section. The button will then be moved down below the new section.Will javascript be able to do this for me?Thanks
×
×
  • Create New...