NameSilo

Form/PHP

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

zaros64

VIP Member
Impact
34
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?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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? :tu:
 
Last edited:
0
Close
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>
 
0
Close
I never coded in ASP, but I think it will be the same in this case, yea.
 
0
Close
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.
 
0
Close
majinbuu1023 said:
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?
:hi:
PHP:
<?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>

<?}?>
:tu:
 
0
Close
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
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back