Why not "$_SERVER ['PHP_SELF'] ' in action = works for me.

I try to do a free form of 'post' and was referred to the explanation at www.html-form-guide.com.  I've coded my page exactly as shown it and even copied/pasted the action = code (simple be) to my form tag.

In my test XAMPP environment the submit, we get:

Access forbidden!

You don't have permission to access the requested object.  It is protected by read or not readable by the server.

If you think that it is a server error, please contact the webmaster (who would be there in a localhost environment?)

403 error

When I tested on my Yahoo web hosting server, presents yieded:

The web page could not be found.

The most likely causes are:

etc etc.

Here's the code;

The following is placed at the top of the page just before the < html > tag:

<? PHP

the following text has been to write the post info in a file to verify that the code has been run - never happened.

$out = $_SERVER ['PHP_SELF'];

$fho = fopen(C:\xampp\htdocs\iod\testphpself.txt,wt);

fwrite($FHO,$out);

fclose ($FHO);

If (isset($_POST['submit']))

$fstname = $_POST ["firstname"];

$midinit = $_POST ['midinitial'];

$lastname = $_POST ['name'];

$milen = (strlen ($midinit));

If ($milen == 0)

{$fullname = $fstname. » «. $lastname ;}

on the other

{$fullname = $fstname. » «. $midinit ". «. $lastname ;}

echo "information were stored in the: $fullname < br / > < br / > ';

Here is the < form > code:

< name of the form = "form1" method = "post" action = "<?" PHP echo $SERVER ['PHP_SELF'];? > ">"

Most of the above, I could glean from www.html-form-guied.com/php-form/php-form-action-self.html.

PLEASE, I BEG YOU! Can someone tell me where my mistake (s) was/is?  I think I must be a bad thing, but I have no idea what it could be.

creacontech wrote:

I can't understand how to cut and paste the code here

There is an ad at the top of the Forum that tells you how to view the useful links box, where you will find, well... a lot of useful links, including the validation code in this forum.

For some reason, the if statement becomes not real when you press the button submit, if the script is never executed.

The if statement checks for $_POST ['submit']. Are there? If the statement is not true, even when the form is submitted, this means that your button submit has a different name. You have posted only the code processing and not on the form, so I can't say what we call your button submit, but that is the rub.

Tags: Dreamweaver

Similar Questions

  • Why not zoom gesture in the work of Lion in the web pages of Firefox?

    I have the latest Firefox and now the last Lion OS X:. But the pinch to zoom gesture (that works in Safari) won't work in Firefox web pages. I thought that Firefox has been updated to work with Lion. So why not zoom or is there something I should do for FF to get this feature?

    This seems to be a firefox problem know and who work on and with possible workaround solutions, see also thread: "Back/Forward gestures don't work in Mac OS X Lion" - >/issues/853020

  • Why the pdf links don't work for Muse in preview mode?

    I want to add PDFs on my Muse site, but they are not opening in preview mode. I have the PDF files loaded as files in my property and make them related to the text on the page. But, when I hit the preview mode, the links do not work. Any tips? They were always open when the site is published?

    They will not work if you use the file > Preview in browser or file Page > Site overview in the browser. They do not work for the preview window integrated into the Muse.

  • Why not add waveforms with arithmetic work composed?

    Hi all

    I have a program that adds several waveforms and displays them all together as a distorted in a graph curve simple waveform.

    I had to add all together using simple add functions, since the block consisting of the arithmetic doesn't work.

    Why would this be the case? Is essentially just done multiple additions in a convinient way? I have attached a VI with a simple example to show what I mean.

    fr00tcrunch

    Waveforms have timing information.  What happens if the timing is different?  You need to throw an error somehow.  Add it has this ability.  The arithmetic function composed has not just inside arsenal.

  • Why not Adobe flash player when work its been Down loaded?

    I have Ubuntu just classified and charged down the Adobe flash player 11 and I checked on her and her there but his does not work. I can't play any games on facebook because of this. Why what is happening

    Hello

    If you are using Unbuntu then you need to check with their support.

    And anyway check with Support Adobe and their forums.

    Adobe - Support
    http://www.Adobe.com/support/

    Adobe - communities
    http://www.Adobe.com/communities/

    Adobe - Forums
    http://forums.Adobe.com/index.jspa

    ------------------------------------------

    If a Windows issue check with Adobe and use the methods below:

    How to uninstall the Adobe Flash Player plug-in and ActiveX control - download utility uninstall
    http://kb2.Adobe.com/CPS/141/tn_14157.html

    Troubleshoot Flash Player installation | Windows
    http://kb2.Adobe.com/CPS/191/tn_19166.html

    Or

    Download Revo Uninstaller - free Version - and use it to uninstall Flash
    http://www.revouninstaller.com/revo_uninstaller_free_download.html

    Reset

    Now try Flash:

    Download Flash Player (do not install the Google toolbar unless you really want to).

    http://get.Adobe.com/flashplayer/

    or:

    Test of Shockwave and Flash players
    http://www.Adobe.com/Shockwave/welcome/

    http://www.Adobe.com/software/Flash/about/

    ---------------------------

    If there are still problems when running Flash Player:

    Troubleshooting drive stabiility and performance
    http://blogs.Adobe.com/JD/2010/02/troubleshooting_player_stabili.html

    Flash Player Support Forums<-- more="" knowledgeable="" flash="" player="" help="" available="">
    http://forums.Adobe.com/community/webplayers/flash_player

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Why not windows 7 search function work?

    I use Windows 7 and looking for files on my hard drive. It is a large hard drive. I'm looking for an Adobe Illustrator CS6 file named 'Only 5' I used the "only 5' and also"only 5.ai"search term  In any case it returns results that are anything but 'only 5 '. He returned with incredibly obscure as names files "i4j_extf_14 - 1s5qrdc.txt" or "jquery.js" or "media-views - rtl.min.css.

    Windows search does not clearly what he should do. Honestly if the folks at Microsoft are obliged to work with this type of programming is not surprising that they are running on products like Windows 8

    Type of indexation in the box to start the search, open Indexing Options, choose Manage to ensure all the places you want to be indexed for search are included.  -Add or remove index locations

    Often, when this is not enough, what works is to click on the Advanced tab to rebuild the index, which can take a few days to get them all properly indexed in the background.  Index - rebuild

  • Why not add a URL variable custom for the publishing options?

    This program is ideal for animating with, but freakin ' EXTREMELY FRUSTRANT to implement. Much of this could be mitigated if the options 'release' allow me to specify a URL to the level of the host (or better yet a FTP protocol that I could download my work, while I dream).  In this way, the code can reference the folder I put in on my existing Web site and save me the javascript editing and declaring a variable and redirect each asset it EVERY SINGLE TIME I've updated the stupid thing, because in case you were not able to tell from MY LETTERS CAPITALS angry I had problems with getting my edge animations to display , and when they do they are HORRIBLEMENT CASE (they work in previews and not where elsewhere) and there only seems to be a lot of support here I had problems.

    Oh wow has completely neglected the CAN, it's great! Thank you.

    Not sure if you understood the "file management". We are not to seek a new method to download files or create a site, we are looking for a variable set a path root in the media of edge for when direct sound. How does dreamweaver or other tools limit making temporary edit > push variables in the stacks of jQuery edge? I do not think they do... which puts the logic of full circle manual edition edge to js changes at a level exceeding the ordinary people. We had to manually make a new variable "rtdir" and change the variables "im", then add all the paths manually to make it work. Looks like native support for it asking a lot too many other tools, especially considering that they have no role in 'construction' files still have to change them a bit. Also, there is a great chance to other tools to hang at this level, edge variables would cause too many paths to corrupted files.

    Whereas edge built "im" and has the potential to do the same for "rtdir", it would be really difficult to integrate an entry box where you type in the URL path button... then this path is crushed in XXXXX_edge.js and XXXXX_edgePreload.js when it is published. The directory of the song is already functional like the structure of the existing files. The question is it leaves in a non-specific overview of the State... example: / MyFolder/project1. This breaks every URL its used on as its adding/myfolder/project1 after any link whatsoever

  • Why not Bridge CS3 just stops working?

    Hello.

    As of today, I started having trouble with Bridge CS3. Out of the blue, just bridge cannot be launched more. I'm running 10.6.2 and it worked well, I changed nothing and like it, whenever I try to start the application - nothing. Just an error notification asking me if I want to report the accident or ignore it. The madman it is that everything works fine, only Bridge does not want to play with me.

    I have uninstalled all CS3 Design Standard, did a reboot, installed the whole package again - without any changes. Bridge just crashes at startup.

    Does anyone else have this problem a little bit? EC which could I / try?

    If you already have the discount cache files here is a workaround for a

    fresh start (but not guaranteed as it does in a new user, it can)

    also mean that corruption in your current user account).

    First launch apple disk utility and check and fix permissions

    If you already have not done. (you must do this anyway or use one)

    maintenance like Cocktail application to automate this process on a daily basis).

    Exit the bridge and in your username by default (the one with problems) go to the

    Manual and library user delete the Bridge2.plist preference file

    folder to the trash.

    In the same library, go to Caches Adobe Bridge CS3 and inherent grab the two files

    and drag them to the trash (or back up to a folder outside the library).

    Plist and cache files will renew it self rebooted after Bridge.

    Also hold down the option key while restarting the bridge after you remove the

    mentioned in the files, and then select Reset Preferences.

    All bridge prefs and interface to your own wishes and try again.

    Should I try copying all the files in a library to mine? Or is a

    full (I already tried as a first proposal of witch) to reinstall the only solution?

    Once again, thank you for your patience and your help!

  • I can receive but not send mail? Had worked for 2 years? The settings seem ok... Help!

    My Windows email account has suddenly stopped working. I can still receive mail to my account, but I'm prompted to log on to my POP3 account by a box of "Windows Security" popping up whenever I try to send an e-mail, or press the send/receive tab.

    No details have changed, and my login information is correct. But when I enter the connection details, they are erased, and the small box opens again with the same prompt? Can anyone help? Thank you... Mike.

    If you have 3 machines with the same problem and you don't change anything, really pointing to the server.  See if you can telnet to him (see http://techhelp.santovec.us/pop3telnet.htm).  Who uses the same username and password as WinMail, so if this does not work, there is something that goes wrong at the server level.  Additionally, if you can, try to connect via webmail and see if it works.

    Steve

  • Why NOT write the TAG ID information for the associated file? Windows Media Player 12

    I don't like iTunes and WMP12 looks worse.  Here's my problem...

    I edit the media information (sing or film etc...) by changing some information tag - track number, title etc...  Even when I select "Apply media information changes" in the "menu to organize the information of the tag does not change when I watch it by clicking the file and selecting Properties."  What gives?  I won't waste my time making sure that everything is organized and labeled correctly just so that WMP not attached this information in a file.  What worries me is that when I import the songs to another PC then all these information is lost.
    For example, I change the title of the track (you will need to change the title of the track, so WMP it sorts correctly because it does not support CD # in a multiple-CD box set)
    CD1 Title track 1
    CD1 Title track 2
    ...
    CD2 Title track 1
    CD2 Title track 2
    ...
    When I look at the file - nothing changes - UG!

    It sounds just like my question, so yesterday, I created a thread. I understand that it's quite old but thought if someone clicks on this thread, I might as well try and provide a response.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows8_1-pictures/WMP-12-does-not-apply-media-information-changes/ccf2e2cb-c2f3-4652-bd9f-fed3b6d8eb71

    Organize > options > privacy > (uncheck) Update music files by retrieving the news media on the internet

    I hope this helps!

  • Location does not non-Western languages, but works for the East and Asia... Help!

    Hello

    My specs are:

    -Windows XP SP3 with all languages and fonts installed (including Asian languages).

    -Eclipse build IDE-20100218-1602

    -BlackBerry Java Plugin Version: 1.1.2.201004161203 - 16

    -BlackBerry Java SDK Version: 5.0.0.25

    I created the .rrh and .rrc files, as explained in the documentation of Blackberry and switch languages according to the language selected devices.

    HOWEVER, the files real DRR refuse to understand accents French, German, Hungarian, Italian, Spanish or Portuguese.

    The trouble is that it accepts English, Greek, Russian, Chinese, Korean, Turkish, Romanians alphabets/characters.

    All files of the RRC have the UTF-8 format. (He played with different formats, just in case, but made no difference)

    I tried different ways to import the translated text, but the rrc files convert still accents such as u, e, e, a, o, n, e in question marks as it fails to convert their UTF-8 format \uxxxx.

    Around her, the only way is to provide these accents in UTF-8 format \uxxxx. For the moment, it looks like I'll have to replace all the accents broken by their equivalent before UTF-8 format enter the CRR file which is something the CRR file should have done itself.

    Is there a bug in the plugin BlackBerry or I do something wrong?

    Help, please.

    possibility one)

    Copy the text in the resource editor, this should keep all of the special characters.

    only works line by line

    (b)

    copy the full text of prbeditor, to convert special characters in unicode notation

    (c)

    write a utility java desktop to perform the conversion

  • Why can't get light to work for nexfix

    I try to see a movie or a video and I'll be back Player eorr

    In addition to the response of sengupta, follow the steps mentioned below and check if that helps

    Hello

    (1) what is the exact\complete error message you get?
    (2) remember to make changes to the computer before the question?
    (3) exactly how you want to see the video?
     
    Refer to the below mentioned method and check if it helps.
     
    If you are facing the issue in Internet explorer , see the link below and check if it helps.
    The problems of Netflix streaming video in Internet Explorer running
     
    See also:
    You can also post your questions on the money clear forums. Check out the following link.
    http://forums.Silverlight.NET/
    Hope this information helps.
  • Why my ID Adobe won't work for the installation of Adobe Flash?

    When I try and install flash player, a box will open and ask me ID and password. I type my Adobe ID and password, and it says its incorrect.

    Even if I click on download Flash, while I'm connected to Adobe.com it says its wrong.

    Can anyone help?

    You have no need and Adobe ID to download or install Flash Player.

    You will need your computer administrator ID & password to install the software of the system.

  • e-mail account working do not mistake the e-mail server for this account does not

    One of my Gmail account does not not via Thunderbird. He worked for until our days. Get them an error message saying
    "The current operation on the Inbox doesn't have to succeed. The e-mail server of the account... responded: unknown command 34
    the e-mail server for this account in not responding do not, the unknown command...)

    I delete this email account and re-created with the same problem. The unknown command is different everytime I try to get new messages...

    See if that helps.
    https://productforums.Google.com/Forum/#! subject/gmail/KB-HRs8VGsg

    In any case, it looks more like a problem of Google, so you can also ask in a forum of Google.

  • IAM in Turkey and I can't download free I work for my new IPad pro?

    I am in Turkey and I can't download free I work for my new IPad pro, as well as I'm paying my Turkish visa not accepted, what happens?

    many programs give the trial period and then start asking for payment.

    What happens when you try to download the applications? You use the same account that was used to initially activate the iPad, and you tried to log on and the account?

    Free apps: get Pages, Numbers, Keynote, iMovie, GarageBand, and iTunes U for free on your iPhone, iPad and iPod touch - Apple Support

    For the visa card, it is debit or credit? If flow which may be why, not all always seem to work (and would not be allowed at all in some countries).

    A card having a chance to be accepted it must be registered with the same name and address (including the format and spacing etc) that you have on your iTunes account and have been issued by a bank in the same country as yourself (so a Turkish Bank). You have a different card that you can try, preferably a credit card?

Maybe you are looking for