NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Form/PHP

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

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 07-03-2005, 08:52 PM THREAD STARTER               #1 (permalink)
Senior Member
 
majinbuu1023's Avatar
Join Date: Jan 2005
Location: New Zealand
Posts: 3,747
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 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, 09:28 PM   #2 (permalink)
Senior Member
 
Porte's Avatar
Join Date: May 2005
Location: I'm right here
Posts: 3,526
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?
__________________
WP Theme Developer
Your One-stop for Premium Magazine/CMS WordPress Themes
Deluxe Themes
Last edited by Designporte; 07-03-2005 at 09:44 PM.
Porte is offline  
Old 07-03-2005, 10:12 PM THREAD STARTER               #3 (permalink)
Senior Member
 
majinbuu1023's Avatar
Join Date: Jan 2005
Location: New Zealand
Posts: 3,747
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 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, 06:22 AM   #4 (permalink)
Senior Member
 
Porte's Avatar
Join Date: May 2005
Location: I'm right here
Posts: 3,526
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.
__________________
WP Theme Developer
Your One-stop for Premium Magazine/CMS WordPress Themes
Deluxe Themes
Porte is offline  
Old 07-04-2005, 07:10 AM   #5 (permalink)
NamePros Regular
Join Date: Mar 2005
Location: Australia
Posts: 251
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, 11:37 AM   #6 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



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
????: NamePros.com http://www.namepros.com/programming/103903-form-php.html

$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, 01:39 PM THREAD STARTER               #7 (permalink)
Senior Member
 
majinbuu1023's Avatar
Join Date: Jan 2005
Location: New Zealand
Posts: 3,747
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 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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 05:39 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger