Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Ok, I'm ready to throw my computer out the window, I hate HTML#)$*@#)(*

Anyway, it is probably simple, but I can't figure it out. So, listen up.

Basically, it is I just need to pass a variable to form a URL. I don't need to feed the data to an actual script, but almost make it a redirect. For example, the syntax of the script I'm using is this:

/order/index.php?submit_register=1&domain=domainname

On a page, I have a form, with a text box and a submit button. VERY simple. ALL I want to do is pass what the user types in the box and have it replace the domainname in the URL syntax I mentioned above.

I have tried every possible solution I can think of, and it always forwards the user to the right page, but the domain name never gets inserted in the proper []spot@!#)(*@)(#*%[/]

I am going insane, someone help me

Sponsored Links
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
I believe you want:

<form method="post" action="/order/index.php">
<input type="hidden" name="submit_register" value="1" />
Enter your domain name here dude!
<br />
<input type="text" name = "domainname" class="formboxes" />
<input type="submit" name="submitme" value="Submit" />
</form>

And all you have to do is pick up the post variables in the index.php script.


Nikos
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Thanks Nikos... although that did not seem to do the trick. It ends up just pulling up the /order/index.php page, and says "please enter a valid domain".

Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
[]dimopoulos said:
I believe you want:

<form method="post" action="/order/index.php">
<input type="hidden" name="submit_register" value="1" />
Enter your domain name here dude!
<br />
<input type="text" name = "domainname" class="formboxes" />
<input type="submit" name="submitme" value="Submit" />
</form>

And all you have to do is pick up the post variables in the index.php script. [/]

I think what you want is

method="get"

in the form tag. That *should* send the variable to the URL. I've never actually done it before, never saw a reason to, but hey, give it a try

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, that should do it.

Sponsored Links
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
Hmm.. I just figured it out (before trying any other suggestions, thanks though. Here is the resulting code, incase anyone is wondering:

Code
<form action="/order/index.php?submit_register=1" name="search" method="post" style="margin: 0px;"><input type="text" name="domain" size="12" maxlength="50"> <select name="tld_extension"><br /><option value="com">.com</option><br /><option value="net">.net</option><br /><option value="org">.org</option><br /><option value="info">.info</option><br /><option value="us">.us</option><br /><option value="biz">.biz</option><br /><option value="tv">.tv</option><br /><option value="ws">.ws</option><br /></select><br /><input type="image" src="/go.gif" alt="find" name="submit_register"></form>


I don't know if it was because I added the seperate TLD options or not, but with that code it works fine Thanks for the help though!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)