[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 07-03-2005, 07:52 PM   #1 (permalink)
Senior Member
 
majinbuu1023's Avatar
 
Join Date: Jan 2005
Location: New Zealand
Posts: 3,759
85.67 NP$ (Donate)

majinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to behold


Form/PHP

can anyone help me with this
I need a text box and a submit button, you put in a number in the textbox then it goes to url.ext/structure/auction_detail.asp?id=number
can anyone help me with this?
majinbuu1023 is offline  
Old 07-03-2005, 08:28 PM   #2 (permalink)
Senior Member
 
Porte's Avatar
 
Join Date: May 2005
Location: Somewhere on earth!
Posts: 3,528
21.30 NP$ (Donate)

Porte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud of


The title of your thread says PHP..but then link has ASP..

Well this could be something like:

<form action="auction_detail.php" method="GET">
<input type="text" name="id" size="10">
<input type="submit" value="submit">
</form>

if you click submit, it should take you to auction_detail.php?id=the_id_value_in_text_box

Pretty easy?
__________________
Custom WordPress theme design. Top notch free WordPress themes
Custom Theme Design

Last edited by Designporte; 07-03-2005 at 08:44 PM.
Porte is offline  
Old 07-03-2005, 09:12 PM   #3 (permalink)
Senior Member
 
majinbuu1023's Avatar
 
Join Date: Jan 2005
Location: New Zealand
Posts: 3,759
85.67 NP$ (Donate)

majinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to behold


yeah thats great, except the site is not mine.. so would I need to put it like this?;
<form action="url.com/yada/auction_detail.asp" method="GET">
<input type="text" name="id" size="10">
<input type="submit" value="submit">
</form>
majinbuu1023 is offline  
Old 07-04-2005, 05:22 AM   #4 (permalink)
Senior Member
 
Porte's Avatar
 
Join Date: May 2005
Location: Somewhere on earth!
Posts: 3,528
21.30 NP$ (Donate)

Porte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud of


I never coded in ASP, but I think it will be the same in this case, yea.
__________________
Custom WordPress theme design. Top notch free WordPress themes
Custom Theme Design
Porte is offline  
Old 07-04-2005, 06:10 AM   #5 (permalink)
NamePros Regular
 
Join Date: Mar 2005
Location: Australia
Posts: 251
22.00 NP$ (Donate)

CenixHOST is an unknown quantity at this point


You must always have this:
<form action="url.com/yada/auction_detail.asp" method="GET">

Its a form with button for email or anything to send. Action url takes you to send such as login.
__________________
TRIBOLIS.COM : Linux Shared & Reseller Web Hosting Solutions : Since 2004
PHP 5 | WHM/cPanel | 24x7 Support Now | Daily Backups!

WeLoveCSS.com XHTML & CSS Forum for everyone!
CenixHOST is offline  
Old 07-04-2005, 10:37 AM   #6 (permalink)
Senior Member
 
Join Date: Aug 2002
Posts: 1,300
2.85 NP$ (Donate)

deadserious has a spectacular aura aboutdeadserious has a spectacular aura about


Quote:
Originally Posted by majinbuu1023
can anyone help me with this
I need a text box and a submit button, you put in a number in the textbox then it goes to url.ext/structure/auction_detail.asp?id=number
can anyone help me with this?

PHP Code:
<?php

$id
= $_GET['id'];
if (
$id)
{
    
header("Location: http://example.com/structure/auction_detail.asp?id=$id");
    exit;
}
else
{
?>

<form method="get" action="<?=$SERVER['PHP_SELF']?>">
<input type="text" name="id">
<input type="submit" value="Submit">
</form>

<?}?>
deadserious is offline  
Old 07-04-2005, 12:39 PM   #7 (permalink)
Senior Member
 
majinbuu1023's Avatar
 
Join Date: Jan 2005
Location: New Zealand
Posts: 3,759
85.67 NP$ (Donate)

majinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to beholdmajinbuu1023 is a splendid one to behold


this seemed to work..
<form action="url.com/yada/auction_detail.asp" method="GET">
<input type="text" name="id" size="10">
<input type="submit" value="submit">
</form>

thanks every1
majinbuu1023 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 02:48 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85