Young Entrepreneur Forums  
en·tre·pre·neur –noun Entrepreneur, translated from its French roots, means "one who undertakes." The term Entrepreneur is used to refer to anyone who undertakes the organization and management of an enterprise involving independence and risk as well as the opportunity for profit.
Find Qualified Vendors
 

Welcome to the Young Entrepreneur Forums

   
NBTL NBTR

Find Business Partners Get Involved in Startups Commercial Real Estate Startup Jobs Find Business Opportunities





Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 01-05-2005, 03:03 AM   #1 (permalink)
Senior Members
Activity Longevity
0/20 14/20
Today Posts
0/0 ssssssss6
Database Help

Let me start off by telling you guys what I am trying to do, I'm simple trying to create a search script in which people will come to my website and enter an ID for example, '1101' and the page that will load will be '1101.html', despite that this is nothing fancy at all I can't figure out for the life of me on how to do it. I went to hotscripts.com, but i cant find a script that fits what i need. I was hoping someone here could point me in the right direction, tell me what programming language it is i need to learn (php, asp, vbscript)?

Maybe there is a programmer here that is looking to build a portfolio and might be willing to do this for free, I know the programming cannot but that advanced and I already have the website and everything else ready to go. Or if you own a programming/design company we can form a type of partnership because the clients I will be dealing with are real estate agents there is a nice profit to be made off of a web design company that can cater to them.

Sorry for the long post and thanks in advance to anyone who responds.
eyedea is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored Links
Old 01-05-2005, 08:27 PM   #2 (permalink)
YE Veteran
mxer210's Avatar
Activity Longevity
0/20 17/20
Today Posts
0/0 sssss1079
Location: San Jose, California
I would make a simple php script and have it do like:
index.php?id=1011

This variable, 1011, can now be passed onto that page and can display page 1011.html in a frame directly below.
mxer210 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old 01-06-2005, 02:52 PM   #3 (permalink)
Senior Members
Activity Longevity
0/20 19/20
Today Posts
0/0 ssssss311
Location: Norwich, UK
Send a message via ICQ to Onyx
Doing it in PHP as above would be real easy, but it does put certain requirements you (namely having a PHP-enabled server etc.)

I'm sure this can be done in Javascript, but I haven't got my Javascrip book with me and I'm a little rusty! The shame of it - I know!

One word of caution. With something ike this I'd say it's essential that you validate the input just in case they can enter something that allows them to go to a page they shouldn't!

Can anyone help with the JS? An onSubmit calls a function that grabs the contents of the form field, adds it to the base URL and then adds '.htm' to the end before reloading the window with the new URL we created.
Onyx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old 01-06-2005, 08:00 PM   #4 (permalink)
YE Veteran
mxer210's Avatar
Activity Longevity
0/20 17/20
Today Posts
0/0 sssss1079
Location: San Jose, California
oohh I know. Just make a form script, (look at www.zend.com/php5/abs and lesson 1 or 2 has the code for a form. You would just have a box for the user to enter in the number, and when they enter it, it links and sends the variable to the same page, and it would be like:
Code:
<?php
$webpage_id = ['http_vars'];

?>
and have some code (not sure what it is) redirect to the below page.
Code:
<?php echo $webpage_id.".html" ?>
mxer210 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Navigation
Register! - Join Now - It's Free
Registration at YoungEntrepreneur.com is completely free and takes only a few seconds. By registering you'll gain:

- Full Posting Privileges.
- Access to Private Messaging.
- Optional Email Notification.
- Ability to Fully Participate.

To Register now click here
Quick Register - It's Free
User Name:
Password:
Confirm Password:
Email:
Confirm Email:
Birthday:  
Check to Agree with the forum rules. 
Need Business Services?
Looking for Quotes?

LFQ

Choose a category:

Latest updates from the YE blog!
Premium Memberships
We will soon be offering a Premium Membership with added benefits and access to exclusive services, support and solutions. To be informed on when this launches click here
Forum Sponsors


Custom Logo Design by Logo Design Team for an affordable $149 Only
Click here to inquire about advertising
SEO by vBSEO 3.2.0
Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright 2007 YoungEntrepreneur.com Inc. / YoungEntrepreneur.com : Entrepreneur Marketing Forum