| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Dec 2005
Posts: 208
![]() | Getting info to pre populate? Hey, here is the website I am working on so that you can see what I am asking http://domains.jesslester.com What I want to happen, is when someone clicks on Make Offer, I want the corresponding domain name to automatically fill in where the person would enter the domain they are making an offer on. I want this to automatically populate. I know i could just create a different page for each domain, but I really rather not since I would have to make a new one for each domain. Is this possible? Thanks
__________________ + Domains I have for sale here |
| |
| | #2 (permalink) |
| Senior Member Join Date: Aug 2005 Location: Uk, South Yorkshire
Posts: 1,225
![]() ![]() ![]() ![]() ![]() ![]() ![]() | Ok, do something like this. For your link, on the homepage, have HTML Code: /makeoffer.php?name=$domainvar Eg, $domains['name'], or whatever you use Then, on makeoffer.php, add into your PHP page. PHP Code: Replace: HTML Code: <input name="domain" type="text" size="20" maxlength="255" /> HTML Code: <input name="domain" type="text" value="$domain_name" size="20" maxlength="255" /> ![]() If you want some help, just PM me. ![]() Adrian
__________________ Cueburst - Support System - FAQ Knowledge Base, Tickets and more.
Last edited by Hitch; 10-29-2006 at 10:44 AM.
|
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Regular Join Date: Dec 2005
Posts: 208
![]() | hmm well this doesnt work. you can check the site again to see what happens now. I only tried this out on the first domain name in the list. What I see in the text box now is $domain_name I think the problem is that I never set the variables for all the domains. How would I go about doing this?
__________________ + Domains I have for sale here |
| |
| | THREAD STARTER #5 (permalink) |
| NamePros Regular Join Date: Dec 2005
Posts: 208
![]() | well i dont have a variable for them, that i know of? here is some of the code so you can see. makeoffer.php (this is not complete code, just the important parts. It would be way to long to post the whole file) PHP Code: PHP Code: Please let me know if you need to see more. Thanks for all the help. I am sure this would have been much easier to make using MySQL. perhaps i should i consider redoing the whole thing.
__________________ + Domains I have for sale here |
| |
| | THREAD STARTER #7 (permalink) |
| NamePros Regular Join Date: Dec 2005
Posts: 208
![]() | after trying many different things, i still am not able to get this to work. In the link I changed the $domainvar to the actual Domain Name, but this didnt seem to work. Not sure what is wrong thanks for the help though.
__________________ + Domains I have for sale here |
| |