Jump to content

Recommended Posts

I'm pretty sure you'd need to change your .htaccess file to convert something like domain.com/1234 to domain.com/view.php?code=1234 kinda like myspace. I don't think it's something you can do just entirely in html without anything else.

 

Once the .htaccess file is modified, you can do what was said where you'd have a form with a GET method

the link in the code changes from http://link.com/ to http://link.com/1234.

The link will be in the form to show in the web page OR it is in the address bar.

Explain a bit.

 

I dont know that you can go from http://link.com/ to http://link.com/1234 with just a GET form alone.

i feel like javascript or something could do it. idk

 

i feel like im making more complicated than it is.

i dont have a database set up or anything.

just a ftp.

 

like i wish i could draw it out. haha

 

i have a flash picture viewer that displays a slidshow. kinda like photobucket has, and the link i want to be changed is in the html code in the flash slidshow. and the link is where the pictures are coming from.

 

so if you were to type 567 in the submit thing and hit enter, the url in the html code would change to http://site.com/567.

 

so i just wanna be able to change the url in the code.

im not trying to redirect or anything,

so if you were to type 567 in the submit thing and hit enter, the url in the html code would change to http://site.com/567.

If i am not mistaken,the url will always be the same like : http://site.com

Now after this you can add your variable input from form to the url.

$variable=$_POST['link'];
$new_url="/".$variable;

This isn't php. You CAN use php however..

 

whatever page your form goes to(if <form action=process.php and method="POST"> and the <input type=text name=goto>)

 

make a file called  "process.php":

<?php
header("Location: $_POST[goto]"); 
?>

 

booyah. one line of php code.

 

if that doesnt work for some reason, do:

<?php
header("Location: http://www.mydomain.com/$_POST[goto]"); 
?>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.