NameSilo

Form/PHP

SpaceshipSpaceship
Watch
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
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
•••
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
•••
I never coded in ASP, but I think it will be the same in this case, yea.
 
0
•••
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
•••
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
•••
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
•••
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back