Jump to content

Sharkadder

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Sharkadder's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have never used ajax before, this means i am going to have to look into even more languages which i don't really want to do right now. I understand your trying to suggest things, but i'd really like an example on what i should be doing, once i know how i can get the form value into a cookie or saved into a variable which i can then use on another page, i can do the rest.
  2. Well i got told i can use php sessions to pass values from one page to another, i already knew this but for what i needed it wouldn't work. I could create a cookie but not sure if it would work, here is what i tried with the php sessions for my index.php page: <form action="javascript: void 0;" method="post" onsubmit="<?php session_start(); $_SESSION['value']=$_POST['rad'] ?>;SetDesc (''); SetWt (); SetCode ('a10001'); if (ReadForm (this, true)) CallView (); ClearAll (); return false;"> As you can see i am telling the php session to equal the name rad from the $_POST, however when i go onto my other php page it doesn't seem to work and not sure why, on the next page which it is linked to i have this statement: <?php echo $_GET['value']; ?> Nothing shows when i put ?value after the url, so how would i go about getting the forms value in a cookie and then retreving the value from that cookie on another page using javascript or php as both handle cookies. thanks
  3. ok, can somebody move this to the php part of the forum then, i know how to use php sessions but not for in this case, as i don't know how to get values from a form with php without using a method on the form. Thanks.
  4. Hi, i have a question but not sure if i can do it with javascript or if i'd need php for it. Ok so i have a form which has been created with html, the form itself contains many radio buttons which all have their own value name. Currently when the form is submitted it goes through a javascript procedure, what i would like to do is store the value from the current selected item in the form so that i can later call upon that variable on a seperate page. The form method cannot be changed to $_POST and would like to know how it can be done. To explain a bit more clearly about what i am after, i have 6 radio buttons, each radio button has it's own value e.g. value="value1" etc. how do i get a variable in javascript/php to equal that value and then change if the focus goes onto a seperate radio button? e.g. one that has value="value2". That value will be stored in a variable, then i can later call upon that variable on a seperate page and find out it's value. It might even be better if i had a way to detect what radio button your on when you press the submit button, if that is at all possible. All my radio buttons have the same name "rad" as this is needed as part of my code and i have this code when you click on a radio button: onclick = "ReadForm (this.form, false);" (this being no relevance to you what it does but basically as you can gather i'm telling the readform to switch to false once radio button is clicked) I just basically want to know how to find out what form element you are on once a submit button is pressed, hold the data in a variable, then be able to call upon it on a later page. Would i need to use php, could i just store the value in a cookie or what, if so do i get the value? thanks
  5. Hi, ok heres the deal. I have just started to learn about affifitate(however u spell it) programs and have decided recently to buy some extra domains and link them to various parts of my website. This works, however when i try it with php web pages it will not work!!!. I am using a linux based server with apache 1.3.3 and i am allowed to use php within it. Has anybody else got this working? when i try all i get is page cannot be displayed. I uploaded a .htaccess file to the main root folder but now everytime i go to my domain it asks me to download a file instead of showing my homepage. the php file im trying to link is called index.php, it is linked to various other files in the same directory as it is. so for example www.digital-sales.net will go to this page www.sharkadder.com/kelkoo/index.php. All im getting is page cannot be displayed, do i need to do something or what? apparently its the htaccess files whats stopping the homepage from loading but what default settings do i need for this? As you can gather im totally confused, i persumed i just copy the affitate template, upload the files and then link the domain to the required file, obviously not so because it will not work. Although it works when i link html files from another domain. Im guessing i need to do something special for it to work. any help apprechiated, thanks p.s my homepage is index.html, that index.php isnt my homepage, just a file within another folder on my site
×
×
  • 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.